-
Notifications
You must be signed in to change notification settings - Fork 0
/
css-variables.html
53 lines (49 loc) · 1.25 KB
/
css-variables.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
:root {
--gray: #878f99;
--white: #fff;
}
body {
--gray: #f18973;
background-color: var(--gray);
}
h2 {
border-bottom: 2px solid var(--gray);
}
.container {
color: var(--gray);
background-color: var(--white);
padding: 20px;
}
button {
background-color: var(--white);
color: var(--gray);
border: 1px solid var(--gray);
padding: 5px;
}
</style>
</head>
<body>
<h1>Lorem ipsum dolor sit amet.</h1>
<div class="container">
<h2>Lorem, ipsum dolor.</h2>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Odit, repellat!
Nobis possimus sunt tenetur officiis asperiores ipsam necessitatibus ex
consequatur. Temporibus eaque distinctio in consequatur laudantium
dolorem nam voluptas natus.
</p>
<div>
<button>OK</button>
<button>Cancel</button>
</div>
</div>
</body>
</html>