Skip to content

Commit 2022c1d

Browse files
authored
Merge pull request #5 from maptiler/WM-320_upgrade_to_bootstrap_5
WM-320 upgrade to bootstrap 5
2 parents 3ea1ad7 + 9fb2c92 commit 2022c1d

16 files changed

+1037
-844
lines changed

base.scss

+3-40
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,9 @@
1-
@import "functions";
2-
@import "variables";
3-
@import "mixins";
4-
@import "root";
5-
@import "reboot";
6-
@import "type";
7-
@import "images";
8-
@import "code";
9-
@import "grid";
10-
@import "tables";
11-
@import "forms";
12-
@import "buttons";
13-
@import "transitions";
14-
@import "dropdown";
15-
@import "button-group";
16-
@import "input-group";
17-
@import "custom-forms";
18-
@import "nav";
19-
@import "navbar";
20-
@import "card";
21-
@import "breadcrumb";
22-
@import "pagination";
23-
@import "badge";
24-
@import "jumbotron";
25-
@import "alert";
26-
@import "progress";
27-
@import "media";
28-
@import "list-group";
29-
@import "close";
30-
@import "toasts";
31-
@import "modal";
32-
@import "tooltip";
33-
@import "popover";
34-
@import "carousel";
35-
@import "spinners";
36-
@import "utilities";
37-
@import "print";
1+
// Must add bootstrap imports before MapTiler ones:
382

39-
//maptiler styles
3+
// MapTiler Imports
404
@import "components/icon.scss";
415
@import "components/map.scss";
42-
@import "components/mt-web-components.scss"; //these are used on maptiler-web and miniweb only
6+
@import "components/mt-web-components.scss";
437
@import "components/rectangles.scss";
448
@import "components/navigation.scss";
459
@import "components/popup.scss";
@@ -50,7 +14,6 @@
5014
@import "components/pricing-table.scss";
5115
@import "components/loupe.scss";
5216
@import "components/double-number-list.scss";
53-
@import "components/skew.scss";
5417
@import "components/video-player.scss";
5518
@import "components/fix.scss";
5619
@import "components/utilities.scss";

components/custom-controls.scss

-24
This file was deleted.

components/fix.scss

+16
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ ul, ol{
6767
.form-control{
6868
height: auto;
6969
}
70+
p, h1, h2, h3, h4, h5, h6, {
71+
margin-top: $headings-margin-bottom;
72+
margin-bottom: $headings-margin-bottom;
73+
}
7074
// btn-stroke
7175
@each $color, $value in $theme-colors {
7276
.btn-outline-#{$color} {
@@ -106,3 +110,15 @@ ul, ol{
106110
[type=button], [type=reset], [type=submit], button {
107111
-webkit-appearance: none !important;
108112
}
113+
114+
.form-switch {
115+
.form-check-input {
116+
background-color: $gray-400;
117+
&:checked {
118+
background-color: $primary;
119+
}
120+
&.switch-equal{
121+
background-color: $primary;
122+
}
123+
}
124+
}

components/icon.scss

+6
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@
4949
background-image: url("#{$social-icon}medium-white.svg");
5050
}
5151
}
52+
&.github {
53+
color: #fff;
54+
&:before {
55+
background-image: url("#{$social-icon}github-white.svg");
56+
}
57+
}
5258

5359
&:not(.colored){
5460
&:before{

components/map.scss

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//map
2-
32
.map-fullscreen {
43
position: absolute;
54
top: 0;
@@ -140,7 +139,7 @@
140139
overflow-y: auto;
141140
position: fixed;
142141
left: 15px;
143-
top: 190px;
142+
top: 180px;
144143
z-index: 86;
145144
width: auto;
146145
height: auto;

components/mt-web-components.scss

+33-62
Original file line numberDiff line numberDiff line change
@@ -231,75 +231,46 @@
231231
.banner-martin {
232232
bottom: -72px;
233233
}
234-
235-
.carousel-control-next,
236-
.carousel-control-prev {
237-
@include media-breakpoint-down(lg){
238-
width: 20%;
239-
}
240-
&:after {
241-
@include media-breakpoint-down(lg){
242-
display: none;
234+
// home Carousel
235+
#homeCarousel{
236+
.home-pagination{
237+
justify-content: flex-start;
238+
padding: 0;
239+
.home-pagination-btn{
240+
margin: 0 6px;
241+
border: 0;
242+
width: 8px;
243+
height: 8px;
244+
border-radius: 50%;
245+
padding: 0;
246+
color: currentColor;
247+
opacity: .3;
248+
&.is-active{
249+
opacity: 1;
250+
}
243251
}
244252
}
245253
}
246-
.carousel-control-prev-icon,
247-
.carousel-control-next-icon {
248-
width: 50px;
249-
height: 50px;
250-
background-color: white;
251-
border-radius: 50%;
252-
box-shadow: $box-shadow;
253-
@include media-breakpoint-down(lg){
254-
display: none;
255-
}
256-
}
257-
.carousel-inner {
258-
@include media-breakpoint-up(lg){
259-
padding: 0 55px;
260-
}
261-
}
254+
.mt-slide-arrow{
255+
color: $primary;
256+
background: white;
257+
border: 0;
258+
border-radius: 50%;
259+
width: 50px;
260+
height: 50px;
261+
box-shadow: $box-shadow;
262+
top: 50%;
263+
transform: translateY(-50%);
264+
position: absolute;
265+
z-index: 1010;
262266

263-
264-
// homepage carousel
265-
#HomeSlide {
266-
.carousel-indicators {
267-
margin: 0;
268-
bottom: -50px;
269-
@include media-breakpoint-up(sm) {
270-
right: unset;
271-
bottom: 20px;
272-
}
273-
& .active {
274-
opacity: 1;
275-
}
276-
li {
277-
background-color: currentcolor;
278-
width: 8px;
279-
height: 8px;
280-
margin: 0 6px;
281-
border-radius: 50%;
282-
opacity: 0.3;
283-
}
267+
&.mt-slide-prev{
268+
left: -25px;
284269
}
285-
.carousel-item {
286-
&.active {
287-
opacity: 1;
288-
transition: 0.25s;
289-
}
290-
opacity: 0;
291-
transform: none;
292-
}
293-
.carousel-item.active.carousel-item-left,
294-
.carousel-item.active.carousel-item-right {
295-
opacity: 0;
296-
}
297-
.carousel-item.carousel-item-next,
298-
.carousel-item.carousel-item-prev {
299-
opacity: 0;
270+
&.mt-slide-next{
271+
right: -25px;
300272
}
301273
}
302-
303274
// misc
304275
.customer-logo-link{
305276
color: #AEB6C7;

components/navigation.scss

+23-1
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,9 @@
237237
color: $dark;
238238
display: block;
239239
margin: 10px 0;
240+
&:hover{
241+
color: $primary;
242+
}
240243
}
241244
}
242245
.mt-copyright{
@@ -254,7 +257,7 @@
254257
.nav-secondary-link {
255258
@extend .nav-item;
256259
@extend .nav-link;
257-
margin: 0 10px;
260+
margin: 0 5px;
258261
font-weight: $font-weight-bold;
259262
font-size: 14px;
260263
text-transform: uppercase;
@@ -283,3 +286,22 @@
283286
}
284287
}
285288
}
289+
// product border colors
290+
.border-nav-cloud{
291+
border-color: #B5D4FA !important;
292+
}
293+
.border-nav-desktop{
294+
border-color: #D1C4E9 !important;
295+
}
296+
.border-nav-engine{
297+
border-color: #F1BB93 !important;
298+
}
299+
.border-nav-mobile{
300+
border-color: #B5F8FD !important;
301+
}
302+
.border-nav-server{
303+
border-color: #FBB8BB !important;
304+
}
305+
.border-nav-data{
306+
border-color: #B9E8B0 !important;
307+
}

components/pricing-table.scss

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454

5555
.plans-table {
5656
width: 100%;
57+
position: relative;
5758
tbody{
5859
tr:last-child{
5960
td:last-child{
@@ -78,7 +79,7 @@
7879
z-index: 2;
7980
background: $primary;
8081
color: white;
81-
top: -25px;
82+
top: -45px;
8283
display: block;
8384
padding: 10px 56px;
8485
border-top-left-radius: 6px;

0 commit comments

Comments
 (0)