-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
110 lines (105 loc) · 3.51 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="assests/style.css">
<title>CSS Snippet Cheat Sheet</title>
</head>
<body>
<h1>CSS Snippet Cheatsheet</h1>
<p>Give it a permanent home and add it to this page! Select any snippet below and it'll automatically select all of
the
code for you to cope.</p>
<main>
<div class="card">
<section class="card-header">
<h2>Flexbox Row</h2>
</section>
<header>Use these three properties to create a Flexbox row layout.</header>
<pre>
.row {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
</pre>
</div>
<div class="card">
<section class="card-header">
<h2>Flexbox Column</h2>
</section>
<header>Use This to create a Flexbox column layout.</header>
<pre>
.column {
display: flex;
flex-direction: column;
}
</pre>
</div>
<div class="card">
<section class="card-header">
<h2>Flexbox Grid Layout</h2>
</section>
<header>Build a 12-column layout using CSS Grid.</header>
<pre>
.grid {
display: grid;
width: 100%;
grid-template-columns;
repeat(12. 1fr);
}
</pre>
</div>
<div class="card">
<section class="card-header">
<h2>Linear Gradients</h2>
</section>
<header>This will create background linear gradient from top to bottom.</header>
<pre>
.linear-gradient-background {
background-image: linear-
gradient(
rgba(232, 102, 236, 0.3) 0%
rgba(232, 102, 236, 0.6) 100%
);
}
</pre>
</div>
<div class="card">
<section class="card-header">
<h2>Box Transition Glow</h2>
</section>
<header>Use transition and box shadows to glow on hover.</header>
<pre>
.code-card. code-header{
border-radius: 8px;
transition: all 0.5s ease-in-out;
}
.code-card:hover
.code-card:hover. card-header{
box-shadow: inset 0px 0px 8px
rgba(232, 102, 236, 1). 0 0 15px
rgba(232, 102, 236, 1);
}
</pre>
</div>
<div class="card">
<section class="card-header">
<h2>Overlay Card with Title</h2>
</section>
<header>Use position properties and negative margins to raise elements higher than their natural starting
point.</header>
<pre>
.card-header {
position: relative;
margin-top: -20px;
}
</pre>
</div>
</main>
<footer>
<p>Made with <span class="heart">❤</span> and CSS</p>
</footer>
</body>
</html>