This repository has been archived by the owner on May 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
/
route_form.css
119 lines (99 loc) · 2 KB
/
route_form.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
/* TODO use main shared colors */
:root {
--primary: #157DE6;
--background-light: #F3F4F8;
--breathing-room: 1em;
--warning: #F16031;
}
/* TODO make global */
.route-form input:focus,
.route-form select:focus {
box-shadow: none;
outline: 2px solid var(--primary);
}
/* TODO is this needed? */
.route-form-preview {
color: var(--warning);
}
/* TODO move to global */
.route-form label {
color: var(--primary);
}
/* TODO move to panel code somehwere */
.route-form {
background-color: var(--background-light);
padding: var(--breathing-room);
width: 100%;
}
.route-fields {
display: flex;
justify-content: space-between;
}
.route-fields > div {
flex-grow: 1;
margin-left: calc(var(--breathing-room) * 2);
}
.route-fields > div:first-of-type {
margin-left: 0;
}
.route-field-host,
.route-field-domain {
position: relative;
}
.route-field-host:after {
content: '.';
font-size: 4.1rem;
position: absolute;
right: -1.4rem;
top: -0.3rem;
}
.route-field-domain:after {
content: '/';
font-size: 2.1rem;
position: absolute;
right: -1.4rem;
top: 1.8rem;
}
.route-form-actions {
align-items: flex-end;
display: flex;
justify-content: flex-end;
width: 100%;
}
/* TODO probalby remove not using panel action? */
.route-form-actions .panel-action {
flex-grow: 1;
}
.route-form-actions .panel-action a {
width: 100%;
}
.route-form-actions div {
display: flex;
flex-grow: 1;
justify-content: space-around;
text-align: center;
}
.route-form-actions div .panel-action {
display: inline-block;
}
.route-form-actions div .panel-action + .panel-action {
margin-left: 1em;
}
.route-form input[readonly],
.route-form input[readonly]:focus {
background-color: transparent;
border: none;
font-family: monospace;
font-size: 1.3rem;
font-weight: 100;
margin-bottom: 1rem;
outline-color: transparent;
}
.route-form .error_message {
padding-left: .75rem;
}
/* TODO move to global */
.route-form *[disabled] {
background-color: #aeb0b5;
cursor: not-allowed;
}