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
225 lines
3.9 KiB
SCSS
225 lines
3.9 KiB
SCSS
|
|
.markup {
|
|
-webkit-font-smoothing: antialiased;
|
|
transition: background-color 0.5s;
|
|
|
|
p a {
|
|
transition-property: color, padding, margin;
|
|
transition-duration: 0.3s;
|
|
transition-timing-function: ease;
|
|
text-decoration: underline;
|
|
|
|
@include light-mode {
|
|
color: $primary;
|
|
&:hover {
|
|
color: #e84992;
|
|
}
|
|
}
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
}
|
|
|
|
hr {
|
|
overflow: hidden;
|
|
}
|
|
|
|
blockquote {
|
|
font-family: $font-secondary;
|
|
font-weight: 300;
|
|
font-size: 0.94em;
|
|
line-height: 1.4;
|
|
background: $trans-blue-lightest;
|
|
border: 1px solid $trans-blue;
|
|
box-shadow: 0 1px 3px rgba($trans-blue,0.5);
|
|
border-radius: 5px;
|
|
padding: 15px;
|
|
color: black;
|
|
|
|
@include dark-mode {
|
|
background: darken($trans-blue-darkest, 10%);
|
|
border: 1px solid #0087bb;
|
|
color: $body-color-dark;
|
|
box-shadow: 0 0 5px 2px rgba($trans-blue,0.5);
|
|
}
|
|
|
|
color-adjust: exact;
|
|
-webkit-print-color-adjust: exact;
|
|
print-color-adjust: exact;
|
|
|
|
position: relative;
|
|
overflow: hidden;
|
|
|
|
strong {
|
|
font-weight: 600;
|
|
}
|
|
|
|
&::before {
|
|
font-family: cursive;
|
|
font-weight: 700;
|
|
display: block;
|
|
padding-left: 10px;
|
|
content: "\201C";
|
|
font-size: 50px;
|
|
position: absolute;
|
|
left: -10px;
|
|
top: -16px;
|
|
color: $trans-blue;
|
|
text-shadow: 0 1px 3px rgba($trans-blue,0.5);
|
|
opacity: 0.8;
|
|
}
|
|
|
|
p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
}
|
|
|
|
h1, h2, h3, h4, h5 {
|
|
clear: left;
|
|
display: flex;
|
|
|
|
a { text-decoration: inherit; }
|
|
|
|
.header-link {
|
|
flex: 1;
|
|
font-size: 0.75em;
|
|
text-decoration: none;
|
|
align-self: center;
|
|
text-align: right;
|
|
opacity: 0.15;
|
|
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
img {
|
|
height: 1em;
|
|
}
|
|
|
|
@include dark-mode {
|
|
// Convert the black svg icon to the $primary color at runtime using CSS filters
|
|
// https://stackoverflow.com/a/43960991
|
|
filter: invert(34%) sepia(87%) saturate(2698%) hue-rotate(313deg) brightness(108%) contrast(98%);
|
|
}
|
|
}
|
|
|
|
+ {
|
|
h1, h2, h3, h4, h5 {
|
|
.header-link {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
&:first-child {
|
|
.header-link {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
h5 {
|
|
font-weight: 600;
|
|
font-family: $font-primary;
|
|
margin-bottom: 0.2rem;
|
|
font-size: 1.05em;
|
|
}
|
|
|
|
li p {
|
|
margin-bottom: 0;
|
|
margin-top: 0.5em;
|
|
}
|
|
|
|
li p + ul {
|
|
margin-bottom: 0.5em;
|
|
}
|
|
|
|
ul { padding-left: 2em; }
|
|
|
|
code {
|
|
font-size: 87.5%;
|
|
color: $gray-900;
|
|
word-wrap: break-word;
|
|
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
|
background: $gray-300;
|
|
padding: 2px;
|
|
}
|
|
|
|
.center {
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
margin-bottom: 1em;
|
|
}
|
|
}
|
|
|
|
.cw {
|
|
$cwColor: darken($gray-100, 2%);
|
|
margin: 0 -1rem 1em;
|
|
|
|
&:first-child {
|
|
margin-top: -1rem;
|
|
}
|
|
|
|
padding: 10px 20px;
|
|
background-color: $cwColor;
|
|
color-adjust: exact;
|
|
-webkit-print-color-adjust: exact;
|
|
print-color-adjust: exact;
|
|
|
|
@include dark-mode {
|
|
background-color: lighten($content-bg-dark, 5%);
|
|
color: #fff;
|
|
}
|
|
|
|
font-size: 0.8rem;
|
|
font-weight: 300;
|
|
|
|
.cw-header {
|
|
font-weight: 500;
|
|
margin: 5px -10px;
|
|
padding: 0px 10px 5px;
|
|
font-size: 1.2rem;
|
|
font-family: $font-secondary;
|
|
|
|
p { margin: 0; }
|
|
}
|
|
|
|
> p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
.two-column-list {
|
|
|
|
@media (min-width: 500px) {
|
|
h1, h2, h3, h4 {
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
ol, ul {
|
|
|
|
@media (max-width: 400px) {
|
|
padding-left: 1.5em;
|
|
}
|
|
|
|
@media (max-width: 500px) {
|
|
padding-left: 2em;
|
|
}
|
|
|
|
@media (min-width: 500px) {
|
|
columns: 2;
|
|
padding-left: 3em;
|
|
}
|
|
|
|
@media (min-width: 1100px) {
|
|
padding-left: 5em;
|
|
}
|
|
|
|
li { margin-bottom: 0.5em; }
|
|
p { margin: 0; }
|
|
}
|
|
}
|