Project

General

Profile

Download (2.23 KB) Statistics
| Branch: | Tag: | Revision:
1
// styles for custom fields
2

    
3
// ===================== Mixins ==============================//
4

    
5
@mixin composite-field-wrapper() {
6
  border: valo-border($border: $v-border, $color: $v-background-color, $strength: 0.7);
7
  border-radius: $v-border-radius;
8
  background-color: $v-app-background-color;
9
  padding: round($v-unit-size / 4);
10
}
11

    
12
// ===================== Styles ==============================//
13

    
14
body .edit-valo { // increasing specifity to allow overriding the valo default field themes
15
  
16
  // TimePeriodField
17
  .v-time-period-field {
18
      .margin-wrapper {
19
          @include composite-field-wrapper;
20
      }
21
      .to-label {
22
        padding: 0 round($v-unit-size / 2);
23
      }
24
  }
25
  
26
  .v-textfield-helper-field { 
27
          @if is-dark-color($v-background-color) {
28
              $helper-color: lighten($v-background-color, 20%);
29
          } @else {
30
              $helper-color: lighten($v-background-color, -20%);
31
          }
32
          color: $helper-color;
33
          background-color: valo-font-color($helper-color);
34
          border-radius: $v-border-radius;
35
   }
36
  
37
  // v-switchable-textfield
38
  .v-switchable-textfield {
39
    position: relative; // needs to be a positioned element
40
    height: $v-line-height * 2;
41
    .v-caption {
42
        display: block;
43
    }   
44
    .v-textfield {
45
        padding-right: $v-unit-size;
46
    }
47
    .v-switch {
48
        z-index: 10;
49
        width: $v-unit-size;
50
        position: absolute;
51
        right: 1px;
52
        bottom: 1px;
53
    }
54
  }
55
  
56
  // v-person-field
57
  .v-person-field {
58
    .v-caption {
59
        display: block;
60
    }
61
    .cache-field, .details-fields  {
62
        padding-right: $v-unit-size;
63
    }
64
    .v-switch {
65
        z-index: 10;
66
        width: $v-unit-size;
67
        position: absolute;
68
        right: 1px;
69
        bottom: 1px;
70
    } 
71
  }
72
  .v-person-field-cache-mode {
73
        .cache-field {
74
            display: block;
75
        }
76
        .details-fields {
77
            display: none;
78
        }
79
    }
80
   .v-person-field-details-mode {
81
        .cache-field {
82
            display: none;
83
        }
84
        .details-fields {
85
            display: block;
86
        }
87
    }
88
    
89
   // team-or-person-field
90
   .v-team-or-person-field {
91
        .margin-wrapper {
92
            @include composite-field-wrapper;
93
        }
94
    }
95
} 
(1-1/5)