-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlist-style.html
137 lines (119 loc) · 2.09 KB
/
list-style.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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href=
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
body{
background:#D1D9E6;
}
.list {
width: 350px;
background:white;
box-shadow:2px 2px 2px 2px black ;
position:absolute;
top:50%;
left:50%;
transform: translate(-50%,-50%);
}
.head h1 {
padding: 5px 20px;
margin: 15px;
margin-bottom:1px;
color:#black;
font-weight: 1000;
font-size: 20px;
font-family: Arial, Helvetica, sans-serif;
}
.head{
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
}
ul{
padding-left:10px;
margin-right:5px;
width:80%;
}
ul li {
padding: 10px;
margin-left:15px;
display: grid;
grid-template-columns: 8fr 1fr;
font-size: 14px;
cursor: pointer;
font-family: 'Shadows Into Light', cursive;
position:relative;
transition:0.25s;
left:0px;
}
/*ul li:hover {
border-radius: 15px;
background:blue;
color:white;
}*/
ul li i {
font-size: 20px;
font-weight: bold;
}
.head hr {
width: 20%;
margin-left:32px;
border: 1px solid #0B5AA2;
}
ul li:before{
opacity:0.05;
position:absolute;
left:-20px;
top:50%;
transform: translateY(-50%);
transition:0.25s;
font-size:30px;
font-weight:bolder;
}
ul li:nth-child(1):before{
content:'1';
}
ul li:nth-child(2):before{
content:'2';
}ul li:nth-child(3):before{
content:'3';
}ul li:nth-child(4):before{
content:'4';
}
ul li:hover{
background-color: #fafafa;
left:30px;
font-weight: bolder;
}
ul li:hover:before{
color:#000;
opacity:0.3;
}
</style>
</head>
<body>
<div class="list">
<div class="head">
<h1>LIST STYLE</h1>
<hr>
</div>
<ul>
<li >
<span>HyperText Markup Language</span>
<i class="fa fa-angle-right"></i>
</li>
<li >
<span>Cascading StyleSheet</span>
<i class="fa fa-angle-right"></i>
</li>
<li >
<span>JavaSript</span>
<i class="fa fa-angle-right"></i>
</li>
<li >
<span>Jquery</span>
<i class="fa fa-angle-right"></i>
</li>
</ul>
</div>
</body>
</html>