Project

General

Profile

Download (7.36 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
// Status colors for the redistration
56
// 
57
// change-color cant be used since this is not fully supported by the vaadin sass-compiler
58
// see https://github.com/vaadin/sass-compiler/issues/147
59
$status-reference-color:$v-focus-color;
60
$hue-offset: hue($status-reference-color);
61
$plain-red: adjust-color($status-reference-color, $hue: -1 * $hue-offset);  // red as 0 degree hue
62
$status-rejected-color: adjust-color($plain-red, $hue: 0deg);
63
$status-curation-color: adjust-color($plain-red, $hue: 35deg); 
64
$status-preparation-color: adjust-color($plain-red, $hue: 60deg); 
65
$status-published-color: adjust-color($plain-red, $hue: 105deg); 
66
$status-ready-color: adjust-color($plain-red, $hue: 180deg);
67
// ========================================== //
68

    
69

    
70
@mixin edit-valo {
71
  @include valo;
72

    
73
  // Insert your own theme rules here
74
  
75
  .logo_giant {
76
    font-size: 400%;
77
   }
78
   
79
   .v-button-giant {
80
     font-size: 32px;
81
     .v-icon {
82
       font-size: 64px;
83
       line-height: 50px;
84
     }
85
   }
86

    
87
   .v-label .caption {
88
       font-size: $v-font-size--small;
89
   }
90
   
91
   // label with caption and icon horizonatally aligned
92
   // to apply this to a Vaadin Label set 'label-nowrap'
93
   // as style
94

    
95
    .v-caption-label-nowrap, .v-label-label-nowrap {
96
        display: inline;
97
    }
98
    .v-label-label-nowrap {
99
//         margin-left: 8px; // TODO use sass variable here
100
//         vertical-align: baseline;
101
        .v-icon {
102
           display : inline;
103
        }
104
    }
105
   
106
   
107
   .dashboard-actions {
108
      margin: 0 10%;
109
    
110
      .dashboard-action-2 {
111
        width: 50%;
112
        .v-label {
113
            white-space: normal;
114
        }
115
      }
116
      .dashboard-action-3 {
117
        width: 33%;
118
        .v-label {
119
            white-space: normal;
120
        }
121
      }
122
      &[width-range~="-650px"] {
123
          .dashboard-action-2, .dashboard-action-3 {
124
              width: 100%;
125
          }
126
      }
127
    }
128

    
129
    // ===== workflow ==== // 
130
    
131
    $workflow-icon-size: 110px;
132
    // can not be set per css as this need to set as property to the component in vaadin
133
    $workflow-timeline-bar-height: 10px; 
134
    // the fator by which the caption should be smaller than the circe
135
    $workflow-caption-shrink: 0.64; 
136

    
137
    $workflow-icon-margin-h: $workflow-icon-size / 5;
138
    $workflow-icon-left: $workflow-icon-margin-h / 2;
139
    $workflow-caption-font-size: $workflow-icon-size * $workflow-caption-shrink;
140
        
141
    .workflow {
142
        .steps {
143
            z-index: 10;
144
            
145
            .v-csslayout {
146
                width: $workflow-icon-size + 2 * $workflow-icon-margin-h;
147
                .v-label {
148
                    display: block;
149
                    text-align: center;
150
                }
151
            }
152
         }
153
         .timeline {
154
            display: block;
155
            position: relative;
156
            top: ($workflow-icon-size / 2) + $workflow-timeline-bar-height / 2;
157
            padding: 0 $workflow-icon-size / 2;
158
            .timeline-bar {
159
                z-index: 0;
160
                background-color: $v-font-color;
161
            }
162
        }
163
    }
164

    
165
    .workflow-item {
166
        .v-button {
167
            margin: 0 $workflow-icon-margin-h;
168
            font-size: $workflow-icon-size;
169
            height: $workflow-icon-size;
170
            width: $workflow-icon-size;
171
            line-height: $workflow-icon-size;
172
        
173
            .v-icon, .v-button-caption {
174
                position: absolute;
175
                left: $workflow-icon-left;
176
                top: 0px;
177
            }
178
            .v-button-caption {
179
                font-family: monospace;
180
                left: (($workflow-icon-size - $workflow-caption-font-size) / 2) + $workflow-icon-left; // 30px;
181
                top: -2px;
182
                color: $v-background-color;
183
                font-size: $workflow-caption-font-size; // 70px;
184
            }
185
        }
186
    }
187

    
188
    // --------------------------------------------------- //
189
    
190
    .registration-item {
191
        border-top: valo-border($border: $v-border, $color: $v-background-color, $strength: 0.7);
192
        padding-top: 4px; // avoid button group to overlap with border
193
    }
194
    
195
    #registration-list {
196
        // for grid rows
197
        .status-REJECTED {
198
            color: $status-rejected-color;
199
            td.registrationType, td.status {
200
                color: $status-rejected-color;
201
            }
202
        }
203
        .status-CURATION {
204
            color: $status-curation-color;
205
            td.registrationType, td.status {
206
                color: $status-curation-color;
207
            }
208
        }
209
        .status-PREPARATION {
210
            color: $status-preparation-color;
211
            td.registrationType, td.status {
212
                color: $status-preparation-color;
213
            }
214
        }
215
        .status-PUBLISHED {
216
            color: $status-published-color;
217
            td.registrationType, td.status {
218
                color: $status-published-color;
219
            }
220
        }
221
        .status-READY {
222
            color: $status-ready-color;
223
            td.registrationType, td.status {
224
                color: $status-ready-color;
225
            }
226
        }
227
        // for RegistrationItems
228
        .v-caption-status-REJECTED {
229
            color: $status-rejected-color;
230
        }
231
        .v-caption-status-CURATION {
232
            color: $status-curation-color;
233
        }
234
        .v-caption-status-PREPARATION {
235
            color: $status-preparation-color;
236
        }
237
        .v-caption-status-PUBLISHED {
238
            color: $status-published-color;
239
        }
240
        .v-caption-status-READY {
241
            color: $status-ready-color;
242
        }
243
    }
244

    
245

    
246
}
(2-2/3)