]>
Commit | Line | Data |
---|---|---|
947d0102 RK |
1 | // Bootstrap grid utilities require functions, variables and mixins |
2 | @import 'node_modules/bootstrap/scss/functions'; | |
3 | @import 'node_modules/bootstrap/scss/variables'; | |
4 | @import 'node_modules/bootstrap/scss/mixins'; | |
5 | @import 'node_modules/bootstrap/scss/grid'; | |
6 | ||
170726f5 C |
7 | @import '_variables'; |
8 | @import '_mixins'; | |
9 | ||
10 | .sub-menu { | |
11 | @include sub-menu-with-actor; | |
22a16e36 C |
12 | |
13 | .actor, .actor-info { | |
14 | width: 100%; | |
15 | } | |
16 | ||
9b8a7aa8 RK |
17 | .actor-info { |
18 | display: grid !important; | |
19 | grid-template-columns: 1fr auto; | |
20 | grid-template-rows: 1fr auto / 1fr auto; | |
4c1c1709 | 21 | grid-template-areas: "name buttons" "lower buttons"; |
9b8a7aa8 | 22 | |
947d0102 | 23 | @include media-breakpoint-down(lg) { |
4c1c1709 | 24 | grid-template-areas: "name name" "lower buttons"; |
9b8a7aa8 RK |
25 | } |
26 | } | |
27 | ||
28 | .actor-names { | |
29 | grid-area: name; | |
30 | } | |
31 | ||
22a16e36 C |
32 | .actor-name { |
33 | flex-grow: 1; | |
a0dedc02 RK |
34 | |
35 | .copy-button { | |
36 | border: none; | |
37 | padding: 5px; | |
38 | margin-top: -2px; | |
39 | } | |
22a16e36 | 40 | } |
aa0f1963 RK |
41 | } |
42 | ||
d39db21a RK |
43 | .margin-content { |
44 | // margin-content is required, but child views have their own margins | |
45 | // that match views outside the scope of accounts, so we only align | |
46 | // them with the margins of .sub-menu when required. | |
47 | margin: 0; | |
48 | } | |
49 | ||
aa0f1963 RK |
50 | .right-buttons { |
51 | display: flex; | |
52 | height: max-content; | |
53 | margin-left: auto; | |
947d0102 | 54 | margin-top: 10px; |
aa0f1963 | 55 | |
9b8a7aa8 RK |
56 | grid-row: buttons-start / span buttons-end; |
57 | grid-column: buttons-start; | |
58 | ||
947d0102 RK |
59 | @include media-breakpoint-down(lg) { |
60 | flex-flow: column-reverse; | |
61 | ||
62 | a { | |
63 | margin-top: 0.25rem; | |
64 | margin-right: 0 !important; | |
65 | } | |
66 | } | |
67 | ||
aa0f1963 RK |
68 | a { |
69 | @include peertube-button-outline; | |
70 | line-height: 1.8; | |
71 | } | |
72 | ||
73 | my-subscribe-button { | |
74 | height: min-content; | |
75 | } | |
4c1c1709 | 76 | } |
4682468d K |
77 | |
78 | @media screen and (max-width: $mobile-view) { | |
79 | .sub-menu { | |
80 | .actor { | |
81 | flex-direction: column; | |
82 | ||
83 | .actor-info .actor-names { | |
84 | flex-direction: column; | |
85 | align-items: normal; | |
86 | } | |
87 | } | |
88 | } | |
89 | } |