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