Astro app

This commit is contained in:
Alicia Sykes
2024-05-20 22:44:09 +01:00
parent 34ca09fc20
commit b090dcadb1
23 changed files with 513 additions and 48 deletions

123
src/styles/global.scss Normal file
View File

@@ -0,0 +1,123 @@
/* Global Stylesheet */
@import './media-queries.scss';
/* CSS Reset - Normalize dimensions and spacing across browsers */
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
/* HTML and body basic setup */
html {
font-size: 16px; // Default text size; consider accessibility and user preferences
scroll-behavior: smooth; // Smooth scrolling on click to hash links
}
body {
font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
line-height: 1;
color: var(--text-color);
background: var(--background);
overflow-x: hidden;
font-weight: 400;
}
/* Links */
a {
color: inherit;
text-decoration: none;
&:hover,
&:focus {
text-decoration: underline;
}
}
/* Images */
img {
max-width: 100%;
height: auto;
}
/* Typography */
h1, h2, h3, h4, h5, h6 {
color: inherit;
margin-top: 0;
margin-bottom: 0.5em;
font-weight: normal;
}
p {
margin-top: 0;
margin-bottom: 1em;
}
ul, ol {
margin-top: 0;
margin-bottom: 1em;
padding-left: 20px;
}
/* Forms */
input, button, textarea, select {
font: inherit;
&:focus {
outline: 1px solid var(--primary);
}
}
/* Utility Classes */
.text-center {
text-align: center;
}
.hidden {
display: none;
}
/* Responsive Design - Example of a simple breakpoint */
@media (max-width: 768px) {
html {
font-size: 14px; // Smaller font size on smaller screens
}
}
h1, h2, h3, h4, h5, h6 {
margin-top: 0;
margin-bottom: 0.5em;
font-weight: 600;
color: var(--text-color);
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.85rem; }
p {
margin-top: 0;
margin-bottom: 1em;
}
a {
color: var(--primary);
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
// Responsive font sizes
@media (max-width: 768px) {
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.4rem; }
// Adjust more as necessary
}