-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSegmentControl.css
More file actions
78 lines (67 loc) · 1.22 KB
/
Copy pathSegmentControl.css
File metadata and controls
78 lines (67 loc) · 1.22 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
.segments {
display: flex;
justify-content: center;
margin: 2% 10%;
padding-top: 2%;
}
.control-container {
background-color: rgb(172, 222, 236);
display: flex;
flex-wrap: wrap;
justify-content: center;
border-radius: 4px;
padding: 4px;
gap: 4px;
box-shadow: inset 0 0px 8px 0 rgba(0, 0, 0, 0.12),
0 0 1px 0 rgba(0, 0, 0, 0.04);
}
.control-item {
min-width: 44px;
border-radius: 4px;
cursor: pointer;
padding: 4px 8px;
position: relative;
text-decoration: none;
}
@media (min-width: 769px) {
.control-item {
min-width: 60px;
}
}
.control-item-bg {
background-color: #0c5cc4;
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
border-radius: 4px;
box-shadow: 0 0px 8px 0 rgba(0, 0, 0, 0.12), 0 0px 1px 0 rgba(0, 0, 0, 0.04);
}
.control-item-text {
position: relative;
z-index: 1;
text-transform: capitalize;
font-size: x-large;
font-weight: 500;
color: black;
}
.control-item-text.selected-text {
color: white;
}
@media (max-width: 768px) {
.segments {
margin: 2% 5%;
}
.control-item {
min-width: auto;
flex: 1;
}
}
.control-item-link {
color: #333;
text-decoration: none;
}
.control-item-link.selected-link {
color: white;
}