Project

General

Profile

Download (11.6 KB) Statistics
| Branch: | Tag: | Revision:
1
// Global variable overrides. Must be declared before importing Valo.
2

    
3
// Defines the plaintext font size, weight and family. Font size affects general component sizing.
4
//$v-font-size: 16px;
5
//$v-font-weight: 300;
6
$v-font-family: "Open Sans", sans-serif;
7

    
8
// Defines the border used by all components.
9
//$v-border: 1px solid (v-shade 0.7);
10
//$v-border-radius: 4px;
11

    
12
// Affects the color of some component elements, e.g Button, Panel title, etc
13
//$v-background-color: hsl(210, 0%, 98%);
14
// Affects the color of content areas, e.g  Panel and Window content, TextField input etc
15
//$v-app-background-color: $v-background-color;
16

    
17
// Affects the visual appearance of all component
18
//$v-gradient: v-linear 8%;
19
//$v-bevel-depth: 30%;
20
//$v-shadow-opacity: 5%;
21

    
22
// Defines colors for indicating status (focus, success, failure)
23
//$v-focus-color: valo-focus-color(); // Calculates a suitable color automatically
24
//$v-friendly-color: #2c9720;
25
//$v-error-indicator-color: #ed473b;
26

    
27
// ================== DARK ================ //
28

    
29
$v-app-loading-text: "Dark Valo";
30
$v-background-color: #444d50;
31
$v-focus-color: #07a9ca;
32
$v-focus-style: 0 0 3px 2px $v-focus-color;
33
$v-bevel-depth: 40%;
34
$v-gradient: v-linear 12%;
35
$v-border-radius: 10px;
36
$v-font-family: Roboto, sans-serif;
37
$v-font-weight: 400;
38
$v-font-weight--header: 400;
39
$v-bevel: inset 0 1px 2px v-tint, inset 0 0 1px (v-tint 0.1);
40
$v-shadow: 0 0 0 3px rgba(0,0,0,0.32), 0 1px 0 3px rgba(255,255,255,0.14);
41
$v-textfield-bevel: inset 0 2px 2px v-shade;
42
$v-textfield-shadow: $v-shadow;
43
$v-unit-size: 40px;
44
$v-overlay-shadow: 0 0 0 3px (v-shade 8), 0 5px 10px (v-shade 4);
45
$v-component-group-spacing: 6px;
46

    
47
// ========================================== //
48

    
49
// For more information, see: https://vaadin.com/book/-/page/themes.valo.html
50
// Example variants can be copy/pasted from https://vaadin.com/wiki/-/wiki/Main/Valo+Examples
51

    
52
@import "../valo/valo.scss";
53

    
54

    
55
// ========================================== //
56

    
57
// import custom font icons TODO rename font
58
@include v-font(IcoMoon, "../../../../../fonts/icomoon");
59

    
60
.IcoMoon {
61
   font-family: IcoMoon;
62
   font-style: normal;
63
   font-weight: normal;
64
   -webkit-font-smoothing: antialiased;
65
   -moz-osx-font-smoothing: grayscale;
66
   display: inline-block;
67
   text-align: center;
68
}
69

    
70
// ========================================== //
71
// Status colors for the redistration
72
// 
73
// change-color cant be used since this is not fully supported by the vaadin sass-compiler
74
// see https://github.com/vaadin/sass-compiler/issues/147
75
$status-reference-color:$v-focus-color;
76
$hue-offset: hue($status-reference-color);
77
$plain-red: adjust-color($status-reference-color, $hue: -1 * $hue-offset);  // red as 0 degree hue
78
$status-rejected-color: adjust-color($plain-red, $hue: 0deg);
79
$status-curation-color: adjust-color($plain-red, $hue: 35deg); 
80
$status-preparation-color: adjust-color($plain-red, $hue: 60deg); 
81
$status-published-color: adjust-color($plain-red, $hue: 105deg); 
82
$status-ready-color: adjust-color($plain-red, $hue: 180deg);
83
// ========================================== //
84

    
85

    
86
@mixin edit-valo {
87
  @include valo;
88

    
89
  // Insert your own theme rules here
90
  
91
  // --- AbstractPageView --- // 
92
  #header {
93
    text-align: center;
94
    margin: round($v-layout-spacing-vertical/2); // corresponds to layout spacing
95
    font-size: $v-font-size--huge; // corresponds to valo style huge (26px)
96
  }
97

    
98
  #subheader {
99
    text-align: center;
100
    margin: round($v-layout-spacing-vertical/2);
101
    font-size: $v-font-size; // valo default font size (16px)
102
  }
103
  // ------------------- // 
104
  
105
  .logo_giant {
106
    font-size: 400%;
107
   }
108
   
109
   .v-button-giant {
110
     font-size: 32px;
111
     .v-icon {
112
       font-size: 64px;
113
       line-height: 50px;
114
     }
115
   }
116

    
117
   .v-label .caption {
118
       font-size: $v-font-size--small;
119
   }
120
   
121
   // label with caption and icon horizonatally aligned
122
   // to apply this to a Vaadin Label set 'label-nowrap'
123
   // as style
124

    
125
    .v-caption-label-nowrap, .v-label-label-nowrap {
126
        display: inline;
127
    }
128
    .v-label-label-nowrap {
129
//         margin-left: 8px; // TODO use sass variable here
130
//         vertical-align: baseline;
131
        .v-icon {
132
           display : inline;
133
        }
134
    }
135
   
136
   
137
   .dashboard-actions {
138
      margin: 0 10%;
139
    
140
      .dashboard-action-2 {
141
        width: 50%;
142
        .v-label {
143
            white-space: normal;
144
        }
145
      }
146
      .dashboard-action-3 {
147
        width: 33%;
148
        .v-label {
149
            white-space: normal;
150
        }
151
      }
152
      &[width-range~="-650px"] {
153
          .dashboard-action-2, .dashboard-action-3 {
154
              width: 100%;
155
          }
156
      }
157
    }
158

    
159
    // ===== workflow ==== // 
160

    
161
    #workflow-container {
162
        text-align: center;
163
        margin-top: $v-unit-size;
164
    }
165
    
166
    $workflow-icon-size: 110px;
167
    // can not be set per css as this need to set as property to the component in vaadin
168
    $workflow-timeline-bar-height: 10px; 
169
    // the fator by which the caption should be smaller than the circe
170
    $workflow-caption-shrink: 0.64; 
171

    
172
    $workflow-icon-margin-h: $workflow-icon-size / 5;
173
    $workflow-icon-left: $workflow-icon-margin-h / 2;
174
    $workflow-caption-font-size: $workflow-icon-size * $workflow-caption-shrink;        
175
    
176
    .workflow {
177
        .steps {
178
            z-index: 10;
179
            
180
            .v-csslayout {
181
                width: $workflow-icon-size + 2 * $workflow-icon-margin-h;
182
                .v-label {
183
                    display: block;
184
                    text-align: center;
185
                }
186
            }
187
         }
188
         .timeline {
189
            display: block;
190
            position: relative;
191
            top: ($workflow-icon-size / 2) + $workflow-timeline-bar-height / 2;
192
            padding: 0 $workflow-icon-size / 2;
193
            .timeline-bar {
194
                z-index: 0;
195
                background-color: $v-font-color;
196
            }
197
        }
198
    }
199

    
200
    .workflow-item {
201
        .v-button {
202
            margin: 0 $workflow-icon-margin-h;
203
            font-size: $workflow-icon-size;
204
            height: $workflow-icon-size;
205
            width: $workflow-icon-size;
206
            line-height: $workflow-icon-size;
207
        
208
            .v-icon, .v-button-caption {
209
                position: absolute;
210
                left: $workflow-icon-left;
211
                top: 0px;
212
            }
213
            .v-button-caption {
214
                font-family: monospace;
215
                left: (($workflow-icon-size - $workflow-caption-font-size) / 2) + $workflow-icon-left; // 30px;
216
                top: -2px;
217
                color: $v-background-color;
218
                font-size: $workflow-caption-font-size; // 70px;
219
            }
220
        }
221
    }
222

    
223
    // --------------------------------------------------- //
224
    
225
    .registration-list-item {
226
        border-top: valo-border($border: $v-border, $color: $v-background-color, $strength: 0.7);
227
        padding-top: 4px; // avoid button group to overlap with border
228
    }
229

    
230
   .registration-workflow-item {
231
       border: valo-border($border: $v-border, $color: $v-background-color, $strength: 0.7);
232
    }
233

    
234
    // tab element being part of a process ----------- //
235
    // use $v-unit-size instead of $v-font-size * 3?
236
    .workflow-step-wrap {
237
        padding-right: 10px;
238
        height: $v-font-size * 3;
239
        background-color: scale-color(lighten($v-app-background-color, 20%), $saturation: -20%);
240
        @include box-shadow(inset 0 0 5px $v-app-background-color);
241
    }
242
    .workflow-step {
243
        line-height: $v-font-size * 3;
244
    }
245
    .v-caption-workflow-step {
246
        vertical-align: top;
247
        padding: 0;
248
         .v-icon {
249
            line-height: $v-font-size * 3;
250
            font-size: $v-font-size * 3.5;
251
            padding-right: 10px;
252
            color: $v-background-color;
253
        }
254
    }
255

    
256
    .workflow-tabsheet {
257
        
258
        table.v-tabsheet-tabs, .v-tabsheet-tabs tr, .v-tabsheet-tabs tbody {
259
          width: 100%; 
260
        }
261
        
262
        .v-tabsheet-tabitemcell {
263
              width: 25%;
264
        }
265

    
266
        .v-tabsheet-tabitem {
267
            
268
            // background-color: scale-color(lighten($v-app-background-color, 20%), $saturation: -20%);
269
            // @include valo-gradient($color: $v-background-color, $gradient: $v-gradient, $fallback: null, $direction: to right);
270
            // @include box-shadow(inset 0 0 5px $v-app-background-color);
271
            // background-color: $v-font-color
272
            
273
            // border: valo-border($border: 2px solid, $color: $v-font-color, $strength: 1);
274
            
275
            background-color: scale-color(lighten($v-app-background-color, 20%), $saturation: -20%);
276
            @include box-shadow(inset 0 0 5px $v-app-background-color);
277
            border: valo-border($border: 2px solid, $color: $v-app-background-color, $strength: 1);
278
            border-color: $v-app-background-color;
279
            .v-caption {
280
                // line-height: $v-unit-size;
281
                margin: 0;
282
                padding: 0;
283
                padding-right: $v-unit-size / 2;
284
                border: 0px none;
285
            }
286
            .v-icon {
287
                line-height: $v-unit-size;
288
                font-size: $v-unit-size * 1.8;
289
                vertical-align: middle;
290
                // padding-right: $v-unit-size / 2;
291
                
292
                //color: $v-font-color;
293
                
294
                color: $v-app-background-color;
295
            }
296
        }
297
    }
298

    
299
    // ----------------------------------------------- //
300
    
301
   // status colors --------------------------------- //
302
    .status-REJECTED {
303
        color: $status-rejected-color;
304
    }
305
    .status-CURATION {
306
        color: $status-curation-color;
307
    }
308
    .status-PREPARATION {
309
        color: $status-preparation-color;
310
    }
311
    .status-PUBLISHED {
312
        color: $status-published-color;
313
    }
314
    .status-READY {
315
        color: $status-ready-color;
316
    }
317

    
318
    .bg-status-REJECTED {
319
        background-color: $status-rejected-color;
320
    }
321
    .bg-status-CURATION {
322
        background-color: $status-curation-color;
323
    }
324
    .bg-status-PREPARATION {
325
        background-color: $status-preparation-color;
326
    }
327
    .bg-status-PUBLISHED {
328
        background-color: $status-published-color;
329
    }
330
    .bg-status-READY {
331
        background-color: $status-ready-color;
332
    }
333
    // ----------------------------------------------- //
334
    
335
    #registration-list {
336
        /* --- for the css layout --- */
337
        overflow: auto;
338
        height: 100%;
339
        padding-left: round($v-unit-size/3);
340
        padding-right: round($v-unit-size/3);
341
        
342
        border: valo-border($border: $v-border, $color: $v-background-color, $strength: 1.4);
343
        border-radius: $v-border-radius - first-number($v-border) $v-border-radius - first-number($v-border) 0 0;
344
        /* ----------------------------------------------- */
345
        
346
        // for grid rows
347
        .status-REJECTED {
348
            color: $status-rejected-color;
349
            td.registrationType, td.status {
350
                color: $status-rejected-color;
351
            }
352
        }
353
        .status-CURATION {
354
            color: $status-curation-color;
355
            td.registrationType, td.status {
356
                color: $status-curation-color;
357
            }
358
        }
359
        .status-PREPARATION {
360
            color: $status-preparation-color;
361
            td.registrationType, td.status {
362
                color: $status-preparation-color;
363
            }
364
        }
365
        .status-PUBLISHED {
366
            color: $status-published-color;
367
            td.registrationType, td.status {
368
                color: $status-published-color;
369
            }
370
        }
371
        .status-READY {
372
            color: $status-ready-color;
373
            td.registrationType, td.status {
374
                color: $status-ready-color;
375
            }
376
        }
377
    }
378

    
379

    
380
}
(2-2/3)