diff options
author | Chocobozzz <me@florianbigard.com> | 2020-06-23 14:10:17 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-06-23 16:00:49 +0200 |
commit | 67ed6552b831df66713bac9e672738796128d33f (patch) | |
tree | 59c97d41e0b49d75a90aa3de987968ab9b1ff447 /client/src/app/shared/shared-main/buttons/action-dropdown.component.scss | |
parent | 0c4bacbff53bc732f5a2677d62a6ead7752e2405 (diff) | |
download | PeerTube-67ed6552b831df66713bac9e672738796128d33f.tar.gz PeerTube-67ed6552b831df66713bac9e672738796128d33f.tar.zst PeerTube-67ed6552b831df66713bac9e672738796128d33f.zip |
Reorganize client shared modules
Diffstat (limited to 'client/src/app/shared/shared-main/buttons/action-dropdown.component.scss')
-rw-r--r-- | client/src/app/shared/shared-main/buttons/action-dropdown.component.scss | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/client/src/app/shared/shared-main/buttons/action-dropdown.component.scss b/client/src/app/shared/shared-main/buttons/action-dropdown.component.scss new file mode 100644 index 000000000..724a04efc --- /dev/null +++ b/client/src/app/shared/shared-main/buttons/action-dropdown.component.scss | |||
@@ -0,0 +1,72 @@ | |||
1 | @import '_variables'; | ||
2 | @import '_mixins'; | ||
3 | |||
4 | .dropdown-divider:last-child { | ||
5 | display: none; | ||
6 | } | ||
7 | |||
8 | .action-button { | ||
9 | @include peertube-button; | ||
10 | |||
11 | &.button-styled { | ||
12 | |||
13 | &.grey { | ||
14 | @include grey-button; | ||
15 | } | ||
16 | |||
17 | &.orange { | ||
18 | @include orange-button; | ||
19 | } | ||
20 | |||
21 | &:hover, &:active, &:focus { | ||
22 | background-color: $grey-background-color; | ||
23 | } | ||
24 | } | ||
25 | |||
26 | display: inline-block; | ||
27 | padding: 0 10px; | ||
28 | |||
29 | &::after { | ||
30 | display: none; | ||
31 | } | ||
32 | |||
33 | .more-icon { | ||
34 | width: 21px; | ||
35 | |||
36 | ::ng-deep { | ||
37 | @include apply-svg-color(pvar(--actionButtonColor)); | ||
38 | } | ||
39 | } | ||
40 | |||
41 | &.small { | ||
42 | font-size: 14px; | ||
43 | height: 20px; | ||
44 | line-height: 20px; | ||
45 | } | ||
46 | } | ||
47 | |||
48 | .dropdown-toggle::after { | ||
49 | position: relative; | ||
50 | top: 1px; | ||
51 | } | ||
52 | |||
53 | .dropdown-menu { | ||
54 | .dropdown-header { | ||
55 | padding: 0.2rem 1rem; | ||
56 | } | ||
57 | |||
58 | .dropdown-item { | ||
59 | display: flex; | ||
60 | cursor: pointer; | ||
61 | color: #000 !important; | ||
62 | |||
63 | &.with-icon { | ||
64 | @include dropdown-with-icon-item; | ||
65 | } | ||
66 | |||
67 | a, span { | ||
68 | display: block; | ||
69 | width: 100%; | ||
70 | } | ||
71 | } | ||
72 | } | ||