mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-11-25 20:42:40 +00:00
* Implement toggle button * Dark mode mixins * Dark mode color design * Disable dark mode for prints * Initial dark mode design * Fix light mode mixin * Disable dark mode on print style * Move dark mode color scheme below the default style to allow referencing * Fix dropdown * Fix device-based dark mode * Dark mode index page design * Responsive auxiliary nav with dark mode toggle * Remove box shadow when on smaller displays * Prevent default on toggle click * Move attribution/licensing to README.md * Fix header padding on index page * Background color transition animation * Remove margin on index when on mobile displays * Remove neon border when on mobile * Fix post-header margin on mobile * Lighten card headers in dark mode
136 lines
2.6 KiB
SCSS
136 lines
2.6 KiB
SCSS
.front-page {
|
|
@include dark-mode {
|
|
background-color: #000;
|
|
}
|
|
|
|
header.active {
|
|
@include dark-mode {
|
|
background-color: $gray-900;
|
|
}
|
|
}
|
|
|
|
.top-fold {
|
|
min-height: 100vh;
|
|
background-color: $header-bg-mid;
|
|
background-image: linear-gradient(135deg, $header-bg-1, $header-bg-2);
|
|
|
|
padding-top: 150px;
|
|
|
|
@include dark-mode {
|
|
background-color: inherit;
|
|
background-image: none;
|
|
}
|
|
|
|
@media (max-width: 400px) {
|
|
padding-top: 100px;
|
|
}
|
|
|
|
.container {
|
|
margin: 0 auto;
|
|
padding-bottom: 1em;
|
|
padding-top: 2em;
|
|
max-width: 1000px;
|
|
}
|
|
|
|
blockquote {
|
|
padding: 1em;
|
|
border-radius: 1em;
|
|
margin-top: -2.5em;
|
|
margin-bottom: 0;
|
|
margin-left: 1em;
|
|
margin-right: 0.5em;
|
|
float: right;
|
|
|
|
background: #ad7ad6;
|
|
border: 3px solid rgba(#ad7ad6, 0.9);
|
|
box-shadow: inset 0px 1px 5px rgba(#000, 0.2), 0px 2px 3px rgba(#000, 0.7);
|
|
text-shadow: 0px 1px 3px rgba(black, 0.9);
|
|
color: $gray-100;
|
|
|
|
@include dark-mode {
|
|
background: darken($trans-blue-darkest, 10%);
|
|
border: 1px solid #0087bb;
|
|
box-shadow: 0 0 5px 2px rgba($trans-blue, .5);
|
|
color: $body-color-dark;
|
|
}
|
|
|
|
max-width: 500px;
|
|
width: 50vw;
|
|
font-family: $font-secondary;
|
|
|
|
transition-property: margin;
|
|
transition-duration: 0.3s;
|
|
transition-timing-function: ease;
|
|
|
|
p {
|
|
margin: 0;
|
|
}
|
|
|
|
span {
|
|
font-weight: 300;
|
|
}
|
|
}
|
|
|
|
.copy {
|
|
color: #333;
|
|
padding: 1em 1.4em;
|
|
|
|
background: #eee;
|
|
border-radius: 0.3rem;
|
|
|
|
box-shadow: inset 0px 1px 5px rgba(#000, 0.2), 0px 1px 5px rgba(#000, 0.9);
|
|
text-shadow: 0px 1px 3px rgba(#fff, 0.6);
|
|
|
|
@include dark-mode {
|
|
background-color: $content-bg-dark;
|
|
box-shadow: 0 0 1pc 6px $primary;
|
|
color: $body-color-dark;
|
|
text-shadow: none;
|
|
|
|
@media (max-width: 800px) {
|
|
box-shadow: none;
|
|
}
|
|
}
|
|
|
|
max-width: 850px;
|
|
margin-left: 0.5em;
|
|
}
|
|
|
|
@media (max-width: 760px) {
|
|
blockquote {
|
|
max-width: unset;
|
|
width: unset;
|
|
margin-top: -1em;
|
|
margin-bottom: 1em;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 865px) {
|
|
.copy {
|
|
margin-right: 0.5em;
|
|
}
|
|
|
|
blockquote {
|
|
margin-right: 1em;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 500px) {
|
|
.copy {
|
|
margin-left: 0;
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
.pager {
|
|
margin: -1.5em 1em 1em;
|
|
position: static;
|
|
|
|
.btn {
|
|
min-width: unset;
|
|
}
|
|
}
|
|
}
|