-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcss.html
345 lines (322 loc) · 14.2 KB
/
css.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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
<!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>css cheatsheet</title>
<link rel="stylesheet" href="./html.css">
<link rel="stylesheet" href="./prism.css">
<script src="./prism.js"></script>
<script src="https://kit.fontawesome.com/37df777d72.js" crossorigin="anonymous"></script>
<link href="https://fonts.googleapis.com/css2?family=Ubuntu:wght@300&display=swap" rel="stylesheet">
</head>
<body>
<div class="container">
<!-- navbar strats here -->
<nav class="navbar">
<a href="./index.html"><img src="./copy.png" alt="Cheatsheet icon"></a>
<a href="./index.html">Home</a>
<a href="./html.html">Html</a>
<a href="#">CSS</a>
<a href="./js.html">Java Script</a>
<a href="#">Others</a>
<a href="https://www.google.com/" target="_blank" style="float: right;">Go for Help</a>
</nav>
<!-- navbar ends here -->
<!-- main section starts here -->
<div id="mainSection">
<!-- left column starts here -->
<div class="leftcolumn">
<!-- card-1 -->
<div class="card">
<h3>Ubuntu Font</h3>
<p>This is a beutiful font.</p>
<pre class="language-html"><code><link href="https://fonts.googleapis.com/css2?family=Ubuntu:wght@300&display=swap" rel="stylesheet">
</code></pre>
<pre class="language-css"><code>font-family: 'Ubuntu', sans-serif;</code></pre>
</div>
<!-- card-2 -->
<div class="card">
<h3>Potta One Font</h3>
<p>This is a beutiful font.</p>
<pre class="language-html"><code><link href="https://fonts.googleapis.com/css2?family=Potta+One&family=Ubuntu:wght@300&display=swap" rel="stylesheet">
</code></pre>
<pre class="language-css"><code>font-family: 'Potta One', cursive;</code></pre>
</div>
<!-- card-3 -->
<div class="card">
<h3>Bootstrap CSS</h3>
<p>It connects to Bootstrap.</p>
<pre class="language-html"><code><link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
</code></pre>
</div>
<!-- card-4 -->
<div class="card">
<h3>Bootstrap Navbar</h3>
<p>It is the navbar of Bootstrap.</p>
<pre class="language-html"><code><nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
<a class="navbar-brand" href="#">Navbar</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="#">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Dropdown
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
<li><a class="dropdown-item" href="#">Action</a></li>
<li><a class="dropdown-item" href="#">Another action</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="#">Something else here</a></li>
</ul>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>
</li>
</ul>
<form class="d-flex">
<input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success" type="submit">Search</button>
</form>
</div>
</div>
</nav></code></pre>
</div>
<!-- card-5 -->
<div class="card">
<h3>CSS Color: Morpheus Den</h3>
<p>It is a Beautiful linear-gradient color.</p>
<pre class="language-css" style="background-image: linear-gradient(to top, #30cfd0 0%, #330867 100%);"><code>background-image: linear-gradient(to top, #30cfd0 0%, #330867 100%);</code></pre>
</div>
<!-- car-6 -->
<div class="card">
<h3>Bree Serif/Baloo Bhai/Baloo Bahena</h3>
<p>This is a beutiful font.</p>
<pre class="language-html"><code><link href="https://fonts.googleapis.com/css2?family=Baloo+Bhai+2&family=Baloo+Bhaina+2&family=Bree+Serif&display=swap" rel="stylesheet">
</code></pre>
<pre class="language-css"><code>font-family: 'Bree Serif', serif;</code></pre>
<pre class="language-css"><code>font-family: 'Baloo Bhai 2', cursive;</code></pre>
<pre class="language-css"><code>font-family: 'Baloo Bhaina 2', cursive;</code></pre>
</div>
<!-- card-7 -->
<div class="card">
<h3>Neon Button CSS</h3>
<p>A fantastic Button Animation </p>
<pre class="language-css"><code>body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #031321;
font-family: consolas;
}
a {
position: relative;
display: inline-block;
padding: 15px 30px;
color: #2196f3;
text-transform: uppercase;
letter-spacing: 4px;
text-decoration: none;
font-size: 24px;
overflow: hidden;
transition: 0.2s;
}
a:hover {
color: #255784;
background: #2196f3;
box-shadow: 0 0 10px #2196f3, 0 0 40px #2196f3, 0 0 80px #2196f3;
transition-delay: 1s;
}
a span {
position: absolute;
display: block;
}
a span:nth-child(1) {
top: 0;
left: -100%;
width: 100%;
height: 2px;
background: linear-gradient(90deg, transparent, #2196f3);
}
a:hover span:nth-child(1) {
left: 100%;
transition: 1s;
}
a span:nth-child(3) {
bottom: 0;
right: -100%;
width: 100%;
height: 2px;
background: linear-gradient(270deg, transparent, #2196f3);
}
a:hover span:nth-child(3) {
right: 100%;
transition: 1s;
transition-delay: 0.5s;
}
a span:nth-child(2) {
top: -100%;
right: 0;
width: 2px;
height: 100%;
background: linear-gradient(180deg, transparent, #2196f3);
}
a:hover span:nth-child(2) {
top: 100%;
transition: 1s;
transition-delay: 0.25s;
}
a span:nth-child(4) {
bottom: -100%;
left: 0;
width: 2px;
height: 100%;
background: linear-gradient(360deg, transparent, #2196f3);
}
a:hover span:nth-child(4) {
bottom: 100%;
transition: 1s;
transition-delay: 0.75s;
}</code></pre>
</div>
<!-- card-8 -->
<div class="card">
<h3>Auto image slider:CSS</h3>
<p>This is Fabulous image slider where images changes automatically...<a href="https://codepen.io/dudleystorey/pen/ehKpi" target="_blank">Click here to check...</a></p>
<pre class="language-css"><code>@keyframes slidy {
0% { left: 0%; }
20% { left: 0%; }
25% { left: -100%; }
45% { left: -100%; }
50% { left: -200%; }
70% { left: -200%; }
75% { left: -300%; }
95% { left: -300%; }
100% { left: -400%; }
}
body { margin: 0; }
div#slider { overflow: hidden; }
div#slider figure img { width: 20%; float: left; }
div#slider figure {
position: relative;
width: 500%;
margin: 0;
left: 0;
text-align: left;
font-size: 0;
animation: 30s slidy infinite;
}</code></pre>
</div>
<!-- card-9 -->
<div class="card">
<h3>CSS Background: Dark theme</h3>
<p>It is a Beautiful background</p>
<pre class="language-css" style="background-image: linear-gradient(to top, #30cfd0 0%, #330867 100%);"><code>.background {
background: rgba(0, 0, 0, 0.7) url(../Images/buildings-1850129_1920.jpg);
background-size: cover;
background-blend-mode: darken;
}</code></pre>
</div>
<!-- card-10 -->
<div class="card">
<h3>Tailwind Navbar</h3>
<p>It is the navbar of Tailwind CSS.</p>
<pre class="language-html"><code><nav
className="navbar sticky top-0 flex justify-between py-4 px-8 bg-cover bg-blend-darken text-white"
style="opacity: 1.8; z-index: 9"
>
<div className="logo py-2 cursor-pointer"><a href="#">Yo!</a></div>
<ul className="flex">
<li id="home" className="py-2 px-4 mx-1 hover:text-[#34ADE5] cursor-pointer"><a href="#">Home</a></li>
<li id="about" className="py-2 px-4 mx-1 hover:text-[#34ADE5] cursor-pointer">
<a href="#">About</a>
</li>
<li className="py-2 px-4 mx-1 hover:text-[#34ADE5] cursor-pointer">
Services
</li>
<li className="py-2 px-4 mx-1 hover:text-[#34ADE5] cursor-pointer">Blog</li>
<li className="py-2 px-4 mx-1 hover:text-[#34ADE5] cursor-pointer">
Contact
</li>
</ul>
</nav></code></pre>
</div>
<!-- card-11 -->
<div class="card">
<h3>Tailwind Grow on hover</h3>
<p>It is class to make grow feature in hover of Tailwind CSS.</p>
<pre class="language-html"><code><div
className="transition ease-in-out delay-150 hover:-translate-y-1 hover:scale-110 duration-300"
>
// Code Here
</div></code></pre>
</div>
</div>
<!-- left column ends here -->
<!-- right column starts here -->
<div class="rightcolumn">
<!-- about starts -->
<div class="card">
<h2 style="margin-left: 125px; text-decoration:underline;"><strong>About Me</strong></h2>
<!-- <img src="./about.jpeg" style="height: 50%; width: 50%;" alt=""> -->
<div class="fakeimgAbout"><img src="./about.jpeg" alt=""></div>
<strong>My Description...</strong>
<p>This is Aritra. I'm a Engineering student, willing to be a successful Web Developer.</p>
</div>
<!-- about ends -->
<!-- Favorite Cheats -->
<div class="card">
<h2>Favourite Cheats</h2>
<h3>Unsplash Source Image by search Term</h3>
<pre class="language-html"><code><img src="https://source.unsplash.com/1600x900/?nature,water" alt=""></code></pre>
</div>
<div class="card" style="margin-top: 0px;">
<!-- <h2>Favourite Cheats</h2> -->
<h3>Ubuntu Font</h3>
<!-- <p>This is a beutiful font.</p> -->
<pre class="language-html"><code><link href="https://fonts.googleapis.com/css2?family=Ubuntu:wght@300&display=swap" rel="stylesheet">
</code></pre>
<pre class="language-css"><code>font-family: 'Ubuntu', sans-serif;</code></pre>
</div>
<div class="card" style="margin-top: 0px;">
<h3>Bree Serif/Baloo Bhai/Baloo Bahena</h3>
<p>This is a beutiful font.</p>
<pre class="language-html"><code><link href="https://fonts.googleapis.com/css2?family=Baloo+Bhai+2&family=Baloo+Bhaina+2&family=Bree+Serif&display=swap" rel="stylesheet">
</code></pre>
<pre class="language-css"><code>font-family: 'Bree Serif', serif;</code></pre>
<pre class="language-css"><code>font-family: 'Baloo Bhai 2', cursive;</code></pre>
<pre class="language-css"><code>font-family: 'Baloo Bhaina 2', cursive;</code></pre>
</div>
<div class="card" style="margin-top: 0px;">
<h3>CSS Color: Morpheus Den</h3>
<p>It is a Beautiful linear-gradient color.</p>
<pre class="language-css" style="background-image: linear-gradient(to top, #30cfd0 0%, #330867 100%);"><code>background-image: linear-gradient(to top, #30cfd0 0%, #330867 100%);</code></pre>
</div>
<!-- Follow me -->
<div class="card">
<h3>Follow me</h3>
<!-- <strong>Social Media:</strong> -->
<a href="https://www.facebook.com/avijeet.karmakar.9" target="_blank" style="text-decoration: none; margin-right:20px;"><i class="fab fa-facebook"></i>facebook</a>
<a href="https://www.instagram.com/avi_k_aritra" target="_blank" style="text-decoration: none; margin-right:20px;"><i class="fab fa-instagram"></i>instagram</a>
<a href="https://twitter.com/AviKarmakar11" target="_blank" style="text-decoration: none; margin-right:20px;"><i class="fab fa-twitter"></i>twitter</a>
</div>
</div>
<!-- right column ends here -->
<!-- main section ends here -->
</div>
</div>
</body>
</html>