Project

General

Profile

Download (14 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: 14px; // default in valo is 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
/*
31
*/
32
$v-background-color: #444d50;
33
$v-focus-color: #07a9ca;
34
$v-focus-style: 0 0 3px 2px $v-focus-color;
35
$v-bevel-depth: 40%;
36
$v-gradient: v-linear 12%;
37
$v-border-radius: 10px;
38
$v-font-family: Roboto, sans-serif;
39
$v-font-weight: 400;
40
$v-font-weight--header: 400;
41
$v-bevel: inset 0 1px 2px v-tint, inset 0 0 1px (v-tint 0.1);
42
$v-shadow: 0 0 0 3px rgba(0,0,0,0.32), 0 1px 0 3px rgba(255,255,255,0.14);
43
$v-textfield-bevel: inset 0 2px 2px v-shade;
44
$v-textfield-shadow: $v-shadow;
45
$v-unit-size: 40px;
46
$v-overlay-shadow: 0 0 0 3px (v-shade 8), 0 5px 10px (v-shade 4);
47
$v-component-group-spacing: 6px;
48

    
49
// ========================================== //
50

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

    
54
@import "../valo/valo.scss";
55

    
56
@import "valo-fix.scss";
57

    
58
@import "custom-fields.scss";
59

    
60

    
61
// ========================================== //
62

    
63
// import custom font icons TODO rename font
64
@include v-font(IcoMoon, "../../../../../fonts/icomoon");
65

    
66
.IcoMoon {
67
   font-family: IcoMoon;
68
   font-style: normal;
69
   font-weight: normal;
70
   -webkit-font-smoothing: antialiased;
71
   -moz-osx-font-smoothing: grayscale;
72
   display: inline-block;
73
   text-align: center;
74
}
75

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

    
91

    
92
@mixin edit-valo {
93
  @include valo;
94

    
95
  // Insert your own theme rules here
96
  
97
  // --- AbstractPageView --- // 
98
  #header {
99
    text-align: center;
100
    margin: round($v-layout-spacing-vertical/2); // corresponds to layout spacing
101
    font-size: $v-font-size--huge; // corresponds to valo style huge (26px)
102
  }
103

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

    
123
   .v-label .caption {
124
       font-size: $v-font-size--small;
125
   }
126
   
127
   // label with caption and icon horizonatally aligned
128
   // to apply this to a Vaadin Label set 'label-nowrap'
129
   // as style
130

    
131
    .v-caption-label-nowrap, .v-label-label-nowrap {
132
        display: inline;
133
    }
134
    .v-label-label-nowrap {
135
//         margin-left: 8px; // TODO use sass variable here
136
//         vertical-align: baseline;
137
        .v-icon {
138
           display : inline;
139
        }
140
    } 
141

    
142
   .friendly-foreground {
143
        color: $v-friendly-color;
144
    }
145
   
146
   .v-button .button-badge {
147
         @include valo-badge-style($states: inactive, $background-color: lighten($v-background-color, 10%), $active-color: $v-focus-color);
148
    } 
149
   
150
   .dashboard-actions {
151
      margin: 0 10%;
152
    
153
      .dashboard-action-2 {
154
        width: 50%;
155
        .v-label {
156
            white-space: normal;
157
        }
158
      }
159
      .dashboard-action-3 {
160
        width: 33%;
161
        .v-label {
162
            white-space: normal;
163
        }
164
      }
165
      &[width-range~="-650px"] {
166
          .dashboard-action-2, .dashboard-action-3 {
167
              width: 100%;
168
          }
169
      }
170
    }
171
    
172
    // ==== styles in eu.etaxonomy.cdm.vaadin.theme.EditValoTheme ==== // 
173
    
174
    // style for buttons highlighted as being active
175
    .v-button-highlite {
176
        color: $v-focus-color;
177
    }
178
    
179
    .v-panel-padding-left .v-panel-content {
180
        padding-left: round($v-unit-size / 4);
181
    }
182

    
183
    // ===== workflow ==== // 
184
    
185
    #workflow {
186
        .registration-list {
187
                .v-gridlayout-slot {
188
                    border-bottom: valo-border($border: $v-border, $color: $v-background-color, $strength: 1.4);
189
                }
190
            }
191
         .v-gridlayout-registration-list-item {
192
            padding: 0 round($v-unit-size / 4);
193
         }
194
    }
195
    
196
    $workflow-icon-size: 110px;
197
    // can not be set per css as this need to set as property to the component in vaadin
198
    $workflow-timeline-bar-height: 10px; 
199
    // the fator by which the caption should be smaller than the circe
200
    $workflow-caption-shrink: 0.64; 
201

    
202
    $workflow-icon-margin-h: $workflow-icon-size / 5;
203
    $workflow-icon-left: $workflow-icon-margin-h / 2;
204
    $workflow-caption-font-size: $workflow-icon-size * $workflow-caption-shrink;        
205
    
206
    .workflow {
207
        .steps {
208
            z-index: 10;
209
            
210
            .v-csslayout {
211
                width: $workflow-icon-size + 2 * $workflow-icon-margin-h;
212
                .v-label {
213
                    display: block;
214
                    text-align: center;
215
                }
216
            }
217
         }
218
         .timeline {
219
            display: block;
220
            position: relative;
221
            top: ($workflow-icon-size / 2) + $workflow-timeline-bar-height / 2;
222
            padding: 0 $workflow-icon-size / 2;
223
            .timeline-bar {
224
                z-index: 0;
225
                background-color: $v-font-color;
226
            }
227
        }
228
    }
229

    
230
    .workflow-item {
231
        .v-button {
232
            margin: 0 $workflow-icon-margin-h;
233
            font-size: $workflow-icon-size;
234
            height: $workflow-icon-size;
235
            width: $workflow-icon-size;
236
            line-height: $workflow-icon-size;
237
        
238
            .v-icon, .v-button-caption {
239
                position: absolute;
240
                left: $workflow-icon-left;
241
                top: 0px;
242
            }
243
            .v-button-caption {
244
                font-family: monospace;
245
                left: (($workflow-icon-size - $workflow-caption-font-size) / 2) + $workflow-icon-left; // 30px;
246
                top: -2px;
247
                color: $v-background-color;
248
                font-size: $workflow-caption-font-size; // 70px;
249
            }
250
        }
251
    }
252
    
253
   
254
   // --------------------------------------------------- //
255

    
256
    #workingset {
257
            padding: round($v-unit-size / 2);
258
            .registration-list, .registration-list-item {
259
                margin-top: round($v-unit-size / 2);
260
            }
261
        
262
            .v-panel-content {
263
                padding: 0 round($v-unit-size/3);
264
            }
265
            .registration-list .item-footer {
266
                border-bottom: valo-border($border: $v-border, $color: $v-background-color, $strength: 1.4);
267
            }
268
    }
269

    
270
    // --------------------------------------------------- //
271
    
272
    .registration-list-item {
273
        border-bottom: valo-border($border: $v-border, $color: $v-background-color, $strength: 0.7);
274
        padding-top: 4px; // avoid button group to overlap with border
275
        .v-label-registration-state {
276
            margin-right: round($v-unit-size / 4);
277
        }            
278
        .v-caption-submitter {
279
            margin-right: round($v-unit-size / 8);
280
        }
281
    }
282

    
283
   .registration-workflow-item {
284
       border: valo-border($border: $v-border, $color: $v-background-color, $strength: 0.7);
285
    }
286

    
287
    // tab element being part of a process ----------- //
288
    // use $v-unit-size instead of $v-font-size * 3?
289
    .workflow-step-wrap {
290
        padding-right: 10px;
291
        height: $v-font-size * 3;
292
        background-color: scale-color(lighten($v-app-background-color, 20%), $saturation: -20%);
293
        @include box-shadow(inset 0 0 5px $v-app-background-color);
294
    }
295
    .workflow-step {
296
        line-height: $v-font-size * 3;
297
    }
298
    .v-caption-workflow-step {
299
        vertical-align: top;
300
        padding: 0;
301
         .v-icon {
302
            line-height: $v-font-size * 3;
303
            font-size: $v-font-size * 3.5;
304
            padding-right: 10px;
305
            color: $v-background-color;
306
        }
307
    }
308

    
309
    .workflow-tabsheet {
310
        
311
        table.v-tabsheet-tabs, .v-tabsheet-tabs tr, .v-tabsheet-tabs tbody {
312
          width: 100%; 
313
        }
314
        
315
        .v-tabsheet-tabitemcell {
316
              width: 25%;
317
        }
318

    
319
        .v-tabsheet-tabitem {
320
            
321
            // background-color: scale-color(lighten($v-app-background-color, 20%), $saturation: -20%);
322
            // @include valo-gradient($color: $v-background-color, $gradient: $v-gradient, $fallback: null, $direction: to right);
323
            // @include box-shadow(inset 0 0 5px $v-app-background-color);
324
            // background-color: $v-font-color
325
            
326
            // border: valo-border($border: 2px solid, $color: $v-font-color, $strength: 1);
327
            
328
            background-color: scale-color(lighten($v-app-background-color, 20%), $saturation: -20%);
329
            @include box-shadow(inset 0 0 5px $v-app-background-color);
330
            border: valo-border($border: 2px solid, $color: $v-app-background-color, $strength: 1);
331
            border-color: $v-app-background-color;
332
            .v-caption {
333
                // line-height: $v-unit-size;
334
                margin: 0;
335
                padding: 0;
336
                padding-right: $v-unit-size / 2;
337
                border: 0px none;
338
            }
339
            .v-icon {
340
                line-height: $v-unit-size;
341
                font-size: $v-unit-size * 1.8;
342
                vertical-align: middle;
343
                // padding-right: $v-unit-size / 2;
344
                
345
                //color: $v-font-color;
346
                
347
                color: $v-app-background-color;
348
            }
349
        }
350
    }
351

    
352
    // ----------------------------------------------- //
353
    
354
   // status colors --------------------------------- //
355
    .status-REJECTED {
356
        color: $status-rejected-color;
357
    }
358
    .status-CURATION {
359
        color: $status-curation-color;
360
    }
361
    .status-PREPARATION {
362
        color: $status-preparation-color;
363
    }
364
    .status-PUBLISHED {
365
        color: $status-published-color;
366
    }
367
    .status-READY {
368
        color: $status-ready-color;
369
    }
370

    
371
    .bg-status-REJECTED {
372
        background-color: $status-rejected-color;
373
    }
374
    .bg-status-CURATION {
375
        background-color: $status-curation-color;
376
    }
377
    .bg-status-PREPARATION {
378
        background-color: $status-preparation-color;
379
    }
380
    .bg-status-PUBLISHED {
381
        background-color: $status-published-color;
382
    }
383
    .bg-status-READY {
384
        background-color: $status-ready-color;
385
    }
386
    // ----------------------------------------------- //
387
    
388
    #registration-list {
389
        /* --- for the css layout --- */
390
        overflow: auto;
391
        height: 100%;
392
        padding-left: round($v-unit-size/3);
393
        padding-right: round($v-unit-size/3);
394
        
395
        border: valo-border($border: $v-border, $color: $v-background-color, $strength: 1.4);
396
        border-radius: $v-border-radius - first-number($v-border) $v-border-radius - first-number($v-border) 0 0;
397
        /* ----------------------------------------------- */
398
        
399
        // for grid rows
400
        .status-REJECTED {
401
            color: $status-rejected-color;
402
            td.registrationType, td.status {
403
                color: $status-rejected-color;
404
            }
405
        }
406
        .status-CURATION {
407
            color: $status-curation-color;
408
            td.registrationType, td.status {
409
                color: $status-curation-color;
410
            }
411
        }
412
        .status-PREPARATION {
413
            color: $status-preparation-color;
414
            td.registrationType, td.status {
415
                color: $status-preparation-color;
416
            }
417
        }
418
        .status-PUBLISHED {
419
            color: $status-published-color;
420
            td.registrationType, td.status {
421
                color: $status-published-color;
422
            }
423
        }
424
        .status-READY {
425
            color: $status-ready-color;
426
            td.registrationType, td.status {
427
                color: $status-ready-color;
428
            }
429
        }
430

    
431
    }
432
    
433
    // ---------------- custom components ----------------------- //
434
    
435
    .edit-button-group {
436
        margin-top: round($v-unit-size/10);
437
        .v-button {
438
            padding: 0 round($v-unit-size/4);
439
            height: round(2 * $v-unit-size/3 )
440
            // margin: 0 round($v-unit-size/4);
441
        }
442
        .v-label {
443
            display: inline;
444
            white-space: normal;
445
        }
446
    }
447
    
448
    // ---------- popup editor windows ---------------------------------//
449
    .v-window-top-toolbar {
450
        margin-bottom: round($v-unit-size/4);
451
        .v-component-group {
452
            float: right;
453
        }
454
    }
455

    
456
    // ---------- ---------- //
457

    
458
    .v-slot-message-item {
459
        .date-time {
460
            font-weight: lighter;
461
        }
462
        .user-name {
463
            font-weight: bold;
464
        }
465
    }
466
}
(3-3/5)