Merge pull request #1236 from GuilhermeHideki/convert-to-scss
Convert files to SCSS
This commit is contained in:
commit
4d7fbadf2e
9 changed files with 76 additions and 73 deletions
|
@ -1,29 +1,26 @@
|
||||||
html {
|
@mixin font($weight: null, $size: null) {
|
||||||
font-family: "Noto Sans", sans-serif;
|
font-family: "Noto Sans", sans-serif;
|
||||||
|
font-weight: $weight;
|
||||||
|
font-size: $size;
|
||||||
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
@include font;
|
||||||
text-size-adjust: 100%;
|
text-size-adjust: 100%;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
text-rendering: optimizeLegibility;
|
text-rendering: optimizeLegibility;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1,
|
|
||||||
h2,
|
|
||||||
h3 {
|
|
||||||
font-family: "Noto Sans", sans-serif;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-weight: 400;
|
@include font(400, 1.8em);
|
||||||
font-size: 1.8em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
font-weight: 400;
|
@include font(400, 1.5em);
|
||||||
font-size: 1.5em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
font-weight: 400;
|
@include font(400, 1.17em);
|
||||||
font-size: 1.17em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.layout-tv {
|
.layout-tv {
|
|
@ -1,31 +0,0 @@
|
||||||
h1 {
|
|
||||||
font-weight: 400;
|
|
||||||
font-size: 1.8em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.layout-desktop h1 {
|
|
||||||
font-size: 2em;
|
|
||||||
}
|
|
||||||
|
|
||||||
h2 {
|
|
||||||
font-weight: 400;
|
|
||||||
font-size: 1.5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
h3 {
|
|
||||||
font-weight: 400;
|
|
||||||
font-size: 1.17em;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media all and (min-height: 720px) {
|
|
||||||
html {
|
|
||||||
font-size: 20px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* This is supposed to be 1080p, but had to reduce the min height to account for possible browser chrome */
|
|
||||||
@media all and (min-height: 1000px) {
|
|
||||||
html {
|
|
||||||
font-size: 27px;
|
|
||||||
}
|
|
||||||
}
|
|
31
src/assets/css/fonts.sized.scss
Normal file
31
src/assets/css/fonts.sized.scss
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
@mixin header-font($size: null) {
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: $size;
|
||||||
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
@media all and (min-height: 720px) {
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* This is supposed to be 1080p, but had to reduce the min height to account for possible browser chrome */
|
||||||
|
@media all and (min-height: 1000px) {
|
||||||
|
font-size: 27px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
@include header-font(1.8em);
|
||||||
|
|
||||||
|
.layout-desktop & {
|
||||||
|
font-size: 2em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
@include header-font(1.8em);
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
@include header-font(1.17em);
|
||||||
|
}
|
|
@ -2,8 +2,8 @@
|
||||||
padding-bottom: 15em;
|
padding-bottom: 15em;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media all and (min-width: 62.5em) {
|
#guideTab {
|
||||||
#guideTab {
|
@media all and (min-width: 62.5em) {
|
||||||
padding-left: 0.5em;
|
padding-left: 0.5em;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,14 +1,19 @@
|
||||||
body,
|
@mixin fullpage {
|
||||||
html {
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.layout-mobile,
|
html {
|
||||||
.layout-tv {
|
@include fullpage;
|
||||||
-webkit-touch-callout: none;
|
line-height: 1.35;
|
||||||
user-select: none;
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
@include fullpage;
|
||||||
|
overflow-x: hidden;
|
||||||
|
background-color: transparent !important;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
}
|
}
|
||||||
|
|
||||||
.clipForScreenReader {
|
.clipForScreenReader {
|
||||||
|
@ -36,14 +41,10 @@ html {
|
||||||
contain: strict;
|
contain: strict;
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
.layout-mobile,
|
||||||
line-height: 1.35;
|
.layout-tv {
|
||||||
}
|
-webkit-touch-callout: none;
|
||||||
|
user-select: none;
|
||||||
body {
|
|
||||||
overflow-x: hidden;
|
|
||||||
background-color: transparent !important;
|
|
||||||
-webkit-font-smoothing: antialiased;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mainAnimatedPage {
|
.mainAnimatedPage {
|
||||||
|
@ -58,7 +59,7 @@ body {
|
||||||
overflow-y: hidden !important;
|
overflow-y: hidden !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
div[data-role=page] {
|
div[data-role="page"] {
|
||||||
outline: 0;
|
outline: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,10 +72,10 @@ div[data-role=page] {
|
||||||
padding-left: 0.15em;
|
padding-left: 0.15em;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
white-space: normal !important;
|
white-space: normal !important;
|
||||||
}
|
|
||||||
|
|
||||||
.fieldDescription + .fieldDescription {
|
+ .fieldDescription {
|
||||||
margin-top: 0.3em;
|
margin-top: 0.3em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-primary,
|
.content-primary,
|
||||||
|
@ -85,9 +86,14 @@ div[data-role=page] {
|
||||||
padding-bottom: 5em !important;
|
padding-bottom: 5em !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media all and (min-width: 50em) {
|
.readOnlyContent {
|
||||||
.readOnlyContent,
|
@media all and (min-width: 50em) {
|
||||||
form {
|
max-width: 54em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
form {
|
||||||
|
@media all and (min-width: 50em) {
|
||||||
max-width: 54em;
|
max-width: 54em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -107,14 +113,14 @@ div[data-role=page] {
|
||||||
.headroom {
|
.headroom {
|
||||||
will-change: transform;
|
will-change: transform;
|
||||||
transition: transform 200ms linear;
|
transition: transform 200ms linear;
|
||||||
}
|
|
||||||
|
|
||||||
.headroom--pinned {
|
&--pinned {
|
||||||
transform: translateY(0%);
|
transform: translateY(0%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.headroom--unpinned {
|
&--unpinned {
|
||||||
transform: translateY(-100%);
|
transform: translateY(-100%);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.drawerContent {
|
.drawerContent {
|
Loading…
Add table
Add a link
Reference in a new issue