-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
118 lines (97 loc) · 1.89 KB
/
styles.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
:root {
--line-color: brown;
--line-width: 0.25rem;
--circle-diameter: 6rem;
--end-length: 2rem;
}
/* represents any container the component is inserted into */
#mycontainer {
position: relative;
margin: auto;
}
/**
* The container for actual product component
*
* Controls the overall size of the component
*/
.component {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
width: 100%;
position: relative;
}
#tomato {
top: 45%;
}
#relish {
top: 60%;
}
#pickle {}
#onion {}
#bun {}
#peppers {}
#salt {}
.image-container {
}
.selectors {
left: 0;
}
.selector {
position: absolute;
display: flex;
left: 0;
width: 50%;
align-items: center;
justify-content: flex-start;
}
.content {
position: relative;
float: left;
}
.line-container {
cursor: pointer;
display: flex;
justify-content: flex-start;
width: 100%;
}
.line {
flex-grow: 1;
height: var(--line-width);
background: var(--line-color);
position: relative;
left: calc(var(--circle-diameter) * -1);
margin-left: 6rem;
}
.line > .circle {
/* circle */
position: absolute;
background: transparent;
content: "";
bottom: calc(var(--circle-diameter) / -2);
right: calc(var(--circle-diameter) * -1);
border: var(--line-width) solid var(--line-color);
border-radius: 100%;
width: var(--circle-diameter);
height: var(--circle-diameter);
}
.line > .ending {
/* end */
position: absolute;
content: "";
border-left: calc(var(--line-width) / 2) solid var(--line-color);
height: var(--end-length);
width: var(--end-length);
bottom: calc(var(--end-length) / -2);
}
.line.collapsed {
display: none
}
.line.collapsed > .ending {
display: none;
}
.line.collapsed > .circle {
background: var(--line-color);
opacity: .5;
display: block;