mirror of
https://github.com/nostalgic-css/NES.css.git
synced 2025-02-22 16:36:14 +01:00
Merge pull request #63 from evexoio/62-align-container
fix .is-center and .is-right
This commit is contained in:
commit
941a6d1420
14
css/nes.css
14
css/nes.css
@ -558,11 +558,19 @@ button,
|
||||
}
|
||||
|
||||
.container.with-title.is-center {
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.container.with-title.is-center > .title {
|
||||
margin: -2rem auto 1rem;
|
||||
}
|
||||
|
||||
.container.with-title.is-right {
|
||||
align-items: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.container.with-title.is-right > .title {
|
||||
margin: -2rem 0 1rem auto;
|
||||
}
|
||||
|
||||
.container.is-dark::before {
|
||||
@ -573,7 +581,7 @@ button,
|
||||
border-color: #fff;
|
||||
}
|
||||
|
||||
.container.is-dark > .title {
|
||||
.container.is-dark.with-title > .title {
|
||||
color: #fff;
|
||||
background-color: #212529;
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
2
css/nes.min.css
vendored
2
css/nes.min.css
vendored
File diff suppressed because one or more lines are too long
@ -84,11 +84,19 @@
|
||||
}
|
||||
|
||||
&.is-center {
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
|
||||
> .title {
|
||||
margin: -2rem auto 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
&.is-right {
|
||||
align-items: right;
|
||||
text-align: right;
|
||||
|
||||
> .title {
|
||||
margin: -2rem 0 1rem auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -101,9 +109,11 @@
|
||||
border-color: #fff;
|
||||
}
|
||||
|
||||
> .title {
|
||||
color: $background-color;
|
||||
background-color: $base-color;
|
||||
&.with-title {
|
||||
> .title {
|
||||
color: $background-color;
|
||||
background-color: $base-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user