]>
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) { | |
36f2981f | 31 | z-index: z(dropdown) !important; |
eb7c7a51 RK |
32 | } |
33 | ||
2f4c784a | 34 | .dropdown-menu { |
757ffdfe | 35 | z-index: z(dropdown) !important; |
2f4c784a | 36 | border-radius: 3px; |
6f6e89db | 37 | 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 |
38 | font-size: 15px; |
39 | ||
40 | .dropdown-item { | |
41 | padding: 3px 15px; | |
42 | ||
24e7916c RK |
43 | &.active { |
44 | color: var(--mainBackgroundColor) !important; | |
45 | background-color: var(--mainHoverColor); | |
46 | opacity: .9; | |
2f4c784a | 47 | } |
d3217560 RK |
48 | |
49 | &::after { | |
50 | display: none; | |
51 | } | |
2f4c784a C |
52 | } |
53 | ||
54 | button { | |
55 | @include disable-default-a-behaviour; | |
56 | } | |
57 | ||
58 | a { | |
59 | @include disable-default-a-behaviour; | |
60 | color: #000 !important; | |
61 | } | |
62 | } | |
63 | ||
3921166d | 64 | |
9b8a7aa8 | 65 | @media screen and (min-width: #{map-get($grid-breakpoints, md)}) { |
3921166d | 66 | .modal:before { |
3921166d RK |
67 | vertical-align: middle; |
68 | content: " "; | |
69 | height: 100%; | |
70 | } | |
71 | ||
72 | .modal-dialog { | |
3921166d RK |
73 | text-align: left; |
74 | vertical-align: middle; | |
75 | min-width: 500px; | |
76 | width: 40vw; | |
77 | max-width: 900px; | |
78 | } | |
79 | } | |
80 | ||
2f4c784a | 81 | .modal { |
3921166d RK |
82 | text-align: center; |
83 | ||
2f4c784a C |
84 | .modal-content { |
85 | background-color: var(--mainBackgroundColor); | |
86 | } | |
87 | ||
88 | .modal-header { | |
89 | border-bottom: none; | |
90 | margin-bottom: 5px; | |
91 | ||
92 | .modal-title { | |
93 | font-size: 20px; | |
94 | font-weight: $font-semibold; | |
95 | } | |
96 | ||
97 | my-global-icon { | |
98 | @include icon(24px); | |
99 | ||
100 | position: relative; | |
101 | top: 3px; | |
102 | float: right; | |
103 | ||
104 | margin: 0; | |
105 | padding: 0; | |
106 | opacity: 1; | |
107 | } | |
108 | } | |
109 | ||
110 | .inputs { | |
111 | margin-bottom: 0; | |
112 | text-align: right; | |
113 | ||
114 | .action-button-cancel { | |
115 | @include peertube-button; | |
116 | @include grey-button; | |
117 | ||
118 | display: inline-block; | |
119 | margin-right: 10px; | |
120 | } | |
121 | ||
122 | .action-button-submit { | |
123 | @include peertube-button; | |
124 | @include orange-button; | |
125 | } | |
126 | } | |
127 | } | |
128 | ||
129 | // Nav customizations | |
130 | .nav .nav-link { | |
131 | display: flex !important; | |
132 | align-items: center; | |
133 | height: 30px !important; | |
134 | padding: 10px 15px !important; | |
135 | } | |
136 | ||
137 | .nav.nav-pills { | |
138 | font-size: 16px !important; | |
139 | ||
140 | .nav-link.active { | |
141 | font-weight: $font-semibold !important; | |
142 | } | |
143 | ||
144 | a { | |
145 | @include disable-default-a-behaviour; | |
146 | ||
147 | color: var(--mainForegroundColor); | |
148 | } | |
149 | } | |
150 | ||
151 | ngb-tabset.bootstrap { | |
152 | ||
153 | .nav-link { | |
154 | &, & a { | |
155 | @include disable-default-a-behaviour; | |
156 | ||
157 | color: var(--mainForegroundColor) !important; | |
158 | } | |
159 | } | |
160 | ||
161 | .nav-pills .nav-link.active { | |
162 | color: #000 !important; | |
163 | } | |
164 | } | |
165 | ||
166 | .nav-tabs .nav-link.active { | |
167 | background-color: var(--mainBackgroundColor) !important; | |
168 | border-bottom: none; | |
169 | } | |
170 | ||
a4610bc6 JM |
171 | .card { |
172 | background-color: var(--mainBackgroundColor); | |
173 | border-color: #dee2e6; | |
174 | } | |
175 | ||
2f4c784a C |
176 | .collapse-transition { |
177 | // Animation when we show/hide the filters | |
178 | transition: max-height 0.3s; | |
179 | display: block !important; | |
180 | overflow: hidden !important; | |
181 | max-height: 0; | |
182 | ||
183 | &.show { | |
184 | max-height: 1500px; | |
185 | } | |
186 | } | |
bc584963 RK |
187 | |
188 | .dropdown-divider { | |
189 | margin: 0.3rem 0; | |
000eb0e4 RK |
190 | } |
191 | ||
192 | ngb-modal-backdrop { | |
36f2981f RK |
193 | z-index: z(modal) - 1 !important; |
194 | } | |
195 | ||
196 | ngb-modal-window { | |
197 | z-index: z(modal) !important; | |
000eb0e4 | 198 | } |
aa0f1963 | 199 | |
757ffdfe RK |
200 | ngb-popover-window { |
201 | z-index: z(popover) !important; | |
202 | } | |
203 | ||
204 | ngb-tooltip-window { | |
205 | z-index: z(tooltip) !important; | |
206 | } | |
207 | ||
aa0f1963 | 208 | .btn-outline-tertiary { |
a3705089 | 209 | color: var(--secondaryColor); |
aa0f1963 | 210 | border-color: var(--secondaryColor); |
a3705089 | 211 | |
aa0f1963 RK |
212 | &:hover { |
213 | color: var(--mainBackgroundColor); | |
214 | background-color: var(--secondaryColor); | |
215 | } | |
216 | } |