]>
Commit | Line | Data |
---|---|---|
2f4c784a C |
1 | $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/'; |
2 | @import '_bootstrap'; | |
3 | ||
4 | @import '_variables'; | |
5 | @import '_mixins'; | |
6 | ||
7 | // Thanks https://gist.github.com/alexandrevicenzi/680147013e902a4eaa5d | |
8 | .glyphicon-refresh-animate { | |
9 | animation: spin .7s infinite linear; | |
10 | } | |
11 | ||
f409f0c3 RK |
12 | .flex-auto { |
13 | flex: auto; | |
14 | } | |
15 | ||
d3217560 RK |
16 | .c-hand { |
17 | cursor: pointer; | |
18 | } | |
19 | ||
2f4c784a | 20 | @keyframes spin { |
a3705089 C |
21 | from { |
22 | transform: scale(1) rotate(0deg); | |
23 | } | |
24 | to { | |
25 | transform: scale(1) rotate(360deg); | |
26 | } | |
2f4c784a C |
27 | } |
28 | ||
757ffdfe RK |
29 | /* rules for dropdowns excepts when in button group, to avoid impacting the dropdown-toggle */ |
30 | .dropdown:not(.btn-group) { | |
26ede95e RK |
31 | &:not(.parent-entry) { |
32 | z-index: z(dropdown) !important; | |
33 | } | |
34 | ||
35 | &.parent-entry { | |
36 | z-index: z(header) - 1; | |
37 | } | |
eb7c7a51 RK |
38 | } |
39 | ||
2f4c784a | 40 | .dropdown-menu { |
757ffdfe | 41 | z-index: z(dropdown) !important; |
2f4c784a | 42 | border-radius: 3px; |
6f6e89db | 43 | box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); |
2f4c784a C |
44 | font-size: 15px; |
45 | ||
46 | .dropdown-item { | |
47 | padding: 3px 15px; | |
48 | ||
24e7916c RK |
49 | &.active { |
50 | color: var(--mainBackgroundColor) !important; | |
51 | background-color: var(--mainHoverColor); | |
52 | opacity: .9; | |
2f4c784a | 53 | } |
d3217560 RK |
54 | |
55 | &::after { | |
56 | display: none; | |
57 | } | |
2f4c784a C |
58 | } |
59 | ||
60 | button { | |
61 | @include disable-default-a-behaviour; | |
62 | } | |
63 | ||
64 | a { | |
65 | @include disable-default-a-behaviour; | |
66 | color: #000 !important; | |
67 | } | |
68 | } | |
69 | ||
3921166d | 70 | |
9b8a7aa8 | 71 | @media screen and (min-width: #{map-get($grid-breakpoints, md)}) { |
3921166d | 72 | .modal:before { |
3921166d RK |
73 | vertical-align: middle; |
74 | content: " "; | |
75 | height: 100%; | |
76 | } | |
77 | ||
78 | .modal-dialog { | |
3921166d RK |
79 | text-align: left; |
80 | vertical-align: middle; | |
81 | min-width: 500px; | |
82 | width: 40vw; | |
83 | max-width: 900px; | |
84 | } | |
85 | } | |
86 | ||
2f4c784a | 87 | .modal { |
3921166d RK |
88 | text-align: center; |
89 | ||
2f4c784a C |
90 | .modal-content { |
91 | background-color: var(--mainBackgroundColor); | |
92 | } | |
93 | ||
94 | .modal-header { | |
95 | border-bottom: none; | |
96 | margin-bottom: 5px; | |
97 | ||
98 | .modal-title { | |
99 | font-size: 20px; | |
100 | font-weight: $font-semibold; | |
101 | } | |
102 | ||
103 | my-global-icon { | |
54e78847 | 104 | @include icon(22px); |
2f4c784a C |
105 | |
106 | position: relative; | |
54e78847 | 107 | top: 5px; |
2f4c784a C |
108 | float: right; |
109 | ||
110 | margin: 0; | |
111 | padding: 0; | |
54e78847 | 112 | opacity: .5; |
2f4c784a C |
113 | } |
114 | } | |
115 | ||
116 | .inputs { | |
117 | margin-bottom: 0; | |
118 | text-align: right; | |
119 | ||
120 | .action-button-cancel { | |
121 | @include peertube-button; | |
54e78847 | 122 | @include tertiary-button; |
2f4c784a C |
123 | |
124 | display: inline-block; | |
125 | margin-right: 10px; | |
126 | } | |
127 | ||
128 | .action-button-submit { | |
129 | @include peertube-button; | |
130 | @include orange-button; | |
131 | } | |
132 | } | |
133 | } | |
134 | ||
135 | // Nav customizations | |
136 | .nav .nav-link { | |
137 | display: flex !important; | |
138 | align-items: center; | |
139 | height: 30px !important; | |
140 | padding: 10px 15px !important; | |
141 | } | |
142 | ||
143 | .nav.nav-pills { | |
144 | font-size: 16px !important; | |
145 | ||
146 | .nav-link.active { | |
147 | font-weight: $font-semibold !important; | |
148 | } | |
149 | ||
150 | a { | |
151 | @include disable-default-a-behaviour; | |
152 | ||
153 | color: var(--mainForegroundColor); | |
154 | } | |
155 | } | |
156 | ||
157 | ngb-tabset.bootstrap { | |
158 | ||
159 | .nav-link { | |
160 | &, & a { | |
161 | @include disable-default-a-behaviour; | |
162 | ||
163 | color: var(--mainForegroundColor) !important; | |
164 | } | |
165 | } | |
166 | ||
167 | .nav-pills .nav-link.active { | |
168 | color: #000 !important; | |
169 | } | |
170 | } | |
171 | ||
758f0d19 RK |
172 | .nav-tabs .nav-link { |
173 | &:not(.active) { | |
174 | opacity: .6; | |
175 | border-bottom: 3px solid transparent; | |
176 | } | |
177 | &.active { | |
178 | background-color: var(--mainBackgroundColor) !important; | |
179 | border: none; | |
180 | border-bottom: 2px solid var(--mainColor); | |
181 | } | |
182 | &:hover { | |
183 | border-top-color: transparent; | |
184 | border-left-color: transparent; | |
185 | border-right-color: transparent; | |
186 | } | |
2f4c784a C |
187 | } |
188 | ||
a4610bc6 JM |
189 | .card { |
190 | background-color: var(--mainBackgroundColor); | |
191 | border-color: #dee2e6; | |
192 | } | |
193 | ||
2f4c784a C |
194 | .collapse-transition { |
195 | // Animation when we show/hide the filters | |
196 | transition: max-height 0.3s; | |
197 | display: block !important; | |
198 | overflow: hidden !important; | |
199 | max-height: 0; | |
200 | ||
201 | &.show { | |
202 | max-height: 1500px; | |
203 | } | |
204 | } | |
bc584963 RK |
205 | |
206 | .dropdown-divider { | |
207 | margin: 0.3rem 0; | |
000eb0e4 RK |
208 | } |
209 | ||
210 | ngb-modal-backdrop { | |
36f2981f RK |
211 | z-index: z(modal) - 1 !important; |
212 | } | |
213 | ||
214 | ngb-modal-window { | |
215 | z-index: z(modal) !important; | |
000eb0e4 | 216 | } |
aa0f1963 | 217 | |
757ffdfe RK |
218 | ngb-popover-window { |
219 | z-index: z(popover) !important; | |
220 | } | |
221 | ||
222 | ngb-tooltip-window { | |
223 | z-index: z(tooltip) !important; | |
224 | } | |
225 | ||
aa0f1963 | 226 | .btn-outline-tertiary { |
a3705089 | 227 | color: var(--secondaryColor); |
aa0f1963 | 228 | border-color: var(--secondaryColor); |
a3705089 | 229 | |
aa0f1963 RK |
230 | &:hover { |
231 | color: var(--mainBackgroundColor); | |
232 | background-color: var(--secondaryColor); | |
233 | } | |
234 | } |