-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWorking.scss
64 lines (57 loc) · 1.42 KB
/
Working.scss
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
// ? Main Sass File that is directly connected to html file is Working.scss file
// ! Syntax of creating sub sass files is--> _name of sub file.scss
// TODO:: _variable.scss, _header.scss, _section.scss, _footer.scss are all sub part of working.scss in this case.
// * To call sub sass files, we use--> @import "./name of sub file"
@import "./variable";
@import "./header";
@import "./section";
@import "./footer";
// Extend property is not working at this moment, it's Synatax is--> @extend name-of-selector to be continued for working
.container
{
margin: 20px 2%;
.font
{
font-family: Bahianita;
font-size: 2rem;
margin: auto;
}
article
{
font-family: Dancing Script;
line-height: 3;
font-size: 1.5rem;
}
}
// ? Nesting is allowed instead of applying descendent selector
.a
{
.click
{
// ! For applying Pseudo-class, Syntax is --> &: pseudo-class{ --- }
// TODO:: Similarly for pseudo-elements, Syntax is --> &:: pseudo-element{ --- }
&:hover {
background-color: yellow;
}
}
}
.b
{
.click
{
&:hover {
background: rgb(187, 37, 187);
}
}
}
.c
{
.click
{
background: rgb(4, 219, 76);
padding: 2%;
&:hover {
background: lightblue;
}
}
}