2021/src/assets/scss/news/schedule.scss
Tony Yang 59be38e73e
[Fix] breakpoint for schedule section is different
keep padding size consistent
2021-01-20 20:08:50 +08:00

138 lines
1.9 KiB
SCSS

@import "../breakpoint";
@import "../color";
@import "../font.scss";
// No need to import font; the fonts have been imported in App.vue
// @import '@/assets/scss/font';
#news-schedule {
max-width: 80vw;
margin: 0 auto;
font-family: $fontFamily;
font-size: 15pt;
line-height: 2.1em;
letter-spacing: 0.2px;
color: $mid-blue;
* {
position: relative;
}
a {
color: $mid-blue;
text-decoration: underline;
}
h1 {
font-size: 36pt;
line-height: 1.45em;
margin: 15px 0;
}
h2 {
font-size: 27pt;
line-height: 2em;
}
h3 {
font-size: 18pt;
line-height: 1.25em;
}
h1,
h2,
h3 {
font-weight: 900;
}
ul {
li {
&::before {
content: "";
margin: 2px;
line-height: 42px;
}
}
}
section:not(:last-of-type),
article:not(:last-of-type) {
margin-bottom: 55px;
}
#theme-example {
> p {
padding: 20px 0;
}
}
#theme-example ~ p {
padding: 20px 0;
}
#presentation-example,
#espresso-example {
> p {
padding-bottom: 40px;
}
.agenda.card.container {
display: grid;
grid-template-columns: repeat(4, 1fr);
column-gap: 62px;
row-gap: 40px;
}
}
}
#code-of-conduct a {
font-weight: 900;
}
@include md {
#news-schedule {
#presentation-example,
#espresso-example {
margin-bottom: unset;
.agenda.card.container {
grid-template-columns: repeat(2, 1fr);
column-gap: 42px;
row-gap: 30px;
}
}
}
}
@media screen and (max-width: $max-width-small-0) {
#news-schedule {
max-width: 100vw;
padding: 0 40px;
font-size: 11pt;
h1,
h2 {
font-size: 20pt;
line-height: 2.69em;
}
h3 {
font-size: 15pt;
line-height: 1.5em;
}
h1,
h2,
h3 {
margin: 0;
}
#schedule {
margin-bottom: unset;
}
#theme-example ~ p {
padding: 15px 0;
}
}
}