Project

General

Profile

Download (6.01 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: 30deg); 
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
   .dashboard-actions {
88
      margin: 0 10%;
89
    
90
      .dashboard-action-2 {
91
        width: 50%;
92
        .v-label {
93
            white-space: normal;
94
        }
95
      }
96
      .dashboard-action-3 {
97
        width: 33%;
98
        .v-label {
99
            white-space: normal;
100
        }
101
      }
102
      &[width-range~="-650px"] {
103
          .dashboard-action-2, .dashboard-action-3 {
104
              width: 100%;
105
          }
106
      }
107
    }
108

    
109
    // ===== workflow ==== // 
110
    
111
    $workflow-icon-size: 110px;
112
    // can not be set per css as this need to set as property to the component in vaadin
113
    $workflow-timeline-bar-height: 10px; 
114
    // the fator by which the caption should be smaller than the circe
115
    $workflow-caption-shrink: 0.64; 
116

    
117
    $workflow-icon-margin-h: $workflow-icon-size / 5;
118
    $workflow-icon-left: $workflow-icon-margin-h / 2;
119
    $workflow-caption-font-size: $workflow-icon-size * $workflow-caption-shrink;
120
        
121
    .workflow {
122
        
123
        .steps {
124
            z-index: 10;
125
            
126
            .v-csslayout {
127
                width: $workflow-icon-size + 2 * $workflow-icon-margin-h;
128
                .v-label {
129
                    display: block;
130
                    text-align: center;
131
                }
132
            }
133
         }
134
         
135
         .timeline {
136
            display: block;
137
            position: relative;
138
            top: ($workflow-icon-size / 2) + $workflow-timeline-bar-height / 2;
139
            padding: 0 $workflow-icon-size / 2;
140
            .timeline-bar {
141
                z-index: 0;
142
                background-color: $v-font-color;
143
            }
144
        }
145
    }
146

    
147
    .workflow-item {
148
        .v-button {
149
            margin: 0 $workflow-icon-margin-h;
150
            font-size: $workflow-icon-size;
151
            height: $workflow-icon-size;
152
            width: $workflow-icon-size;
153
            line-height: $workflow-icon-size;
154
        
155
            .v-icon, .v-button-caption {
156
                position: absolute;
157
                left: $workflow-icon-left;
158
                top: 0px;
159
            }
160
            .v-button-caption {
161
                font-family: monospace;
162
                left: (($workflow-icon-size - $workflow-caption-font-size) / 2) + $workflow-icon-left; // 30px;
163
                top: -2px;
164
                color: $v-background-color;
165
                font-size: $workflow-caption-font-size; // 70px;
166
            }
167
        }
168
    }
169

    
170
    // --------------------------------------------------- //
171
    
172
    
173
    
174
    #registration-list {
175
        .status-rejected {
176
            td.registrationType, td.status {
177
                color: $status-rejected-color;
178
            }
179
        }
180
        .status-curation {
181
            td.registrationType, td.status {
182
                color: $status-curation-color;
183
            }
184
        }
185
        .status-preparation {
186
            td.registrationType, td.status {
187
                color: $status-preparation-color;
188
            }
189
        }
190
        .status-published {
191
            td.registrationType, td.status {
192
                color: $status-published-color;
193
            }
194
        }
195
        .status-ready {
196
            td.registrationType, td.status {
197
                color: $status-ready-color;
198
            }
199
        }
200
    }
201

    
202
}
(2-2/3)