speice.io/_sass/components/_article.scss
2024-11-10 16:32:36 -05:00

164 lines
2.9 KiB
SCSS

/* ==========================================================================
Article
========================================================================== */
.c-article {
margin-bottom: 10rem; // 100px
}
.c-article__header {
margin-bottom: 2rem; // 50px
@media screen and (min-width: $bp__sm) {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-box-align: baseline;
-webkit-align-items: baseline;
-ms-flex-align: baseline;
align-items: baseline;
}
}
.c-article__title {
@include fs--heading-1;
color: $c-base__02;
}
.c-article__description {
@include fs--heading-2;
color: $c-base__01;
}
.c-article__time {
@include fs--body;
color: $c-base__01;
}
.c-article__main {
margin-bottom: 5rem; // 50px
@include fs--body;
color: $c-base__01;
> * {
margin-bottom: 1.8rem; // 18px
}
h2 {
@include fs--heading-2;
}
h3 {
@include fs--heading-3;
}
h4 {
@include fs--heading-4;
}
h5 {
@include fs--body;
}
strong {
color: $c-base__02;
font-weight: 700;
}
blockquote {
margin-left: 0;
margin-right: 0;
padding-left: 1.8rem; // 18px
border-left: 5px solid #ccc;
}
ul,
ol {
margin-left: 2.1rem;
}
li {
margin-top: 1em;
}
.web-container {
position: relative;
width: 100%;
max-width: 100%;
height: 0;
padding-bottom: 62.5%;
border: 1px solid #cacaca;
overflow: hidden;
}
.web-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
max-width: 100%;
height: 100%;
}
a {
border-bottom-color: $c-accent__blue;
border-bottom-style: dotted;
border-bottom-width: 1px;
}
table {
border-collapse: collapse;
border-style: hidden;
}
td, th {
padding-left: .1em;
padding-right: 2em;
border-style: solid;
border-width: .1em;
}
}
.c-article__footer {
}
.pagenav {
width: 100%;
text-align: center;
border: 1px solid LightGrey;
border-left-color: transparent;
border-right-color: transparent;
font-size: 18px;
overflow: hidden;
margin-bottom: 8rem;
}
.pagenav div {
border-color: transparent;
}
.wrapper {
padding: 10px;
border: 1px solid LightGrey;
display: inline-block;
margin: 0 auto;
}
#left {
float: left;
text-align: left;
}
#right {
float: right;
text-align: right;
}