63 lines
1.4 KiB
SCSS
63 lines
1.4 KiB
SCSS
|
// General Reset
|
||
|
* {
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
box-sizing: border-box;
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
font-family: 'Helvetica Neue', Arial, sans-serif;
|
||
|
background-color: #f4f4f4;
|
||
|
display: flex;
|
||
|
justify-content: center;
|
||
|
align-items: center;
|
||
|
height: 100vh;
|
||
|
color: #333;
|
||
|
|
||
|
.container {
|
||
|
text-align: center;
|
||
|
padding: 40px;
|
||
|
background-color: #fff;
|
||
|
border-radius: 10px;
|
||
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
|
||
|
max-width: 400px;
|
||
|
|
||
|
h1 {
|
||
|
font-size: 3rem;
|
||
|
color: #333;
|
||
|
margin-bottom: 20px;
|
||
|
font-weight: bold;
|
||
|
|
||
|
// Nested styling within h1
|
||
|
&:hover {
|
||
|
color: #007BFF;
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
p {
|
||
|
font-size: 1.2rem;
|
||
|
color: #777;
|
||
|
line-height: 1.6;
|
||
|
|
||
|
// Nested styling within p
|
||
|
&::first-letter {
|
||
|
font-size: 1.5rem;
|
||
|
font-weight: bold;
|
||
|
color: #333;
|
||
|
}
|
||
|
|
||
|
&::after {
|
||
|
content: '...';
|
||
|
color: #333;
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Additional styling for the container when it's in focus (or other possible states)
|
||
|
&:focus-within {
|
||
|
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
|
||
|
}
|
||
|
}
|
||
|
}
|