summaryrefslogtreecommitdiffstats
path: root/WebContent/VAADIN/themes/valo/components/_upload.scss
blob: 1616e8056397cb568d7d200c47e08cf983dac28b (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
/**
 *
 *
 * @param {string} $primary-stylename (v-upload) -
 *
 * @group upload
 */
@mixin valo-upload ($primary-stylename: v-upload) {
  .#{$primary-stylename} .v-button {
    @include valo-widget-style;
  }

  .#{$primary-stylename}-immediate .v-button {
    width: 100%;
  }

  .#{$primary-stylename}-immediate input[type="file"] {
    @include opacity(0);
    z-index: -1;
    position: absolute;
    right: 0;
    height: $v-unit-size;
    text-align: right;
    border: none;
    background: transparent;
  }
}