Skip to content

Commit 4bb9c93

Browse files
committed
2 parents 3482bef + 634fda0 commit 4bb9c93

File tree

2 files changed

+263
-60
lines changed

2 files changed

+263
-60
lines changed

examples/questionnaire/branding.css

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
/*
2-
Copyright (c) 2020 - present, DITDOT Ltd. - MIT Licence
3-
https://www.ditdot.hr/en
4-
*/
5-
61
/*
72
basic theme color and font styles
83
*/
@@ -180,61 +175,6 @@ p.description,
180175
color: var(--secondary-text-color);
181176
}
182177

183-
/*
184-
vue.js like theme with green background
185-
*/
186-
187-
/*
188-
189-
:root {
190-
--bg-color: #41B883;
191-
--main-text-color: #fff;
192-
--secondary-text-color: #CFEDE0;
193-
--tertiary-text-color: #67C69C;
194-
--main-accent-color: #111;
195-
}
196-
197-
header{
198-
background-color: transparent;
199-
}
200-
201-
.f-footer .footer-inner-wrap{
202-
background-color: transparent;
203-
}
204-
205-
header svg.logo{
206-
fill: var(--main-accent-color);
207-
}
208-
209-
.v-form textarea,
210-
.v-form input,
211-
.v-form select option{
212-
color: var(--main-accent-color);;
213-
}
214-
215-
ul.f-radios li.f-selected, ul.f-radios li:active {
216-
border-color: var(--main-text-color);
217-
background-color: var(--tertiary-text-color);
218-
}
219-
220-
.text-alert,
221-
.f-invalid{
222-
color: red
223-
}
224-
225-
p.text-success{
226-
color: yellow;
227-
}
228-
229-
.f-progress-bar-inner {
230-
background-color: var(--main-accent-color);
231-
}
232-
.f-progress {
233-
opacity: 0.7;
234-
}
235-
*/
236-
237-
238178
/*
239179
dark mode styles
240180
*/
Lines changed: 263 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,263 @@
1+
/*
2+
Copyright (c) 2020 - present, DITDOT Ltd. - MIT Licence
3+
https://www.ditdot.hr/en
4+
*/
5+
6+
/*
7+
simple vue.js like theme with green background
8+
*/
9+
10+
:root {
11+
--bg-color: #41B883;
12+
--main-text-color: #fff;
13+
--secondary-text-color: #B2E2CD;
14+
--tertiary-text-color: #67C69C;
15+
--main-accent-color: #111;
16+
--secondary-accent-color: #BBEBD5;
17+
}
18+
19+
body,
20+
textarea,
21+
input,
22+
select,
23+
select option {
24+
font-family: 'Poppins', sans-serif;
25+
}
26+
27+
body {
28+
background-color: var(--bg-color);
29+
color: var(--main-text-color);
30+
}
31+
32+
/*header*/
33+
header {
34+
background-color: transparent;
35+
}
36+
37+
header svg.logo {
38+
fill: var(--main-accent-color);
39+
}
40+
41+
/* footer */
42+
.f-footer .footer-inner-wrap {
43+
background-color: transparent;
44+
}
45+
46+
.v-form textarea,
47+
.v-form input,
48+
.v-form select option {
49+
color: var(--main-accent-color);
50+
}
51+
52+
.v-form input[type=text],
53+
.v-form input[type=number],
54+
.v-form input[type=tel],
55+
.v-form input[type=email],
56+
.v-form input[type=url],
57+
.v-form textarea,
58+
.v-form span.faux-form {
59+
border-bottom-color: var(--secondary-text-color);
60+
}
61+
62+
a,
63+
a:active {
64+
color: var(--main-text-color);
65+
}
66+
67+
/*placeholder*/
68+
::-webkit-input-placeholder { /* Chrome/Opera/Safari */
69+
color: var(--secondary-text-color);
70+
opacity: 1;
71+
font-weight: 300;
72+
}
73+
74+
::-moz-placeholder { /* Firefox 19+ */
75+
color: var(--secondary-text-color);
76+
opacity: 1;
77+
font-weight: 300;
78+
}
79+
80+
:-ms-input-placeholder { /* IE 10+ */
81+
color: var(--secondary-text-color)!important;
82+
opacity: 1!important;
83+
font-weight: 300!important;
84+
}
85+
86+
:-moz-placeholder { /* Firefox 18- */
87+
color: #999;
88+
opacity: 1;
89+
font-weight: 300;
90+
}
91+
92+
/*field-multiplechoicetype*/
93+
ul.f-radios li {
94+
border: 1px solid var(--secondary-text-color);
95+
}
96+
97+
ul.f-radios li.f-other.f-selected input {
98+
color: inherit;
99+
}
100+
101+
ul.f-radios li.f-selected, ul.f-radios li:active {
102+
border-color: var(--main-text-color);
103+
background-color: var(--tertiary-text-color);
104+
}
105+
106+
.f-key{
107+
color: var(--secondary-text-color);
108+
}
109+
110+
/*field-dropdowntype*/
111+
span.f-empty {
112+
color: var(--secondary-text-color);
113+
}
114+
115+
span.f-answered{
116+
color: var(--main-text-color);
117+
}
118+
119+
.f-arrow-down svg {
120+
fill: var(--main-text-color);
121+
}
122+
123+
/*buttons*/
124+
.o-btn-action {
125+
color: var(--bg-color);
126+
background-color: var(--main-text-color);
127+
}
128+
129+
.o-btn-action:hover,
130+
.o-btn-action:focus {
131+
background-color: var(--main-text-color);
132+
opacity: .9;
133+
}
134+
135+
/* progress bar */
136+
.f-footer .f-prev svg,
137+
.f-footer .f-next svg {
138+
fill: var(--main-text-color);
139+
}
140+
141+
.f-progress {
142+
color: var(--secondary-text-color);
143+
}
144+
145+
.f-progress-bar {
146+
background-color: var(--secondary-text-color);
147+
}
148+
149+
.f-progress-bar-inner {
150+
background-color: var(--main-text-color);
151+
}
152+
153+
.f-prev:hover,
154+
.f-next:hover{
155+
background-color: rgba(0,0,0,0.07);
156+
}
157+
158+
/*text-muted*/
159+
span.f-title,
160+
span.f-sub,
161+
p.description,
162+
.text-muted {
163+
color: var(--secondary-text-color);
164+
}
165+
166+
.text-alert,
167+
.f-invalid {
168+
color: red
169+
}
170+
171+
p.text-success {
172+
color: yellow;
173+
}
174+
175+
/*
176+
dark mode styles
177+
*/
178+
179+
@media (prefers-color-scheme: dark) {
180+
:root {
181+
--bg-color: #313640;
182+
--main-text-color: #fff;
183+
--secondary-text-color: #AEB6BF;
184+
--tertiary-text-color: #41464F;
185+
--main-accent-color: #41B883;
186+
--secondary-accent-color: #A0DBC1;
187+
}
188+
189+
header{
190+
background-color: transparent;
191+
}
192+
193+
header svg.logo{
194+
fill: var(--main-accent-color);
195+
}
196+
197+
.v-form textarea,
198+
.v-form input,
199+
.v-form select option {
200+
color: var(--main-accent-color);
201+
}
202+
203+
span.f-answered{
204+
color: var(--main-accent-color);
205+
}
206+
207+
.f-arrow-down svg {
208+
fill: var(--main-accent-color);
209+
}
210+
211+
.text-success{
212+
color: var(--main-accent-color);
213+
}
214+
215+
/*footer*/
216+
.f-footer .footer-inner-wrap{
217+
background-color: var(--bg-color);
218+
}
219+
220+
.f-footer .f-prev svg,
221+
.f-footer .f-next svg {
222+
fill: var(--main-accent-color);
223+
}
224+
225+
.f-footer .f-prev.f-disabled svg,
226+
.f-footer .f-next.f-disabled svg {
227+
fill: var(--main-text-color);
228+
}
229+
230+
.f-footer .footer-inner-wrap{
231+
background-color: var(--bg-color);
232+
}
233+
234+
.f-prev:hover,
235+
.f-next:hover{
236+
background-color: rgba(0,0,0,0.2);
237+
}
238+
239+
.f-progress-bar {
240+
background-color: var(--secondary-text-color);
241+
filter: brightness(1);
242+
}
243+
244+
.f-progress-bar-inner {
245+
background-color: var(--main-accent-color);
246+
}
247+
248+
/*field-multiplechoicetype*/
249+
ul.f-radios li.f-selected{
250+
color: var(--main-accent-color);
251+
}
252+
253+
ul.f-radios li{
254+
font-weight: 900;
255+
color: var(--secondary-text-color);
256+
}
257+
258+
.f-key{
259+
font-weight: 400;
260+
color: var(--main-accent-color);
261+
}
262+
263+
}

0 commit comments

Comments
 (0)