/** * Reset some basic elements */ body, h1, h2, h3, h4, h5, h6, p, blockquote, pre, hr, dl, dd, ol, ul, figure { margin: 0; padding: 0; box-sizing: border-box; } /** * Basic styling */ body { font: $base-font-weight #{$base-font-size}/#{$base-line-height} $base-font-family; color: $text-color; background-color: var(--md-sys-color-surface-container); -webkit-text-size-adjust: 100%; -webkit-font-feature-settings: "kern" 1; -moz-font-feature-settings: "kern" 1; -o-font-feature-settings: "kern" 1; font-feature-settings: "kern" 1; font-kerning: normal; display: flex; min-height: 100vh; flex-direction: column; } /** * Set `margin-bottom` to maintain vertical rhythm */ h1, h2, h3, h4, h5, h6, p, blockquote, pre, ul, ol, dl, figure, %vertical-rhythm { margin-bottom: $spacing-unit / 2; } /** * `main` element */ main { display: block; /* Default value of `display` of `main` element is 'inline' in IE 11. */ } /** * Images */ img { max-width: 100%; vertical-align: middle; } /** * Figures */ figure > img { display: block; } figcaption { font-size: $small-font-size; } /** * Lists */ ul, ol { margin-left: $spacing-unit; } li { > ul, > ol { margin-bottom: 0; } } /** * Headings */ h1, h2, h3, h4, h5, h6 { font-weight: $base-font-weight; } /** * Links */ a { color: var(--md-sys-color-primary); text-decoration: none; &:visited { // color: var(--md-sys-color-inverse-primary); } &:hover { color: $text-color; text-decoration: underline; } .social-media-list &:hover { text-decoration: none; .username { text-decoration: underline; } } } /** * Wrapper */ .wrapper { max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit} * 2) + 48px); max-width: calc(#{$content-width} - (#{$spacing-unit} * 2) + 48px); margin-right: auto; margin-left: auto; padding-right: $spacing-unit; padding-left: $spacing-unit + 100; @extend %clearfix; @include media-query($on-laptop) { max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit})); max-width: calc(#{$content-width} - (#{$spacing-unit})); padding-right: $spacing-unit / 2; padding-left: ($spacing-unit / 2)+100; } @include media-query($on-palm) { padding-left: $spacing-unit/2; padding-left: 0px; padding-right: 0px; } } /** * Clearfix */ %clearfix:after { content: ""; display: table; clear: both; } /** * Icons */ .svg-icon { width: 16px; height: 16px; display: inline-block; fill: #{$grey-color}; padding-right: 5px; vertical-align: text-top; } .social-media-list { li + li { padding-top: 5px; } } /** * Tables */ table { display: block; overflow-x: auto; width: fit-content; max-width: 100%; margin-bottom: $spacing-unit; text-align: $table-text-align; color: var(--md-sys-color-on-surface); border-collapse: collapse; border: 1px solid var(--md-sys-color-outline); border-radius: 8px; tr { &:nth-child(even) { background-color: var(--md-sys-color-surface-container-high); } } th, td { padding: ($spacing-unit / 3) ($spacing-unit / 2); } th { background-color: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); // border: 1px solid darken($grey-color-light, 4%); // border-bottom-color: darken($grey-color-light, 12%); } td { border-top: 1px solid var(--md-sys-color-outline); } } .home { max-width: 1200px; margin-left: auto; margin-right: auto; padding-right: $spacing-unit; padding-left: $spacing-unit + 100; @extend %clearfix; @include media-query($on-laptop) { padding-right: $spacing-unit / 2; padding-left: ($spacing-unit / 2)+100; } @include media-query($on-palm) { padding-left: $spacing-unit/2; } } h1 { font-family: "Comic Shanns", $base-font-family; // text-align: start; } @keyframes mainreveal { from { transform: translateY(20%); opacity: 0; } to { transform: translate(0); opacity: 1; } } main { overflow: hidden; animation: mainreveal 0.25s; } ::-moz-selection { /* Code for Firefox */ color: var(--md-sys-color-on-primary); background: var(--md-sys-color-primary); } ::selection { color: var(--md-sys-color-on-primary); background: var(--md-sys-color-primary); }