-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path2.2-css-var-demo-hover-fallback-support.html
45 lines (32 loc) · 1.6 KB
/
2.2-css-var-demo-hover-fallback-support.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>2.2-css-var-demo-hover-fallback-support.html</title>
<link rel="stylesheet" href="2.2-style-css-var-demo-hover-fallback-support.css">
</head>
<body>
<div class="container">
<h1 class="top-heading-text" id="topHeadingText">2. CSS Variable Demo</h1>
<h2 class="subheading-text" id="subHeadingText">2.2 - Hover effect with Fallback support</h2>
<article class="info-text">
- Any CSS variables defined in the stylesheet can be `accessed` by using `var()` function <br/>
- The CSS `var()` function can be used to insert the value of a custom property or a CSS variable <br/>
- The var() function cannot be used in any property names, selectors or anything else besides property values setting or providing fallback value support<br/> <br/>
</article>
<nav class="button-container">
<div class="button btn-default">btn-default </div>
<div class="button btn-primary">btn-primary </div>
<div class="button btn-secondary">btn-secondary </div>
<div class="button btn-success">btn-success </div>
<div class="button btn-danger">btn-danger </div>
<div class="button btn-info">btn-info </div>
<div class="button btn-warning">btn-warning </div>
<div class="button btn-light">btn-light </div>
<div class="button btn-dark">btn-dark </div>
</nav>
</div>
</body>
</html>