~ihabunek/triglav

ref: 248d445efaf6ff9a19f9fc8c8ed4359a87aeb85b triglav/assets/css/app.scss -rw-r--r-- 2.9 KiB
248d445eIvan Habunek Data status page 1 year, 3 months ago
                                                                                
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
@import "reset";

// Palette

$red: FireBrick;
$orange: DarkOrange;
$green: ForestGreen;

html {
  font-family: monospace;
  font-size: 14px;
}

section + section {
  margin-top: 1rem;
}

hr {
  border-top: none;
  border-bottom: 1px solid LightGray;
  margin: 1rem 0;
}

p,
table,
h1, h2, h3, h4, h5 {
  margin-bottom:  1rem;
}

ul {
  margin: 0 0 1rem 0;
  padding: 0 0 0 1.5rem;
}

table {
  border-collapse: collapse;

  th, td {
    padding: 4px 8px;
    margin:  0;
    border-bottom: 1px solid LightGray;
    vertical-align: top;
  }

  th {
    background-color: WhiteSmoke;
    text-align: left;
  }

  tr:hover {
    background-color: WhiteSmoke;
  }
}

summary {
  cursor:  pointer;
}

.topnav {
  background-color: $red;
  color:  white;
  font-weight: bold;

  a {
    color:  white;
  }

  > .container {
    display: flex;
    align-items: baseline;
  }

  .topnav-title {
    font-size: 1.5rem;
  }

  .topnav-links {
    display: flex;
  }

  .topnav-links > a {
    display:  block;
    text-transform: uppercase;
    margin-left: 2rem;
  }
}

.container {
  max-width: 1280px;
  margin:  auto;
  padding: 1rem;
}

.container-wide {
  max-width: 100%;
  padding: 1rem;
}

.callout {
  border: 1px solid gray;
  padding: 1rem;
  margin-bottom: 1rem;
  max-width: 800px;
  background-color: WhiteSmoke;

  p:last-child {
    margin-bottom: 0;
  }

  &.error {
    background-color: rgba($red, 0.3);
  }

  &.warning {
    background-color: rgba($orange, 0.3);
  }

  &.success {
    background-color: rgba($green, 0.2);
  }
}

// Components

span.osm-link {
  white-space: nowrap;
  img {
    display: inline-block;
    height: .8rem;
  }
}

a.josm-remote {
  border: 1px solid black;
  border-radius: 3px;
  color: black;
  display: inline-block;
  padding: 0px 5px;
  text-decoration: none;

  &:hover {
    background-color: WhiteSmoke;
  }

  &.success {
    background-color: rgba($green, 0.3);
  }

  &.error {
    background-color: rgba($red, 0.3);
  }
}

// Utils

.bold { font-weight: bold; }
.no-margin { margin: 0; }
.no-wrap { white-space: nowrap; }
.inline-block { display: inline-block; }
.gray { color: gray; }
.red { color: $red; }
.bg-red { background-color: rgba($red, 0.3); }
.green { color: $green; }
.bg-green { background-color: rbga($green, 0.3); }
.tag { color: DimGray; white-space: nowrap; }
.smaller { font-size: 0.9rem; }
.hidden { visibility: hidden; }
.w-full { width: 100%; }

// Phoenix crap

/* Alerts and form errors */
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
}
.alert-info {
  color: #31708f;
  background-color: #d9edf7;
  border-color: #bce8f1;
}
.alert-warning {
  color: #8a6d3b;
  background-color: #fcf8e3;
  border-color: #faebcc;
}
.alert-danger {
  color: #a94442;
  background-color: #f2dede;
  border-color: #ebccd1;
}
.alert p {
  margin-bottom: 0;
}
.alert:empty {
  display: none;
}
.invalid-feedback {
  color: #a94442;
  display: block;
  margin: -1rem 0 2rem;
}