1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-07-31 19:50:12 +02:00

👍 説明要素を追加

This commit is contained in:
BcRikko
2018-09-26 08:55:25 +09:00
parent e325db19d3
commit e227568107
9 changed files with 92 additions and 11 deletions

View File

@@ -117,6 +117,14 @@ a {
} }
} }
._dark {
color: #f7f7f7;
}
._right {
text-align: right;
}
.title { .title {
font-weight: 700; font-weight: 700;
word-break: break-word; word-break: break-word;
@@ -348,6 +356,7 @@ a {
.container { .container {
position: relative; position: relative;
padding: 1.5rem 2rem; padding: 1.5rem 2rem;
margin: auto;
} }
.container::before, .container::after { .container::before, .container::after {
@@ -404,15 +413,19 @@ a {
background-color: #f7f7f7; background-color: #f7f7f7;
} }
.container.-dark { .container._dark {
color: #f7f7f7; color: #f7f7f7;
} }
.container.-dark::before { .container._dark::before {
background-color: #333; background-color: #333;
} }
.container.-dark > .title { .container._dark::after {
border-color: #f7f7f7;
}
.container._dark > .title {
color: #f7f7f7; color: #f7f7f7;
background-color: #333; background-color: #333;
} }
@@ -440,4 +453,22 @@ a {
.checkbox[type="checkbox"]:checked::before { .checkbox[type="checkbox"]:checked::before {
box-shadow: 6px 6px 0 #333, 8px 6px 0 #333, 10px 6px 0 #333, 12px 6px 0 #333, 14px 6px 0 #333, 16px 6px 0 #333, 18px 6px 0 #333, 22px 6px 0 #333, 24px 6px 0 #333, 6px 8px 0 #333, 20px 8px 0 #333, 22px 8px 0 #333, 24px 8px 0 #333, 6px 10px 0 #333, 18px 10px 0 #333, 20px 10px 0 #333, 6px 12px 0 #333, 8px 12px 0 #333, 16px 12px 0 #333, 18px 12px 0 #333, 6px 14px 0 #333, 8px 14px 0 #333, 10px 14px 0 #333, 14px 14px 0 #333, 16px 14px 0 #333, 20px 14px 0 #333, 6px 16px 0 #333, 10px 16px 0 #333, 12px 16px 0 #333, 14px 16px 0 #333, 20px 16px 0 #333, 6px 18px 0 #333, 12px 18px 0 #333, 20px 18px 0 #333, 6px 20px 0 #333, 8px 20px 0 #333, 10px 20px 0 #333, 12px 20px 0 #333, 14px 20px 0 #333, 16px 20px 0 #333, 18px 20px 0 #333, 20px 20px 0 #333; box-shadow: 6px 6px 0 #333, 8px 6px 0 #333, 10px 6px 0 #333, 12px 6px 0 #333, 14px 6px 0 #333, 16px 6px 0 #333, 18px 6px 0 #333, 22px 6px 0 #333, 24px 6px 0 #333, 6px 8px 0 #333, 20px 8px 0 #333, 22px 8px 0 #333, 24px 8px 0 #333, 6px 10px 0 #333, 18px 10px 0 #333, 20px 10px 0 #333, 6px 12px 0 #333, 8px 12px 0 #333, 16px 12px 0 #333, 18px 12px 0 #333, 6px 14px 0 #333, 8px 14px 0 #333, 10px 14px 0 #333, 14px 14px 0 #333, 16px 14px 0 #333, 20px 14px 0 #333, 6px 16px 0 #333, 10px 16px 0 #333, 12px 16px 0 #333, 14px 16px 0 #333, 20px 16px 0 #333, 6px 18px 0 #333, 12px 18px 0 #333, 20px 18px 0 #333, 6px 20px 0 #333, 8px 20px 0 #333, 10px 20px 0 #333, 12px 20px 0 #333, 14px 20px 0 #333, 16px 20px 0 #333, 18px 20px 0 #333, 20px 20px 0 #333;
} }
.description {
width: 100%;
}
.description > dt {
position: relative;
float: left;
margin-right: 1.5rem;
}
.description > dt.-colon::after {
position: absolute;
top: 0;
right: -1.5rem;
z-index: -1;
content: ":";
}
/*# sourceMappingURL=nes.css.map */ /*# sourceMappingURL=nes.css.map */

File diff suppressed because one or more lines are too long

4
css/nes.min.css vendored

File diff suppressed because one or more lines are too long

View File

@@ -76,22 +76,39 @@
</section> </section>
<h3 class="title -is-4">dark theme</h3> <h3 class="title -is-4">dark theme</h3>
<section class="container -dark"> <section class="container _dark">
<p>Good morning. Thou hast had a good night's sleep I hope.</p> <p>Good morning. Thou hast had a good night's sleep I hope.</p>
</section> </section>
<h3 class="title -is-4">with title</h3> <h3 class="title -is-4">with title</h3>
<section class="container -dark -with-title"> <section class="container _dark -with-title">
<label class="title">Command</label> <label class="title">Command</label>
<p>Good morning. Thou hast had a good night's sleep I hope.</p> <p>Good morning. Thou hast had a good night's sleep I hope.</p>
</section> </section>
<h3 class="title -is-4">align <code>(-center, -right)</code></h3> <h3 class="title -is-4">align <code>(-center, -right)</code></h3>
<section class="container -dark -with-title -center"> <section class="container _dark -with-title -center">
<label class="title">Command</label> <label class="title">Command</label>
<p>Good morning. Thou hast had a good night's sleep I hope.</p> <p>Good morning. Thou hast had a good night's sleep I hope.</p>
</section> </section>
</section> </section>
<section class="container">
<h2 class="title -is-3">Description</h2>
<section class="container -with-title -center _dark" style="width: 170px; margin: 0;">
<label class="title">ENlX</label>
<dl class="description">
<dt class="-colon">LV</dt>
<dd class="_right">19</dd>
<dt class="-colon">HP</dt>
<dd class="_right">62</dd>
<dt class="-colon">MP</dt>
<dd class="_right">11</dd>
<dt class="">G</dt>
<dd class="_right">6871</dd>
</dl>
</section>
</section>
</main> </main>
</body> </body>

View File

@@ -4,3 +4,4 @@
@import "variables.scss"; @import "variables.scss";
@import "generic.scss"; @import "generic.scss";
@import "animation.scss"; @import "animation.scss";
@import "helper.scss";

7
scss/base/helper.scss Normal file
View File

@@ -0,0 +1,7 @@
._dark {
color: $white;
}
._right {
text-align: right;
}

View File

@@ -5,3 +5,4 @@
@import "radio.scss"; @import "radio.scss";
@import "container.scss"; @import "container.scss";
@import "checkbox.scss"; @import "checkbox.scss";
@import "description.scss";

View File

@@ -1,6 +1,7 @@
.container { .container {
position: relative; position: relative;
padding: 1.5rem 2rem; padding: 1.5rem 2rem;
margin: auto;
&::before, &::before,
&::after { &::after {
@@ -57,13 +58,17 @@
} }
} }
&.-dark { &._dark {
color: $white; color: $white;
&::before { &::before {
background-color: $black; background-color: $black;
} }
&::after {
border-color: $white;
}
> .title { > .title {
color: $white; color: $white;
background-color: $black; background-color: $black;

View File

@@ -0,0 +1,17 @@
.description {
width: 100%;
> dt {
position: relative;
float: left;
margin-right: 1.5rem;
&.-colon::after {
position: absolute;
top: 0;
right: -1.5rem;
z-index: -1;
content: ":";
}
}
}