1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-08-31 01:39:50 +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

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

View File

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