1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rshyn-site/css/default.scss

259 lines
3.5 KiB

@import url(/fonts/fonts.css);
$themes: (
"light": (
"background": #F3F8F1,
"primary": #D7263D,
"secondary": #984EA3,
2 weeks ago
"text": black,
"filter": invert(0)
),
"dark": (
"primary": #88d498,
"secondary": #db5375,
"background": #161616,
2 weeks ago
"text": white,
"filter": invert(1)
)
);
@each $theme-name, $properties in $themes {
body[data-theme="#{$theme-name}"] {
// define a css variable for each property
@each $name, $property in $properties {
--#{$name}: #{$property};
}
}
}
2 years ago
html {
font-family: "SpaceGrotesk";
2 years ago
}
a {
color: var(--primary);
text-decoration: none;
2 years ago
}
a:hover {
color : var(--secondary);
2 years ago
}
a:visited {
color: var(--secondary);
2 years ago
}
body {
font-size: 1.6rem;
color: var(--text);
background-color: var(--background);
2 years ago
}
header {
border-bottom: 0.2rem solid var(--text);
2 years ago
}
nav a {
font-size: 1.8rem;
font-weight: bold;
color: var(--text);
2 years ago
text-decoration: none;
text-transform: uppercase;
}
#btn-switch {
background: none;
color: inherit;
border: none;
font: inherit;
cursor: pointer;
}
#btn-switch:hover {
color : var(--secondary);
}
2 years ago
h1 {
font-size: 2.4rem;
}
h2 {
font-size: 2rem;
}
article .header {
font-size: 1.4rem;
font-style: italic;
color: #555;
}
.logo a {
font-weight: bold;
color: var(--text);
2 years ago
text-decoration: none;
}
@media (max-width: 319px) {
body {
width: 90%;
margin: 0;
padding: 0 5%;
}
header {
margin: 4.2rem 0;
}
nav {
margin: 0 auto 3rem;
text-align: center;
}
footer {
text-align: center;
}
.logo {
text-align: center;
margin: 1rem auto 3rem;
}
.logo a {
font-size: 2.4rem;
}
nav a {
display: block;
line-height: 1.6;
}
}
@media (min-width: 320px) {
body {
width: 90%;
margin: 0;
padding: 0 5%;
}
header {
margin: 4.2rem 0;
}
nav {
margin: 0 auto 3rem;
text-align: center;
}
footer {
text-align: center;
}
.logo {
text-align: center;
margin: 1rem auto 3rem;
}
.logo a {
font-size: 2.4rem;
}
nav a {
display: inline;
margin: 0 0.6rem;
}
}
@media (min-width: 640px) {
body {
width: 90%;
2 years ago
margin: 0 auto;
padding: 0;
}
header {
margin: 0 0 3rem;
padding: 1.2rem 0;
}
nav {
margin: 0;
text-align: right;
}
nav a {
margin: 0 0 0 1.2rem;
display: inline;
}
footer {
text-align: right;
}
.logo {
margin: 0;
text-align: left;
}
.logo a {
float: left;
font-size: 1.8rem;
}
}
2 weeks ago
/* Next & previous buttons */
.prev, .next {
cursor: pointer;
width: auto;
padding: 16px;
color: white;
font-weight: bold;
font-size: 18px;
transition: 0.6s ease;
border-radius: 0 3px 3px 0;
user-select: none;
}
/* Position the "next button" to the right */
.next {
right: 0;
border-radius: 3px 0 0 3px;
}
.prev:hover, .next:hover {
background-color: rgba(0,0,0,0.8);
}
.gallery {
align-items: center;
display: flex;
gap: 10px;
}
.photo {
2 weeks ago
display: none;
flex: 1;
}
.photo > img {
max-width: 100%;
height: 50vh;
2 weeks ago
object-fit: contain;
2 years ago
}
2 weeks ago
.svg-img {
border: none;
margin: none;
filter: var(--filter);
height: 1.4rem;
display: inline;
}
footer {
font-size: 1.4rem;
border-top: 1px dotted;
text-align: left;
align-content: left;
}
img {
border: 1px solid;
margin: auto;
display: block;
max-width:75%;
}
.modded {
color: grey;
}
code {
color: white;
background-color: #212121;
font-size: 1rem;
font-family: "PressStart";
padding: .1rem .3rem .2rem;
}