aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/sass/include/_mixins.scss
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/sass/include/_mixins.scss')
-rw-r--r--client/src/sass/include/_mixins.scss50
1 files changed, 47 insertions, 3 deletions
diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss
index cf5ac8fd8..82c60a59d 100644
--- a/client/src/sass/include/_mixins.scss
+++ b/client/src/sass/include/_mixins.scss
@@ -31,9 +31,19 @@
31 text-overflow: ellipsis; 31 text-overflow: ellipsis;
32} 32}
33 33
34@mixin prefix($property, $parameters...) { 34@mixin fade-text ($fade-after, $background-color) {
35 @each $prefix in -webkit-, -moz-, -ms-, -o-, "" { 35 position: relative;
36 #{$prefix}#{$property}: $parameters; 36 overflow: hidden;
37
38 &:after {
39 content: '';
40 pointer-events: none;
41 width: 100%;
42 height: 100%;
43 position: absolute;
44 left: 0;
45 top: 0;
46 background: linear-gradient(transparent $fade-after, $background-color);
37 } 47 }
38} 48}
39 49
@@ -138,6 +148,33 @@
138 } 148 }
139} 149}
140 150
151@mixin orange-button-inverted {
152 @include button-focus(pvar(--mainColorLightest));
153
154 border: 2px solid pvar(--mainColor);
155 font-weight: $font-regular;
156
157 &, &:active, &:focus {
158 color: pvar(--mainColor);
159 background-color: pvar(--mainBackgroundColor);
160 }
161
162 &:hover {
163 color: pvar(--mainColor);
164 background-color: pvar(--mainColorLightest);
165 }
166
167 &[disabled], &.disabled {
168 cursor: default;
169 color: pvar(--mainColor);
170 background-color: #C6C6C6;
171 }
172
173 my-global-icon {
174 @include apply-svg-color(pvar(--mainColor))
175 }
176}
177
141@mixin tertiary-button { 178@mixin tertiary-button {
142 @include button-focus($grey-button-outline-color); 179 @include button-focus($grey-button-outline-color);
143 180
@@ -509,6 +546,13 @@
509 min-height: $size; 546 min-height: $size;
510} 547}
511 548
549@mixin channel-avatar ($size) {
550 width: $size;
551 height: $size;
552 min-width: $size;
553 min-height: $size;
554}
555
512@mixin chevron ($size, $border-width) { 556@mixin chevron ($size, $border-width) {
513 border-style: solid; 557 border-style: solid;
514 border-width: $border-width $border-width 0 0; 558 border-width: $border-width $border-width 0 0;