-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtablestyle.css
More file actions
102 lines (86 loc) · 2.04 KB
/
Copy pathtablestyle.css
File metadata and controls
102 lines (86 loc) · 2.04 KB
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
body{
margin:0;
padding:20px;
font-family: sans-serif;
}
* , *:before, *:after{
box-sizing:border-box;
-moz-box-sizing:border-box;
-webkit-box-sizing:border-box;
-ms-box-sizing:border-box;
}
.table{
width: 100%;
border-collapse: collapse;
}
.table td,.table th{
padding:12px 15px;
border:1px solid #ddd;
text-align: center;
font-size:16px;
}
.table th{
background-color: darkblue;
color:#ffffff;
}
.table tbody tr:nth-child(even){
background-color: #f5f5f5;
}
/*responsive*/
@media(max-width: 615px){
.table thead{
display: none;
}
.table, .table tbody, .table tr, .table td{
display: block;
width: 100%;
word-wrap: break-word;
}
.table tr{
margin-bottom:15px;
}
.table td{
text-align: right;
padding-left: 50%;
text-align: right;
position: relative;
}
.table td::before{
content: attr(data-label);
position: absolute;
left:0;
width: 50%;
padding-left:15px;
font-size:15px;
font-weight: bold;
text-align: left;
}
}
.btn {
background: #3498db;
background-image: -webkit-linear-gradient(top, #3498db, #2980b9);
background-image: -moz-linear-gradient(top, #3498db, #2980b9);
background-image: -ms-linear-gradient(top, #3498db, #2980b9);
background-image: -o-linear-gradient(top, #3498db, #2980b9);
background-image: linear-gradient(to bottom, #3498db, #2980b9);
-webkit-border-radius: 28;
-moz-border-radius: 28;
border-radius: 28px;
font-family: Arial;
color: #ffffff;
font-size: 20px;
padding: 10px 20px 10px 20px;
text-decoration: none;
}
.btn:hover {
background: #3cb0fd;
background-image: -webkit-linear-gradient(top, #3cb0fd, #3498db);
background-image: -moz-linear-gradient(top, #3cb0fd, #3498db);
background-image: -ms-linear-gradient(top, #3cb0fd, #3498db);
background-image: -o-linear-gradient(top, #3cb0fd, #3498db);
background-image: linear-gradient(to bottom, #3cb0fd, #3498db);
text-decoration: none;
}
.holder{
position: relative;
}