-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
128 lines (103 loc) · 2.34 KB
/
style.css
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
/* used for declaring the global css variable */
:root {
--color-primary: #46d7ac;
--color-divider: #81ceb6;
--row-even: #ebf2d3;
--row-odd: #fffdff;
font-size: 16px;
}
/* it changes font size when width is exced to 576px */
@media only screen and (max-width: 576px) {
:root {
font-size: 14px;
}
}
/* before and after executing of program this will run */
*,
*::after,
*::before {
margin: 0;
padding: 0;
}
html {
scroll-behavior: smooth;
}
body {
opacity: 0;
animation: fadeIn 2s;
height: 80vh;
}
/* it defines the gap between two lines */
h1,
h2,
h3 {
line-height: 1.1;
}
/* 1rem = 16px; margin all side around main container which contains form*/
main {
margin: 4.4rem auto;
}
.heading {
background-color: var(--color-primary);
min-height: 10vh;
padding: 1rem;
}
.separator {
width: 1px;
height: 70vh;
background-color: var(--color-divider);
}
.divider {
background-color: var(--color-divider);
width: 100%;
height: 2px;
}
.enrolled-section {
max-height: 33rem;
overflow-y: auto;
}
/* it provide alternate white and cream color for multiple row in student enrolled section */
.table-striped > tbody > tr:nth-child(even) > td {
background-color: var(--row-even);
}
.table-striped > tbody > tr:nth-child(odd) > td {
background-color: var(--row-odd);
}
.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > td {
border: 2px solid #a0be44;
}
thead {
background-color: #a7c93f;
}
thead > tr > th,
td {
padding: 0.25rem 0.5rem !important;
}
/* it helps to add the new row in table with animation */
#table-data > tr {
animation-name: fadeIn;
animation-duration: 1s;
}
/* @keyframes rule specifies the animation code. */
@keyframes fadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
#table-data > tr > td:nth-child(even) {
width: 8.25rem !important;
}
img {
width: 110px;
min-height: 120px;
}
footer {
position: relative;
background-color: var(--color-primary);
padding: 0.5rem 1rem;
bottom: 0;
}