summaryrefslogtreecommitdiffstats
path: root/WebContent/VAADIN/themes/valo/components/_optiongroup.scss
blob: b6230a1ace73d72a0c88dba1ffd8711cfb31e4a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
@mixin valo-optiongroup ($primary-stylename: v-optiongroup) {
  
  .v-radiobutton {
    :root & > input {
      &:checked ~ label:after {
        $size: ceil($v-unit-size/6);
        $offset: round($v-unit-size/6);
        width: $size;
        height: $size;
        top: $offset;
        left: $offset;
        background: valo-selection-color($v-button-background-color);
      }

      & ~ label:before,
      & ~ label:after {
        border-radius: 50%;
        content: "";
      }
    }
  }
  
  .v-select-optiongroup {
  
    .v-radiobutton,
    .v-checkbox {
      display: block;
      margin: round($v-unit-size/4) $v-font-size 0 0;
      
      &:first-child {
        margin-top: round($v-unit-size/6);
      }
    }

    &.v-has-width label {
      white-space: normal;
    }
  
  }
  
}