Untitled
unknown
plain_text
a year ago
4.9 kB
7
Indexable
:root {
--background-color: #f4f4f4;
--text-color: #333333;
--nav-background-color: #ffffff;
--nav-text-color: #333333;
--nav-border-color: #dddddd;
--nav-hover-background-color: #e0e0e0;
--nav-hover-text-color: #007bff;
--footer-background-color: #222222;
--footer-text-color: #f4f4f4;
}
:root {
--bg-color: #fff;
--text-color: #000;
}
[data-theme='dark'] {
--bg-color: #121212;
--text-color: #fff;
}
body {
background-color: var(--bg-color);
color: var(--text-color);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body {
height: 100%;
}
body {
display: flex;
flex-direction: column;
min-height: 100%;
}
main {
flex: 1;
}
header {
margin-top: 0;
background-color: var(--background-color);
padding: 1.5rem 2rem;
text-align: center;
box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.2);
}
nav ul {
display: flex;
background-color: var(--nav-background-color);
color: var(--nav-text-color);
padding: 1rem;
list-style-type: none;
justify-content: space-between;
border-bottom: 0.4rem solid var(--nav-border-color);
}
nav ul li {
text-align: center;
margin: 0 1.5rem;
padding: 1rem;
border-radius: 0.5rem;
transition: background-color 0.3s ease, transform 0.3s ease;
}
nav ul li:hover {
background-color: var(--nav-hover-background-color);
transform: scale(1.1);
}
nav ul li a {
text-decoration: none;
color: var(--nav-text-color);
font-size: 1.8rem;
transition: color 0.3s ease;
}
nav ul li a:hover {
color: var(--nav-hover-text-color);
}
.spinner {
width: 50px;
height: 50px;
border: 5px solid transparent;
border-top: 5px solid #3498db;
border-right: 5px solid #e74c3c;
border-bottom: 5px solid #f39c12;
border-left: 5px solid #2ecc71;
border-radius: 50%;
animation: spin 1.5s linear infinite;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
h1 {
font-size: 4vw;
font-weight: bold;
text-align: center;
color: #2c3e50;
background-color: #ecf0f1;
padding: 2rem;
margin-bottom: 2rem;
text-transform: uppercase;
letter-spacing: 0.1rem;
border-radius: 1rem;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
}
h1:hover {
color: #fff;
background-color: #3498db;
transform: scale(1.05);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
.container{
margin-top: 1rem;
display: flex;
justify-content: flex-start;
}
.card-wrapper{
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;
}
img {
max-width: 100%;
height: auto;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
display: block;
margin: 0 auto;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
img:hover {
transform: scale(1.05);
box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}
img:active {
transform: scale(0.95);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.card {
border: 1px solid #ddd;
border-radius: 0.5rem;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
padding: 1.5rem;
background-color: #fff;
transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card:hover {
box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
transform: translateY(-4px);
}
.card-title {
font-size: 1.5rem;
margin-bottom: 1rem;
}
.card-text {
font-size: 1rem;
color: #666;
}
.btn {
display: inline-block;
padding: 0.75rem 1.5rem;
border: none;
border-radius: 0.25rem;
text-align: center;
font-size: 1rem;
cursor: pointer;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.btn:hover {
box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
transform: translateY(-2px);
}
aside {
background-color: #f4f4f4;
border: 1px solid #ccc;
padding: 20px;
margin: 20px auto;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
max-width: 300px;
}
aside h2 {
font-size: 1.5rem;
margin-bottom: 10px;
color: #333;
}
aside p {
font-size: 1rem;
color: #666;
line-height: 1.5;
}
aside ul {
list-style-type: square;
margin-left: 20px;
}
aside a {
color: #007BFF;
text-decoration: none;
}
aside a:hover {
text-decoration: underline;
color: #0056b3;
}
aside:hover {
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
footer {
margin-top: 3rem;
background-color: var(--footer-background-color);
width: 100%;
box-shadow: 0 -0.4rem 0.8rem rgba(0, 0, 0, 0.1);
text-align: center;
padding: 1.5rem;
position: relative;
bottom: 0;
}
footer p {
color: var(--footer-text-color);
font-size: 1.6rem;
}Editor is loading...
Leave a Comment