-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomponent.css
More file actions
77 lines (71 loc) · 1.31 KB
/
component.css
File metadata and controls
77 lines (71 loc) · 1.31 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
:host > .overlay{
position: absolute;
top:0;
left: 0;
width: 100vw;
height: 100vh;
background-color: black;
opacity: .5;
z-index: 2;
display: none;
}
:host([opened]) > .overlay{
display:block;
}
h1{
font-size: 2em;
}
h2{
font-weight: normal;
font-size: 1.2em;
padding-bottom: 10px;
}
:host .escape {
transform: rotate(45deg);
position: absolute;
font-size: 1.4em;
cursor: pointer;
top:5px;
right: 10px;
}
:host .accept, :host .cancel {
width: 40%;
text-align: center;
display: block;
background-color: #468847;
font-size: 1.4em;
cursor: pointer;
float: left;
padding: 3px;
box-shadow: 0 4px 14px rgba(0,0,0,0.15), 0 5px 5px rgba(0,0,0,0.12);
transition-duration: .3s;
transition-timing-function: linear;
color: rgba(256,256,256,0.8);
}
:host .cancel{
float: right;
background-color: #b94a48;
}
:host > .menu {
display: none;
background-color: white;
padding: 0px 30px 20px;
position: absolute;
top: 20vh;
z-index: 3;
}
:host([opened]) > .menu {
display: block;
}
@media screen and (min-width: 801px) {
.menu {
width: 350px;
left: calc(50% - 175px);
}
}
@media screen and (max-width: 800px) {
.menu{
width:80%;
left:5%;
}
}