diff options
Diffstat (limited to 'client/src/sass/include')
-rw-r--r-- | client/src/sass/include/_mixins.scss | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss index 252cf2173..140de1b2c 100644 --- a/client/src/sass/include/_mixins.scss +++ b/client/src/sass/include/_mixins.scss | |||
@@ -84,6 +84,32 @@ | |||
84 | @include peertube-button; | 84 | @include peertube-button; |
85 | } | 85 | } |
86 | 86 | ||
87 | @mixin peertube-button-file ($width) { | ||
88 | position: relative; | ||
89 | overflow: hidden; | ||
90 | display: inline-block; | ||
91 | width: $width; | ||
92 | |||
93 | @include peertube-button; | ||
94 | @include orange-button; | ||
95 | |||
96 | input[type=file] { | ||
97 | position: absolute; | ||
98 | top: 0; | ||
99 | right: 0; | ||
100 | min-width: 100%; | ||
101 | min-height: 100%; | ||
102 | font-size: 100px; | ||
103 | text-align: right; | ||
104 | filter: alpha(opacity=0); | ||
105 | opacity: 0; | ||
106 | outline: none; | ||
107 | background: white; | ||
108 | cursor: inherit; | ||
109 | display: block; | ||
110 | } | ||
111 | } | ||
112 | |||
87 | @mixin avatar ($size) { | 113 | @mixin avatar ($size) { |
88 | width: $size; | 114 | width: $size; |
89 | height: $size; | 115 | height: $size; |