[Fix] Coding style

This commit is contained in:
hyperbola 2021-01-19 18:54:44 +08:00
parent c507d18791
commit ffdf3df1dd
No known key found for this signature in database
GPG Key ID: D987B1D59478B51F
7 changed files with 127 additions and 120 deletions

View File

@ -1,5 +1,5 @@
@import '@/assets/scss/breakpoint.scss'; @import '../breakpoint.scss';
@import '@/assets/scss/color.scss'; @import '../color.scss';
.agenda.card:not(.container) { .agenda.card:not(.container) {
a.image.container { a.image.container {

View File

@ -1,126 +1,133 @@
@import '@/assets/scss/breakpoint.scss'; @import '../breakpoint';
@import '@/assets/scss/color.scss'; @import '../color';
@import '@/assets/scss/font.scss'; // No need to import font; the fonts have been imported in App.vue
// @import '@/assets/scss/font';
$fontFamily: Noto Sans CJK TC, monospace; $fontFamily: Noto Sans CJK TC, monospace;
#info-schedule { #info-schedule {
max-width: 80vw; max-width: 80vw;
margin: 0 auto; margin: 0 auto;
font-family: $fontFamily; font-family: $fontFamily;
font-size: 20px; font-size: 20px;
line-height: 2.1em; line-height: 2.1em;
letter-spacing: 0.2px; letter-spacing: 0.2px;
color: $mid-blue;
* {
position: relative;
}
a {
color: $mid-blue; color: $mid-blue;
text-decoration: underline;
}
* { h1 {
position: relative; font-size: 48px;
line-height: 70px;
margin: 15px 0;
}
h2 {
font-size: 36px;
line-height: 70px;
}
h3 {
font-size: 24px;
line-height: 30px;
}
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;
} }
a { .agenda.card.container {
color: $mid-blue; display: grid;
text-decoration: underline; grid-template-columns: repeat(4, 1fr);
} column-gap: 62px;
row-gap: 40px;
h1 {
font-size: 48px;
line-height: 70px;
margin: 15px 0;
}
h2 {
font-size: 36px;
line-height: 70px;
}
h3 {
font-size: 24px;
line-height: 30px;
}
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 { #code-of-conduct a {
font-weight: 900; font-weight: 900;
} }
@include md { @include md {
#info-schedule { #info-schedule {
margin: 0 auto; margin: 0 auto;
font-size: 14px; font-size: 14px;
h1, h2 { h1,
font-size: 26px; h2 {
line-height: 2.69em; font-size: 26px;
} line-height: 2.69em;
h3 {
font-size: 20px;
line-height: 30px;
}
h1, h2, h3 {
margin: 0;
}
#schedule {
margin-bottom: unset;
}
#theme-example ~ p {
padding: 15px 0;
}
#presentation-example, #espresso-example {
margin-bottom: unset;
.agenda.card.container {
grid-template-columns: repeat(2, 1fr);
column-gap: 42px;
row-gap: 30px;
}
}
} }
} h3 {
font-size: 20px;
line-height: 30px;
}
h1,
h2,
h3 {
margin: 0;
}
#schedule {
margin-bottom: unset;
}
#theme-example ~ p {
padding: 15px 0;
}
#presentation-example,
#espresso-example {
margin-bottom: unset;
.agenda.card.container {
grid-template-columns: repeat(2, 1fr);
column-gap: 42px;
row-gap: 30px;
}
}
}
}

View File

@ -1,5 +1,5 @@
@import '@/assets/scss/breakpoint.scss'; @import '../breakpoint.scss';
@import '@/assets/scss/color.scss'; @import '../color.scss';
.topic { .topic {
padding: 30px 0; padding: 30px 0;

View File

@ -1,4 +1,4 @@
@import './breakpoint.scss'; @import 'breakpoint.scss';
// varible declare // varible declare
$fontColor: white; $fontColor: white;

View File

@ -1,9 +1,9 @@
// global // global
@import './reset.scss'; @import 'reset.scss';
@import './variable.scss'; @import 'variable.scss';
@import './color.scss'; @import 'color.scss';
@import './util.scss'; @import 'util.scss';
@import './font.scss'; @import 'font.scss';
// components // components
// @import './footer.scss'; // @import './footer.scss';

View File

@ -1,5 +1,5 @@
@import './hyperpoint.scss'; @import 'hyperpoint.scss';
@import './color.scss'; @import 'color.scss';
// desktop mode // desktop mode
#news-header { #news-header {

View File

@ -249,5 +249,5 @@ export default class Agenda extends Vue {
</script> </script>
<style lang="scss"> <style lang="scss">
@import '@/assets/scss/CFP/agenda.scss'; @import '@/assets/scss/CFP/agenda';
</style> </style>