From 83683c032c56a93ff21f6078d16b3f8063813e97 Mon Sep 17 00:00:00 2001 From: Snowmint Date: Wed, 20 Jan 2021 08:33:44 +0800 Subject: [PATCH] [Layout] import breakpoint and @include sm Try to follow new scss and make it RWD. --- package.json | 2 +- src/assets/scss/CFP/intro.scss | 61 +++++++++++++++++++++++++++++++++- 2 files changed, 61 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a6559bc..64e451a 100644 --- a/package.json +++ b/package.json @@ -34,4 +34,4 @@ "vue-cli-plugin-prerender-spa": "~1.1.6", "vue-template-compiler": "^2.6.11" } -} \ No newline at end of file +} diff --git a/src/assets/scss/CFP/intro.scss b/src/assets/scss/CFP/intro.scss index 2af9217..0358240 100644 --- a/src/assets/scss/CFP/intro.scss +++ b/src/assets/scss/CFP/intro.scss @@ -1,3 +1,4 @@ +@import '../hyperpoint'; $fontFamily: Noto Sans TC; $fontColor: #226BB4; @@ -89,6 +90,7 @@ $fontColor: #226BB4; .past-sitcon { margin-bottom: 2em; + width: 700px; .thumbnails { display: flex; @@ -182,7 +184,64 @@ $fontColor: #226BB4; font-weight: 900; font-size: 1.25em; margin-bottom: 0.5em; - + } + } + } +} + +@include sm { + #cfp-intro{ + h1, + h2, + h3 { + margin-bottom: 10pt; + } + + p { + font-size: 12pt; + line-height: 1.85; + width:75vw; + } + + p:not(:last-child) { + margin-bottom: 2em; + } + } + + #cfp-intro{ + .box-back { + margin-bottom: -45em; + margin-left:-4em; + + .first-box { + transform: rotate(12deg) scale(0.9); + bottom: 640px; + left: -20px; + } + .introd-text { + top: 100px; + } + .past-sitcon { + margin-top:1em; + } + } + } + + #cfp-intro{ + .box-bluearea { + height: 280px; + z-index: 0; + transform: rotate(12deg); + } + } + + #cfp-intro{ + .box-back2 { + margin-top:3em; + + .second-box { + transform: rotate(12deg); + bottom: 1100px; } } }