-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathcomponents.css
More file actions
76 lines (65 loc) · 1.89 KB
/
components.css
File metadata and controls
76 lines (65 loc) · 1.89 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
:root {
--modalWidth: 70vw;
--modalHeight: 70vh;
--light-modal-background: rgba(240,240,240,0.7);
--dark-modal-background: rgba(0,0,0,0.7);
}
html {
--modal-background: var(--light-modal-background);
}
html.dark {
--modal-background: var(--dark-modal-background);
}
.modal-overlay {
transition-property: opacity;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 150ms;
width: 100vw;
height: 100vh;
position: fixed;
top: 0;
left: 0;
background-color: var(--modal-background);
align-items: center;
justify-content: center;
display: none;
z-index: 1010;
}
.modal-content {
width: var(--modalWidth);
height: var(--modalHeight);
margin: 0;
padding: 1rem;
border-radius: 0.5rem;
border: 2px solid var(--primary-color);
box-shadow: 0 10px 15px -3px rgba(0,0,0,.2),0 4px 6px -4px rgba(0,0,0,.2);
background-color: var(--bg-color);
position: relative;
}
.modal-confirm {
width: auto;
height: auto;
padding: 2rem;
}
.modal-close {
color: var(--text-color);
position: absolute;
top: .75rem;
right: 1rem;
cursor: pointer;
}
.show-modal {
display: flex;
}
/* standard button CSS */
/* a primary solid button should only be seen once on a page for a promary action to be made on that page. */
.primary-button-solid {
@apply py-3 px-8 text-sm text-base font-medium text-white uppercase rounded-lg border md:py-1 md:px-4 md:text-lg bg-orange hover:bg-orange/80 border-orange dark:text-slate dark:hover:text-charcoal hover:drop-shadow-md
}
/* standard button CSS */
.primary-button-outline {
@apply py-3 px-8 text-sm text-base font-medium text-white capitalize rounded-lg border md:py-1 md:px-4 md:text-lg text-orange border-orange dark:bg-slate dark:hover:bg-charcoal dark:text-white hover:drop-shadow-md
}
.v3-background{
background-color: var(--color-bg-primary);
}