-
Notifications
You must be signed in to change notification settings - Fork 0
/
rwt-shadowbox.css
130 lines (112 loc) · 2.96 KB
/
rwt-shadowbox.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
119
120
121
122
123
124
125
126
127
128
129
130
/*=============================================================================
File: /node_modules/rwt-shadowbox/rwt-shadowbox.css
Language: CSS
Copyright: Read Write Tools © 2019
License: MIT
Initial date: Dec 4, 2019
Contents: Popup box with titlebar and slotted contents
=============================================================================*/
:host {
--pure-black: #000;
--nav-black: #111;
--light-black: #171717;
--medium-black: #222;
--black: #333;
--dark-gray: #555;
--gray: #777;
--white: #ccc;
--pure-white: #fff;
--js-blue: #76afe8;
--title-blue: #42affa;
--yellow: #ffffa4;
--red: #ff3d3d;
/* custom element decorations */
--color: var(--white);
--accent-color1: var(--yellow);
--accent-color2: var(--js-blue);
--background: var(--black);
--accent-background1: var(--medium-black);
--accent-background2: var(--pure-black);
--accent-background3: var(--nav-black);
--accent-background4: var(--black);
/* custom element variables */
--min-width: 10rem;
--optimal-width: 70vw;
--max-width: 40rem;
--min-height: 10rem;
--optimal-height: 50vh;
--max-height: 40rem;
--bottom: 1rem;
--left: 1rem;
--z-index: 1;
/* calculated sizing */
--caption-bar-height: 1.5rem;
}
#shadowbox-dialog {
position: fixed;
bottom: var(--bottom);
left: var(--left);
min-width: var(--min-width);
width: var(--optimal-width);
max-width: var(--max-width);
min-height: var(--min-height);
height: var(--optimal-height);
max-height: var(--max-height);
color: var(--color);
background-color: var(--background);
border-width: 1px;
border-style: solid;
border-color: var(--gray) var(--accent-background2) var(--accent-background2) var(--gray);
box-shadow: -2px -2px 2px var(--accent-background2), 5px 5px 8px var(--accent-background2);
z-index: var(--z-index);
cursor: default;
}
#shadowbox-dialog * {
font-family: 'Source Sans Pro', sans-serif;
box-sizing: border-box;
}
/* ---------- dialog parts ---------- */
#caption-bar {
display: flex;
background-color: var(--accent-background1);
width: 100%;
height: var(--caption-bar-height);
border-bottom: 1px solid var(--accent-background2);
}
#caption {
font-family: 'Source Sans Pro', sans-serif;
font-size: 0.9rem;
font-weight: bold;
letter-spacing: 1px;
text-align: center;
margin: 0;
line-height: 1.6;
color: var(--color);
width: calc(100% - var(--caption-bar-height));
}
#close-button {
font-family: 'Source Sans Pro', sans-serif;
font-size: 0.9rem;
text-align: center;
display: inline-block;
padding: 0rem 0.5rem;
color: var(--color);
background-color: var(--accent-background2);
border-style: solid;
border-width: 1px;
border-color: var(--accent-background1);
}
#close-button:hover,
#close-button:visited:hover {
color: var(--pure-white);
background-color: var(--red);
border: 1px solid var(--accent-background2);
}
#outer-margin {
position: absolute;
top: var(--caption-bar-height);
bottom: 0;
left: 0;
width: 100%;
overflow: auto;
}