mirror of
https://github.com/caressofsteel/hugo-story.git
synced 2024-12-22 17:45:06 +01:00
87 lines
1.2 KiB
SCSS
87 lines
1.2 KiB
SCSS
/*
|
|
Hugo Story by CaressOfSteel
|
|
A (modular, highly tweakable) responsive one-page theme for Hugo.
|
|
Ported from Story by HTML5UP.
|
|
This Hugo theme is licensed under the Creative Commons Attribution 3.0 License.
|
|
*/
|
|
|
|
/* List */
|
|
|
|
ol {
|
|
list-style: decimal;
|
|
margin: 0 0 _size(element-margin) 0;
|
|
padding-left: 1.25rem;
|
|
|
|
li {
|
|
padding-left: 0.25rem;
|
|
}
|
|
}
|
|
|
|
ul {
|
|
list-style: disc;
|
|
margin: 0 0 _size(element-margin) 0;
|
|
padding-left: 1rem;
|
|
|
|
li {
|
|
padding-left: 0.5rem;
|
|
}
|
|
|
|
&.alt {
|
|
list-style: none;
|
|
padding-left: 0;
|
|
|
|
li {
|
|
border-top: solid _size(border-width);
|
|
padding: 0.5rem 0;
|
|
|
|
&:first-child {
|
|
border-top: 0;
|
|
padding-top: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
dl {
|
|
margin: 0 0 _size(element-margin) 0;
|
|
|
|
dt {
|
|
display: block;
|
|
font-weight: _font(weight-bold);
|
|
margin: 0 0 (_size(element-margin) * 0.5) 0;
|
|
}
|
|
|
|
dd {
|
|
margin-left: _size(element-margin);
|
|
}
|
|
|
|
&.style2 {
|
|
dt {
|
|
width: 25%;
|
|
float: left;
|
|
}
|
|
|
|
dd {
|
|
width: 70%;
|
|
float: left;
|
|
}
|
|
|
|
&:after {
|
|
content: '';
|
|
display: block;
|
|
clear: both;
|
|
}
|
|
}
|
|
}
|
|
|
|
@mixin color-list($p: null) {
|
|
ul {
|
|
&.alt {
|
|
li {
|
|
border-top-color: _palette($p, border);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@include color-list; |