-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
114 lines (97 loc) · 1.71 KB
/
Copy pathstyle.css
File metadata and controls
114 lines (97 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
/* Universal Selector */
*{
box-sizing: border-box;
margin: 0;
padding: 0;
}
body{
font-family: Arial, sans-serif;
background-color: #f4f4f4;
color: #333;
}
/* Container using rem */
.container{
max-width: 70rem;
margin: auto;
padding: 2rem;
}
/* Hero Section using vh */
.grid{
min-height: 60vh;
display: flex;
gap: 2rem;
margin-top: 2rem;
align-items: center;
justify-content: center;
}
article{
width: 45%; /* percentage width */
background-color: white;
border-radius: 10px;
padding: 2em; /* em units */
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
h1{
text-align: center;
margin-bottom: 1em;
}
h2{
margin-bottom: 0.5em;
}
/* Adjacent sibling combinator */
h2 + div{
color: #666;
margin-bottom: 1em;
font-style: italic;
}
.price-tag{
font-size: 2rem;
margin: 1em 0;
}
/* Child combinator */
.price-tag > span{
color: #2563eb;
font-weight: bold;
font-size: 1.5rem;
}
button{
padding: 0.8em 1.5em;
border: none;
border-radius: 6px;
background-color: #2563eb;
color: white;
cursor: pointer;
transition: 0.3s;
}
/* Hover pseudo-class */
button:hover{
background-color: #1d4ed8;
}
/* First article only */
article:first-of-type{
border: 3px solid gold;
}
.features{
margin-top: 3em;
list-style: none;
}
.features li{
padding: 1em;
background-color: white;
margin-bottom: 0.5em;
border-radius: 5px;
}
/* Highlight even rows */
.features li:nth-child(even){
background-color: #dbeafe;
}
footer{
margin-top: 3em;
text-align: center;
}
/* Descendant combinator */
footer a{
text-decoration: none;
color: #2563eb;
margin: 0 1em;
}