-
Notifications
You must be signed in to change notification settings - Fork 1
/
ddd-studio-styles.css
214 lines (170 loc) · 4.52 KB
/
ddd-studio-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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
/*
* @license
* ddd / module-connexion
* Copyright (c) 2022 Abraham Ukachi
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE
*
* @name: DDD Studio
* @type: Stylesheets
* @author: Abraham Ukachi <abraham.ukachi@laplateforme.io>
*/
/* Importing some VIP styles */
@import '../theme/color.css'; /* <- color from theme */
/* Importing some animations */
@import '../animations/slide-from-up-animation.css';
@import '../animations/slide-from-down-animation.css';
/* ==== DDD Studio STYLES === */
/* ROOT / HTML */
:root {
/* --slide-animation-timing-function: cubic-bezier(0.56, 0.62, 0.52, 1.37); */
}
/* Default Theme */
.theme {}
/* Dark Theme */
.theme.dark {}
/* App Bar */
#appBar {
--app-bar-color-background: var(--primary-container-color);
--app-bar-color-on-background: var(--on-primary-container-color);
}
/* Content */
#content {
/* <- HACK: hides top border line */
/* top: -1px; */
}
/* Container of Content */
#content > .container {
padding: 0;
height: 100%;
}
/* Preview Wrapper */
.preview-wrapper {
background: var(--primary-container-color);
flex: 3;
}
/* Buttons Wrapper */
.buttons-wrapper {
flex: 1;
padding: 10%;
}
/* Start Button Wrapper */
.start-button-wrapper {
margin-bottom: -50px;
}
/* Label in Start Button Wrapper */
.start-button-wrapper span.label {
font-size: 14px;
font-weight: bold;
opacity: var(--opacity-text-active);
}
/* Wave - SVG */
svg#wave {
pointer-events: none;
fill: var(--wave-color, var(--background-color));
transform: scale(1.02); /* HACK: Removes annoying bottom border line */
}
/* Make From Pic Button */
#makeFromPicButton {
position: relative;
font-size: 20px;
padding: 8px 16px;
margin: 0;
width: 100%;
max-width: 300px;
border-radius: 50px;
font-weight: bold;
}
/* Icon of Make From Pic Button */
#makeFromPicButton .icon {
margin: 0 8px;
}
/* HACK: Should be in styles.css */
#makeFromPicButton:hover {
--material-icon-color: var(--primary-color);
}
/* === Preview Styles === */
/* Preview */
#preview {
width: 100%;
height: auto;
flex: 1;
}
/* === End of Preview Styles === */
/* Start Button */
button#startButton {
--button-width: 80px;
--button-height: 80px;
--button-padding: 8px;
--button-background-color: var(--background-color);
--material-icon-color: var(--primary-color);
--material-icon-size: 32px;
border-radius: 50%;
margin: 8px;
}
/* Hovered Start Button */
button#startButton:hover {
--material-icon-color: var(--on-primary-color);
}
/* Focused Start Button */
button#startButton:focus-visible {
--material-icon-color: var(--on-tertiary-color);
}
/*
* --> Wide - Layout <--
* Phone: ? (Responsive)
* Dimension: 460px+ (width)
*
* ***************************************
* when the viewport is bigger than 460px,
* layout changes to wide-layout.
* ***************************************
*/
@media (min-width: 460px) {
/* Make From Pic Button */
#makeFromPicButton {
padding: 12px 24px;
}
/* Icon of Make From Pic Button */
#makeFromPicButton .icon {
margin: 0 12px;
}
/* Label in Start Button Wrapper */
.start-button-wrapper span.label {
font-size: 16px;
}
}
/*
* --> Tablet - Device <--
* Phone: ? (Responsive)
* Width: 768px <-to-> 1024px
*/
@media (min-width: 768px) and (max-width: 1024px) {}
/*
* --> Laptop - Device <--
* Phone: ? (Responsive)
* Width: 1024px <-to-> 2560px
*/
@media (min-width: 1024px) and (max-width: 2560px) {
/* Start Button Wrapper */
.start-button-wrapper {
margin-bottom: -80px;
}
}
/* ==== END of DDD Studio STYLES === */