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