-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
128 lines (122 loc) · 3.71 KB
/
index.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
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!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>Snippet Cheatsheet</title>
<link rel="stylesheet" href="./assets/css/reset.css" />
<link rel="stylesheet" href="./assets/css/styles.css" />
</head>
<body>
<header>
<h1 class="page-title">Snippet Cheatsheet</h1>
<p>Ever have trouble recalling the exact syntax for your favorite CSS page! Select any snippet below and it'll
automatically select all of the code for you to copy.</p>
</header>
<main>
<section class="row justify-center">
<div class="card-column">
<figure class="card code-card">
<h2 class="card-header">Flexbox Row</h2>
<div class="card-body">
<p>Use these properties to create a Flexbox row layout.</p>
</div>
<pre class="code-block">
<code>.row {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}</code>
</pre>
</figure>
</div>
<div class="card-column">
<figure class="card code-card">
<h2 class="card-header">Flexbox Column</h2>
<div class="card-body">
<p>Use the to create a Flexbox column layout.</p>
</div>
<pre class="code-block">
<code>.column {
display: flex;
flex-direction: column;
}</code>
</pre>
</figure>
</div>
<div class="card-column">
<figure class="card code-card">
<h2 class="card-header">CSS Grid Layout</h2>
<div class="card-body">
<p>Build a 12-column useing CSS Grid.</p>
</div>
<pre class="code-block">
<code>.row {
display: grid;
width: 100%;
grid-template-columns:
repeat(12, 1fr);
}</code>
</pre>
</figure>
</div>
<div class="card-column">
<figure class="card code-card">
<h2 class="card-header">Linear Gradients</h2>
<div class="card-body">
<p>Creates a linear gradient bg from top to bottom..</p>
</div>
<pre class="code-block">
<code>.linear-gradient {
background-image: linear-
gradient(
rgba(102, 236, 0.3) 0%,
rgba(232, 102, 0.6) 100%,
)
}</code>
</pre>
</figure>
</div>
<div class="card-column">
<figure class="card code-card">
<h2 class="card-header">Box Transition Glow</h2>
<div class="card-body">
<p>Use transition and box shawdows to glow on hover</p>
</div>
<pre class="code-block">
<code>.code-card .card-header {
border-radius: 8px;
transition: all 0.5s ease-in-
out;
}
.code-card:hover,
.code-card:hover .card-header {
box-shadow: inset 0px 0px 0px 8px
rgba(232, 102, 236, 1), 0px 0px 15px
rgba(232, 102, 236, 1);
}</code>
</pre>
</figure>
</div>
<div class="card-column">
<figure class="card code-card">
<h2 class="card-header">Overlay Card with Title</h2>
<div class="card-body">
<p>This will create a background from top to bottom.</p>
</div>
<pre class="code-block">
<code>.card-header {
position: relative;
margin-top: 120px;
}</code>
</pre>
</figure>
</div>
</section>
</main>
<footer>
<h3>Made with <span role="img" aria-label="heart">❤️</span> and CSS</h3>
</footer>
</body>
</html>