first commit
This commit is contained in:
112
style.css
Normal file
112
style.css
Normal file
@@ -0,0 +1,112 @@
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: "Arial", sans-serif;
|
||||
line-height: 1.6;
|
||||
color: #333;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
.header {
|
||||
background-color: #45a049;
|
||||
color: white;
|
||||
text-align: center;
|
||||
padding: 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.header__title {
|
||||
margin: 0;
|
||||
font-size: 2.5em;
|
||||
}
|
||||
|
||||
.header__description {
|
||||
margin: 10px 0 0 0;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
.main-content {
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
.about {
|
||||
background-color: #f9f9f9;
|
||||
padding: 20px;
|
||||
border-radius: 10px;
|
||||
border-left: 5px solid #4caf50;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.about__title {
|
||||
color: #2c3e50;
|
||||
border-bottom: 2px solid #4caf50;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
.habits-examples h2 {
|
||||
color: #333;
|
||||
text-align: center;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.habits-examples h2::after {
|
||||
content: '';
|
||||
display: block;
|
||||
width: 100px;
|
||||
background-color: #45a049;
|
||||
margin: 10px auto;
|
||||
height: 5px;
|
||||
}
|
||||
|
||||
.habits-examples-line {
|
||||
display: block;
|
||||
width: 100px;
|
||||
height: 3px;
|
||||
background-color: #45a049;
|
||||
margin-left: 50%;
|
||||
}
|
||||
|
||||
|
||||
.habit-card {
|
||||
background: white;
|
||||
border: 2px solid #e0e0e0;
|
||||
border-radius: 8px;
|
||||
padding: 15px;
|
||||
margin-bottom: 15px;
|
||||
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.habit-card--completed {
|
||||
border: 2px solid #4caf50;;
|
||||
}
|
||||
|
||||
.habit-card p {
|
||||
margin: 0;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.habit-card h3 {
|
||||
margin: 0 0 10px 0;
|
||||
color: #4caf50;
|
||||
}
|
||||
|
||||
.habit-card:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 5px 20px rgba(0,0,0,0.15);
|
||||
border-color: #4caf50;
|
||||
}
|
||||
|
||||
.footer {
|
||||
background-color: #333;
|
||||
color: white;
|
||||
text-align: center;
|
||||
padding: 20px;
|
||||
margin-top: 40px;
|
||||
}
|
||||
Reference in New Issue
Block a user