-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNotes.txt
86 lines (65 loc) · 1.73 KB
/
Notes.txt
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
/* .test {
background-color: red;
padding: 100px;
width: 1000px;
If the container width is larger than the max width of the element, then it will be the specified width. But if container width is smaller, the element will be 100% of the container's width.
max-width: 50rem;
color: #fff;
padding: 4rem;
font-size: 2rem;
} */
.margin-right-sm {
margin-right: 1.6rem !important;
/* add !important to small helper classes like this one*/
}
<!-- Use main element on the main content of the page - unique content, not repeated on multiple pages -->
/* Trick to add border inside */
box-shadow: inset 0 0 0 3px #fff;
/* Put transition on original "State" */
transition: all 0.3s;
/* Define a height, rather than padding for sticky navs */
padding options:
top / right / bottom / left
top / horizontal / left
*************************
ADDING BACKGROUND CIRCLES W/ PSEUDO-CLASSES AND ABSOLUTE POSITIONING IN CSS
.step-image-box::before,
.step-image-box::after {
content: "";
display: block;
border-radius: 50%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.step-image-box::before {
background-color: #fdf2e9;
width: 60%;
/* height: 60%; */
/* 60% of parents width, intrinsic height is technically 0 */
padding-bottom: 60%;
z-index: -2;
/* z-index to push circle to the back */
}
.step-image-box::after {
background-color: #fae5d3;
width: 45%;
padding-bottom: 45%;
z-index: -1;
}
position: relative; added to image box.
*************************
ZOOM IN IMAGE GALLERY TRICK
.gallery-item {
overflow: hidden;
}
.gallery-item img {
display: block;
width: 100%;
transition: all 0.4s;
}
.gallery-item img:hover {
transform: scale(1.1);
}
*************************