Design confirm dialog
[oweals/peertube.git] / client / src / sass / _mixins.scss
1 @mixin disable-default-a-behaviour {
2   &:hover, &:focus {
3     text-decoration: none !important;
4     outline: none !important;
5   }
6 }
7
8 @mixin peertube-input-text($width) {
9   display: inline-block;
10   height: $button-height;
11   width: $width;
12   background: #fff;
13   border: 1px solid #C6C6C6;
14   border-radius: 3px;
15   padding-left: 15px;
16
17   &::placeholder {
18     color: #585858;
19   }
20 }
21
22 @mixin orange-button {
23   color: #fff;
24   background-color: $orange-color;
25
26   &:hover, &:active, &:focus, &[disabled] {
27     color: #fff;
28     background-color: $orange-hoover-color;
29   }
30 }
31
32 @mixin grey-button {
33   background-color: $grey-color;
34   color: #585858;
35
36   &:hover, &:active, &:focus, &[disabled] {
37     color: #585858;
38     background-color: $grey-hoover-color;
39   }
40 }
41
42 @mixin peertube-button {
43   border: none;
44   font-weight: $font-semibold;
45   font-size: 15px;
46   height: $button-height;
47   line-height: $button-height;
48   border-radius: 3px;
49   text-align: center;
50   padding: 0 17px 0 13px;
51   cursor: pointer;
52 }
53
54 @mixin peertube-button-link {
55   display: inline-block;
56
57   @include disable-default-a-behaviour;
58   @include peertube-button;
59 }
60
61 @mixin avatar ($size) {
62   width: $size;
63   height: $size;
64 }
65
66 @mixin icon ($size) {
67   display: inline-block;
68   background-repeat: no-repeat;
69   background-size: contain;
70   width: $size;
71   height: $size;
72   vertical-align: middle;
73   cursor: pointer;
74 }