-
Notifications
You must be signed in to change notification settings - Fork 1
/
student-list.css
126 lines (122 loc) · 2.24 KB
/
student-list.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
:root {
--ui-color1:rgb(201, 89, 14);
--ui-color:rgb(24, 120, 255);
--blue:rgb(30, 144, 255)
}
*{
margin: 0;
padding: 0;
font-family:'Be Vietnam Pro', sans-serif
}
@keyframes fade {
0%{
opacity: 0;
}
100%{
opacity: 1;
}
}
body{
background-color: white ;
animation: fade 1s;
}
#main-container{
background-color: white;
width: 100%;
display: flex;
justify-content: center;
}
.student-container{
position: absolute;
top: 15%;
width: 90%;
height: auto;
}
.student-container h1{
text-align: center;
color: var(--ui-color);
margin-bottom: 1%;
}
.add-btn-container{
text-align: end;
margin-right: 2.9%;
}
.add-btn{
padding:1%;
background-color:#18ac31;
border: none;
border-radius: 5px;
color: #ffffff;
font-size: 1rem;
cursor: pointer;
}
.add-btn:hover{
background-color:#14a02b;
}
.add-btn:active{
background-color:#117b22;
}
.student-grid-container{
height: auto;
display: flex;
flex-wrap:wrap;
}
.student-info{
display: grid;
background-color: rgb(253, 253, 253);
height: 200px;
width: 175px;
overflow: hidden;
margin: 1% 1.85%;
text-align: center;
box-shadow: 0px 0px 10px rgb(171, 169, 169);
transition: .5s;
}
.student-img{
width: 175px;
height: 181px;
object-fit:cover;
transition: .5s;
}
.student-info p{
font-weight: b;
}
.student-info a{
background-color:#18ac31;
text-decoration: none;
color: #ffffff;
}
.student-info:hover{
scale: 1.2;
box-shadow: 0px 0px 20px rgb(141, 138, 138);
}
.add-student{
display: flex;
justify-content: center;
align-items: center;
height: 100%;
}
.delete-icon{
background-color: #ffffff;
display: flex;
justify-content: end;
font-size: 15px;
background-color: transparent;
}
.delete-icon i{
color:black;
margin: 7px;
position: absolute;
}
.delete-icon i:hover{
color: red;
}
.student-name{
position: relative;
top: -8px;
font-weight: bold;
background-color: rgb(239, 237, 237);
height: 30px;
padding-top: 3px;
font-weight:normal;
}