Adding styles for a webpage.

This commit is contained in:
dan612
2025-12-07 23:16:51 -05:00
parent 1a822fe8c5
commit 91d5eb7f0a
18 changed files with 593 additions and 21 deletions

BIN
2025/theme/images/.DS_Store vendored Normal file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 344 KiB

1
2025/theme/js/main.js Normal file
View File

@@ -0,0 +1 @@
// console.log('hello world');

View File

@@ -0,0 +1,33 @@
.card {
background-color: var(--primary-2);
padding: 15px;
flex: 1;
h2 {
margin: 0;
color: var(--primary-0);
border-bottom: 1px solid var(--primary-3);
margin-bottom: 12px;
font-size: 2.5rem;
}
&-wrapper {
display: flex;
flex-wrap: wrap;
justify-content: space-evenly;
vertical-align: top;
align-items: flex-start;
gap: 12px;
}
&-body {
display: flex;
flex-direction: column;
gap: 12px;
justify-content: space-between;
p {
color: var(--primary-0);
}
}
}

View File

@@ -0,0 +1,14 @@
.fs-1 {
font-size: 2rem;
line-height: 2.2rem;
@media (min-width: 768px) {
font-size: 3rem;
line-height: 3.2rem;
}
@media (min-width: 1024px) {
font-size: 4rem;
line-height: 4.2rem;
}
}

188
2025/theme/style.css Normal file
View File

@@ -0,0 +1,188 @@
@import url("https://fonts.googleapis.com/css2?family=Bitcount+Prop+Double+Ink:wght@100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
:root {
--primary-0: #230C33;
--primary-1: #592E83;
--primary-2: #9984D4;
--primary-3: #CAA8F5;
--primary-accent: #B27C66;
}
.accent {
color: var(--primary-accent);
}
.bitcount {
font-family: "Bitcount Prop Double Ink", system-ui;
font-optical-sizing: auto;
font-weight: 500;
font-style: normal;
font-variation-settings: "slnt" 0, "CRSV" 0.5, "ELSH" 0, "ELXP" 0, "SZP1" 0, "SZP2" 0, "XPN1" 0, "XPN2" 0, "YPN1" 0, "YPN2" 0;
}
.montserrat {
font-family: "Montserrat", system-ui;
}
.light {
font-weight: 100;
}
.regular {
font-weight: 500;
}
.bold {
font-weight: 700;
}
.bolder {
font-weight: 900;
}
body {
min-height: 100vh;
background-image: url("images/holiday.jpg");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
color: var(--primary-3);
font-family: "Montserrat", system-ui;
font-size: 16px;
line-height: 1.5;
}
@media (min-width: 768px) {
body {
font-size: 18px;
line-height: 1.6;
}
}
.overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: var(--primary-1);
opacity: 0.85;
z-index: -1;
}
h1 {
color: var(--primary-0);
text-align: center;
}
h2,
h3,
h4,
h5,
h6 {
font-family: "Montserrat", system-ui;
font-weight: bold;
line-height: 1.2;
}
@media (min-width: 768px) {
h2,
h3,
h4,
h5,
h6 {
line-height: 1.3;
}
}
p {
margin: 0;
}
a {
color: var(--primary-accent);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
ul {
list-style: none;
margin: 0;
padding: 0;
}
button {
background-color: var(--primary-0);
border: none;
border-radius: 4px;
color: var(--primary-text);
cursor: pointer;
font-family: "Montserrat", system-ui;
font-size: 16px;
font-weight: bold;
line-height: 1.2;
padding: 8px 16px;
text-align: center;
text-decoration: none;
transition: background-color 0.2s ease-in-out;
}
button:hover {
background-color: var(--primary-1);
}
button:active {
background-color: var(--primary-2);
}
.container {
max-width: 1024px;
margin: 0 auto;
padding: 0 16px;
}
.fs-1 {
font-size: 2rem;
line-height: 2.2rem;
}
@media (min-width: 768px) {
.fs-1 {
font-size: 3rem;
line-height: 3.2rem;
}
}
@media (min-width: 1024px) {
.fs-1 {
font-size: 4rem;
line-height: 4.2rem;
}
}
.card {
background-color: var(--primary-2);
padding: 15px;
flex: 1;
}
.card h2 {
margin: 0;
color: var(--primary-0);
border-bottom: 1px solid var(--primary-3);
margin-bottom: 12px;
font-size: 2.5rem;
}
.card-wrapper {
display: flex;
flex-wrap: wrap;
justify-content: space-evenly;
vertical-align: top;
align-items: flex-start;
gap: 12px;
}
.card-body {
display: flex;
flex-direction: column;
gap: 12px;
justify-content: space-between;
}
.card-body p {
color: var(--primary-0);
}
/*# sourceMappingURL=style.css.map */

1
2025/theme/style.css.map Normal file
View File

@@ -0,0 +1 @@
{"version":3,"sourceRoot":"","sources":["style.scss","partials/font-scale.scss","partials/cards.scss"],"names":[],"mappings":"AACQ;AAGR;EAEE;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA,yBACE;;;AAYJ;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EAXF;IAYI;IACA;;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;AAAA;AAAA;AAAA;AAAA;EAKE;EACA;EACA;;AAEA;EATF;AAAA;AAAA;AAAA;AAAA;IAUI;;;;AAIJ;EACE;;;AAGF;EACE;EACA;;AAEA;EACE;;;AAIJ;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAGF;EACE;;;AAIJ;EACE;EACA;EACA;;;ACpJF;EACE;EACA;;AAEA;EAJF;IAKI;IACA;;;AAGF;EATF;IAUI;IACA;;;;ACXJ;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;;AAEA;EACE","file":"style.css"}

154
2025/theme/style.scss Normal file
View File

@@ -0,0 +1,154 @@
// Fonts.
@import url('https://fonts.googleapis.com/css2?family=Bitcount+Prop+Double+Ink:wght@100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
// Variables
:root {
// colors
--primary-0: #230C33;
--primary-1: #592E83;
--primary-2: #9984D4;
--primary-3: #CAA8F5;
--primary-accent: #B27C66;
}
.accent {
color: var(--primary-accent);
}
.bitcount {
font-family: "Bitcount Prop Double Ink", system-ui;
font-optical-sizing: auto;
font-weight: 500;
font-style: normal;
font-variation-settings:
"slnt" 0,
"CRSV" 0.5,
"ELSH" 0,
"ELXP" 0,
"SZP1" 0,
"SZP2" 0,
"XPN1" 0,
"XPN2" 0,
"YPN1" 0,
"YPN2" 0;
}
.montserrat {
font-family: "Montserrat", system-ui;
}
.light {
font-weight: 100;
}
.regular {
font-weight: 500;
}
.bold {
font-weight: 700;
}
.bolder {
font-weight: 900;
}
body {
min-height: 100vh;
background-image: url("images/holiday.jpg");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
color: var(--primary-3);
font-family: "Montserrat", system-ui;
font-size: 16px;
line-height: 1.5;
@media (min-width: 768px) {
font-size: 18px;
line-height: 1.6;
}
}
.overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: var(--primary-1);
opacity: 0.85;
z-index: -1;
}
h1 {
color: var(--primary-0);
text-align: center;
}
h2,
h3,
h4,
h5,
h6 {
font-family: "Montserrat", system-ui;
font-weight: bold;
line-height: 1.2;
@media (min-width: 768px) {
line-height: 1.3;
}
}
p {
margin: 0;
}
a {
color: var(--primary-accent);
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
ul {
list-style: none;
margin: 0;
padding: 0;
}
button {
background-color: var(--primary-0);
border: none;
border-radius: 4px;
color: var(--primary-text);
cursor: pointer;
font-family: "Montserrat", system-ui;
font-size: 16px;
font-weight: bold;
line-height: 1.2;
padding: 8px 16px;
text-align: center;
text-decoration: none;
transition: background-color 0.2s ease-in-out;
&:hover {
background-color: var(--primary-1);
}
&:active {
background-color: var(--primary-2);
}
}
.container {
max-width: 1024px;
margin: 0 auto;
padding: 0 16px;
}
// partials
@import "partials/font-scale";
@import "partials/cards";