]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame_incremental - client/src/sass/bootstrap.scss
Add notifications popover and tooltips to the z-index table
[github/Chocobozzz/PeerTube.git] / client / src / sass / bootstrap.scss
... / ...
CommitLineData
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
12.flex-auto {
13 flex: auto;
14}
15
16@keyframes spin {
17 from {
18 transform: scale(1) rotate(0deg);
19 }
20 to {
21 transform: scale(1) rotate(360deg);
22 }
23}
24
25/* rules for dropdowns excepts when in button group, to avoid impacting the dropdown-toggle */
26.dropdown:not(.btn-group) {
27 z-index: z(dropdown) !important;
28}
29
30.dropdown-menu {
31 z-index: z(dropdown) !important;
32 border-radius: 3px;
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);
34 font-size: 15px;
35
36 .dropdown-item {
37 padding: 3px 15px;
38
39 &.active {
40 color: var(--mainBackgroundColor) !important;
41 background-color: var(--mainHoverColor);
42 opacity: .9;
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
56
57@media screen and (min-width: #{map-get($grid-breakpoints, md)}) {
58 .modal:before {
59 vertical-align: middle;
60 content: " ";
61 height: 100%;
62 }
63
64 .modal-dialog {
65 text-align: left;
66 vertical-align: middle;
67 min-width: 500px;
68 width: 40vw;
69 max-width: 900px;
70 }
71}
72
73.modal {
74 text-align: center;
75
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
143ngb-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
163.card {
164 background-color: var(--mainBackgroundColor);
165 border-color: #dee2e6;
166}
167
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}
179
180.dropdown-divider {
181 margin: 0.3rem 0;
182}
183
184ngb-modal-backdrop {
185 z-index: z(modal) - 1 !important;
186}
187
188ngb-modal-window {
189 z-index: z(modal) !important;
190}
191
192ngb-popover-window {
193 z-index: z(popover) !important;
194}
195
196ngb-tooltip-window {
197 z-index: z(tooltip) !important;
198}
199
200.btn-outline-tertiary {
201 color: var(--secondaryColor);
202 border-color: var(--secondaryColor);
203
204 &:hover {
205 color: var(--mainBackgroundColor);
206 background-color: var(--secondaryColor);
207 }
208}