feat: Rename class
- Rename sub class to horizontal and bound to ul and ol elements - Reformat files
This commit is contained in:
parent
d17f966794
commit
a1a4bd408b
2 changed files with 44 additions and 27 deletions
|
|
@ -24,6 +24,7 @@ p {
|
||||||
@extend %basic;
|
@extend %basic;
|
||||||
margin-top: $space_basic;
|
margin-top: $space_basic;
|
||||||
margin-bottom: $space_basic;
|
margin-bottom: $space_basic;
|
||||||
|
|
||||||
code {
|
code {
|
||||||
padding: $space_tiny $space_half;
|
padding: $space_tiny $space_half;
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
|
|
@ -34,13 +35,17 @@ p {
|
||||||
.column_line {
|
.column_line {
|
||||||
column-rule: $border_basic;
|
column-rule: $border_basic;
|
||||||
}
|
}
|
||||||
.column_2, .column_3 {
|
|
||||||
|
.column_2,
|
||||||
|
.column_3 {
|
||||||
@extend p;
|
@extend p;
|
||||||
}
|
}
|
||||||
|
|
||||||
.column_2 {
|
.column_2 {
|
||||||
column-count: 2;
|
column-count: 2;
|
||||||
column-gap: $space_small;
|
column-gap: $space_small;
|
||||||
}
|
}
|
||||||
|
|
||||||
.column_3 {
|
.column_3 {
|
||||||
column-count: 3;
|
column-count: 3;
|
||||||
column-gap: $space_medium;
|
column-gap: $space_medium;
|
||||||
|
|
@ -91,10 +96,11 @@ pre {
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
border-color: darken($color_back_basic, $color_diff_tiny);
|
border-color: darken($color_back_basic, $color_diff_tiny);
|
||||||
border-style: dotted;
|
border-style: dotted;
|
||||||
border-width: 0 0 0 $width_border_4;
|
border-width: 0 0 0 $width_border_4;
|
||||||
border-radius: $radius_basic;
|
border-radius: $radius_basic;
|
||||||
padding: $space_basic;
|
padding: $space_basic;
|
||||||
background-color: lighten($color_back_basic, $color_diff_tiny);
|
background-color: lighten($color_back_basic, $color_diff_tiny);
|
||||||
|
|
||||||
code {
|
code {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
@ -112,11 +118,15 @@ blockquote {
|
||||||
p::before {
|
p::before {
|
||||||
content: "\201E \0020";
|
content: "\201E \0020";
|
||||||
}
|
}
|
||||||
|
|
||||||
p::after {
|
p::after {
|
||||||
content: "\0020 \201C";
|
content: "\0020 \201C";
|
||||||
}
|
}
|
||||||
|
|
||||||
.quote_source {
|
.quote_source {
|
||||||
&::before, &::after {
|
|
||||||
|
&::before,
|
||||||
|
&::after {
|
||||||
content: "";
|
content: "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -124,23 +134,37 @@ blockquote {
|
||||||
|
|
||||||
// List
|
// List
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
dl, ul, ol {
|
dl,
|
||||||
|
ul,
|
||||||
|
ol {
|
||||||
margin: $space_double 0;
|
margin: $space_double 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul, ol {
|
ul,
|
||||||
|
ol {
|
||||||
padding-left: $indent_basic;
|
padding-left: $indent_basic;
|
||||||
|
|
||||||
|
&.horizontal {
|
||||||
|
overflow: auto;
|
||||||
|
|
||||||
|
li {
|
||||||
|
@extend .float_space_left;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dl {
|
dl {
|
||||||
margin-left: $indent_basic;
|
margin-left: $indent_basic;
|
||||||
}
|
}
|
||||||
|
|
||||||
li, dt, dd {
|
li,
|
||||||
|
dt,
|
||||||
|
dd {
|
||||||
@extend %basic;
|
@extend %basic;
|
||||||
}
|
}
|
||||||
|
|
||||||
dd, .list_basic li {
|
dd,
|
||||||
|
.list_basic li {
|
||||||
margin-bottom: $space_basic;
|
margin-bottom: $space_basic;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -171,15 +195,18 @@ ul {
|
||||||
li {
|
li {
|
||||||
margin-bottom: $space_tiny * 2;
|
margin-bottom: $space_tiny * 2;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
display: block;
|
display: block;
|
||||||
padding: $padding_basic;
|
padding: $padding_basic;
|
||||||
color: $color_text_basic;
|
color: $color_text_basic;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
margin-right: $space_basic;
|
margin-right: $space_basic;
|
||||||
padding-bottom: 0.2em;
|
padding-bottom: 0.2em;
|
||||||
vertical-align: text-bottom;
|
vertical-align: text-bottom;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:active,
|
&:active,
|
||||||
&:focus,
|
&:focus,
|
||||||
&:hover {
|
&:hover {
|
||||||
|
|
@ -190,13 +217,6 @@ ul {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.list_horizontal {
|
|
||||||
overflow: auto;
|
|
||||||
li {
|
|
||||||
@extend .float_space_left;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Embedded
|
// Embedded
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
figure {
|
figure {
|
||||||
|
|
@ -210,15 +230,11 @@ figcaption {
|
||||||
|
|
||||||
// Main content
|
// Main content
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
main {
|
main {}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
// Div
|
// Div
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
div {
|
div {}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.div_info {
|
.div_info {
|
||||||
padding: $space_double $indent_basic;
|
padding: $space_double $indent_basic;
|
||||||
|
|
@ -228,6 +244,7 @@ div {
|
||||||
|
|
||||||
.box_space {
|
.box_space {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
overflow: auto;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -309,13 +326,13 @@ div {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-gap: $space_basic;
|
grid-gap: $space_basic;
|
||||||
|
|
||||||
& > input,
|
&>input,
|
||||||
& > select,
|
&>select,
|
||||||
& > textarea {
|
&>textarea {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
& > label {
|
&>label {
|
||||||
margin: $width_border_io;
|
margin: $width_border_io;
|
||||||
padding: $space_half;
|
padding: $space_half;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -150,7 +150,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.float_space_left {
|
.float_space_left {
|
||||||
@extend .float_left;
|
float: left;
|
||||||
margin-right: $space_small;
|
margin-right: $space_small;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue