Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 6b7c4d1c

Přidáno uživatelem Martin Sebela před více než 3 roky(ů)

Re #8163 - CSS, JS refactoring

Zobrazit rozdíly:

website/public/css/style.scss
11 11

  
12 12
$primary-text-color: #ffffff;
13 13

  
14
$heatmap-nav-border-color: #1C6CC0;
15
$heatmap-nav-button-bg-color: #0057be;
16

  
14 17
$images-dir: '../img/';
15 18

  
16 19

  
......
154 157
      background: $primary-bg-color !important;
155 158
    }
156 159
  }
157

  
158
  // NAVIGACE NA STRÁNCE S MAPOU
159
  &.map {
160
    @include media-breakpoint-down(md) {
161
      .navbar-nav {
162
        width: 100%;
163
      }
164
    }
165

  
166
    form {
167
      display: flex;
168
      margin: auto;
169
    }
170

  
171
    label {
172
      margin: 0 0 0 15px;
173
      font-size: 16px;
174
      letter-spacing: .4px;
175
    }
176

  
177
    input, .custom-select {
178
      letter-spacing: .4px;
179
      color: $primary-text-color;
180
      border-color: $primary-bg-color;
181
      background: $primary-bg-color;
182

  
183
      &::placeholder {
184
        color: $primary-text-color;
185
        opacity: 1;
186
      }
187
    }
188

  
189
    .nav-item {
190
      margin: 0;
191
      border-right: 1px solid #1C6CC0;
192

  
193
      @include media-breakpoint-down(md) {
194
        margin-bottom: 20px;
195
        border: 0;
196
      }
197

  
198
      &:nth-of-type(3) {
199
        .dropdown {
200
          height: calc(100% + 10px) !important;
201
          margin: -5px;
202
          margin-top: -7px;
203

  
204
          .dropdown-menu {
205
            top: calc(100% - 4px);
206
          }
207

  
208
          button {
209
            padding-left: 20px;
210
            border-radius: 0;
211
          }
212

  
213
          @include media-breakpoint-down(md) {
214
            height: 100% !important;
215
            margin: 0px;
216
            flex-direction: column;
217

  
218
            button {
219
              padding-left: 12px;
220
              border-radius: 5px;
221
            }
222
          }
223
        }
224
      }
225

  
226
      @include media-breakpoint-down(md) {
227
        &:nth-of-type(4) {
228
          border-radius: 5px;
229
        }
230
      }
231

  
232
      &:nth-of-type(1), &:nth-of-type(2), &:nth-of-type(3) {
233
        width: 300px;
234
        
235
        @media (max-width: 1500px) {
236
          width: 280px;
237
        }
238

  
239
        @media (max-width: 1400px) {
240
          width: 230px;
241
        }
242

  
243
        @media (max-width: 1400px) {
244
          max-width: 230px;
245
          width: auto;
246
        }
247

  
248
        @include media-breakpoint-down(md) {
249
          max-width: none;
250
        }
251
      }
252
    }
253
  }
254 160
}
255 161

  
256 162
h1 {
......
653 559
  }
654 560
}
655 561

  
562

  
563
// DODATEČNÉ POZADÍ NA KAŽDÉM ZE SLIDŮ
564
.slide-background {
565
  width: 650px;
566
  height: 290px;
567
  z-index: 1;
568
  position: absolute;
569
  bottom: 0;
570
  left: 0;
571
  background: url($images-dir + 'footer-bg.svg') no-repeat;
572

  
573
  @include media-breakpoint-down(md) {
574
    width: 320px;
575
    height: 143px;
576
    background-size: 100%;
577
  }
578
}
579

  
580

  
581
// COPYRIGHT
582
div.copyright {
583
  p {
584
    font-weight: 400;
585
  }
586

  
587
  span {
588
    font-size: 17px;
589
  }
590
}
591

  
592

  
593
// LOGA V SEKCI "O PROJEKTU"
594
p.logos-partners {
595
  margin-top: 40px;
596
  text-align: right;
597

  
598
  a {
599
    text-decoration: none;
600

  
601
    img {
602
      margin-left: 50px;
603
      height: 80px;
604

  
605
      @media only screen and (max-width: 430px) {
606
        height: 70px;
607
        margin-left: 0;
608
      }
609

  
610
      @media only screen and (max-width: 340px) {
611
        height: 60px;
612
      }
613
    }
614

  
615
    &:first-of-type img {
616
      margin-left: 0;
617
    }
618
  }
619
}
620

  
621

  
622

  
623
// ---------------------------------------- HEATMAPA ----------------------------------------
624

  
625

  
626
// WRAPPER HEATMAPY
656 627
#heatmap {
657 628
  height: 100%;
658 629
}
659 630

  
660 631

  
661
// SEZNAM LOKACÍ NA MAPĚ
632
// HLAVIČKA (FORMULÁŘ) NA STRÁNCE S HEATMAPOU
633
header.map {
634
  @include media-breakpoint-down(md) {
635
    .navbar-nav {
636
      width: 100%;
637
    }
638
  }
639

  
640
  form {
641
    display: flex;
642
    margin: auto;
643
  }
644

  
645
  label {
646
    margin: 0 0 0 15px;
647
    font-size: 16px;
648
    letter-spacing: .4px;
649
  }
650

  
651
  input {
652
    letter-spacing: .4px;
653
    color: $primary-text-color;
654
    border-color: $primary-bg-color;
655
    background: $primary-bg-color;
656

  
657
    &::placeholder {
658
      color: $primary-text-color;
659
      opacity: 1;
660
    }
661
  }
662

  
663
  // JEDNOTLIVÉ POLOŽKY FORMULÁŘE
664
  .nav-item {
665
    padding: 5px;
666
    margin: auto 0;
667
    border-right: 1px solid $heatmap-nav-border-color;
668

  
669
    @include media-breakpoint-down(md) {
670
      margin-bottom: 10px;
671
      border: 0;
672
    }
673

  
674
    &:nth-of-type(1), &:nth-of-type(2), &:nth-of-type(3) {
675
      width: 300px;
676
      
677
      @media (max-width: 1500px) {
678
        width: 280px;
679
      }
680

  
681
      @media (max-width: 1400px) {
682
        width: 230px;
683
      }
684

  
685
      @media (max-width: 1400px) {
686
        max-width: 230px;
687
        width: auto;
688
      }
689

  
690
      @include media-breakpoint-down(md) {
691
        max-width: none;
692
      }
693
    }
694

  
695
    // WRAPPER U VÝBĚRU DATOVÝCH SAD
696
    &:nth-child(3) {
697
      padding: 0;
698
      margin: 0;
699
      border: 0;
700

  
701
      @include media-breakpoint-down(md) {
702
        padding: 5px;
703
      }
704

  
705
      .dropdown {
706
        display: flex;
707
        height: 100%;
708

  
709
        @include media-breakpoint-down(md) {
710
          flex-direction: column;
711
        }
712

  
713
        .dropdown-menu {
714
          top: calc(100% - 5px);
715
        }
716

  
717
        button {
718
          padding-left: 20px;
719
          border-radius: 0;
720

  
721
          @include media-breakpoint-down(md) {
722
            padding-left: 12px;
723
            border-radius: 5px;
724
          }
725
        }
726
      }
727
    }
728

  
729
    // TLAČÍTKO PRO ODESLÁNÍ FORMULÁŘE PRO ZMĚNU PARAMETRŮ HEATMAPY
730
    &:last-child {
731
      margin-top: 0;
732
      margin-bottom: 0;
733
      border-left: 1px solid $heatmap-nav-border-color;
734
      background: $heatmap-nav-button-bg-color;
735

  
736
      @include media-breakpoint-down(md) {
737
        margin: 10px 5px 0 5px;
738
        border-radius: 5px;
739
        border: 0;
740
      }
741

  
742
      &:hover {
743
        background: $primary-bg-color-darker;
744
      }
745
    
746
      .btn-secondary {
747
        display: inline-block;
748
        outline: none;
749
        padding: 0 30px;
750
        background: url($images-dir + 'btn-refresh.svg') no-repeat center center;
751

  
752
        &:hover {
753
          background: url($images-dir + 'btn-refresh.svg') no-repeat center center !important;
754
        }
755

  
756
        @include media-breakpoint-down(md) {
757
          width: 100%;
758
          padding: 20px;
759
          border-radius: 5px;
760
        }
761
      }
762
    }
763

  
764
    // DATEPICKER
765
    input {
766
      &:hover {
767
        background: rgba(255, 255, 255, .2);
768
      }
769

  
770
      &:focus {
771
        background: $primary-text-color;
772
        color: $black;
773
      }
774
    }
775

  
776
    // MENU PRO VÝBĚR ČASU/DATOVÝCH SAD
777
    .dropdown {
778
      min-width: 200px;
779

  
780
      .btn {
781
        width: 100%;
782
        text-align: left;
783
        letter-spacing: .4px;
784
        color: $primary-text-color;
785
        background: $primary-bg-color;
786

  
787
        &:hover {
788
          background: $input-bg-hover;
789
        }
790
      }
791

  
792
      .dropdown-menu {
793
        width: 100%;
794
        max-height: 300px;
795
        overflow-y: auto;
796
        z-index: 1001;
797

  
798
        .dropdown-item {
799
          &:active {
800
            background: $primary-bg-color;
801
          }
802
          
803
          label {
804
            width: 100% !important;
805
            margin-left: 0;
806
            cursor: pointer;
807
          }
808
        }
809
      }
810

  
811
      #dropdown-time .dropdown-item:nth-of-type(even) {
812
        background: rgba(0,0,0,.05);
813

  
814
        &:active {
815
          background: $primary-bg-color;
816
        }
817
      }
818

  
819
      input[type="radio"]:checked ~ label {
820
        font-weight: 800;
821
      }
822
    }
823
  }
824
}
825

  
826

  
827
// MENU SE SEZNAMEM LOKACÍ NA MAPĚ
662 828
.map-locations {
663 829
  position: absolute;
664 830
  top: 95px;
......
667 833
  border-radius: 22px;
668 834
  background-color: rgba(11, 21, 90, .7);
669 835

  
836
  // KRATŠÍ NADPIS PRO MENŠÍ ROZLIŠENÍ
670 837
  .mobile {
671 838
    display: none;
672 839
  }
......
691 858
    right: 10px;
692 859
  }
693 860

  
861
  // NADPIS PRO OTEVŘENÍ / SKRYTÍ SEZNAMU LOKACÍ
694 862
  .menu {
695 863
    width: 100%;
696 864
    display: inline-block;
......
701 869
    opacity: 1;
702 870
    background: $secondary-bg-color;
703 871

  
872
    // IKONKA V NADPISU
704 873
    .circle {
705 874
      display: inline-block;
706 875
      width: 40px;
......
724 893
    }
725 894
  }
726 895

  
896
  // SEZNAM LOKACÍ
727 897
  .locations {
728 898
    z-index: 1000;
729 899

  
......
769 939
    bottom: -30px;
770 940
  }
771 941

  
942
  // TLAČÍTKA PRO OVLÁDÁNÍ ANIMACE HEATMAPY
772 943
  .next-btn, .prev-btn, .animate-btn, .lock-btn {
773 944
    display: inline-block;
774 945
    width: 42px;
......
782 953
    background: $secondary-bg-color;
783 954
    cursor: pointer;
784 955

  
956
    @media (max-width: 320px) {
957
      margin-right: 15px;
958
    }
959

  
785 960
    &:hover {
786 961
      opacity: 1;
787 962
    }
......
797 972
    }
798 973
  }
799 974

  
975
  // TLAČÍTKO START / STOP ANIMACE
800 976
  .animate-btn {
801 977
    width: 57px;
802 978
    height: 57px;
......
827 1003
    }
828 1004
  }
829 1005

  
1006
  // TLAČÍTKO DALŠÍ KROK ANIMACE
830 1007
  .next-btn {
831 1008
    @include media-breakpoint-down(md) {
832 1009
      order: 3;
......
841 1018
    }
842 1019
  }
843 1020

  
1021
  // TLAČÍTKO PŘEDCHOZÍ KROK ANIMACE
844 1022
  .prev-btn {
845 1023
    @include media-breakpoint-down(md) {
846 1024
      order: 2;
......
851 1029
    }
852 1030
  }
853 1031

  
1032
  // WRAPPER ČASOVÉ OSY
854 1033
  .timeline-wrapper {
855 1034
    display: flex;
856 1035
    
......
861 1040
    }
862 1041
  }
863 1042

  
1043
  // DATUM
864 1044
  .date {
865 1045
    display: flex;
866 1046
    align-items: center;
......
901 1081
      padding: 3px 6px 4px 12px;
902 1082
    }
903 1083

  
1084
    // ZÁMEČEK PRO UZAMČENÍ ANIMACE V KONKRÉTNÍM DATU
904 1085
    .lock-btn {
905 1086
      width: 26px;
906 1087
      height: 26px;
......
923 1104
    }
924 1105
  }
925 1106

  
1107
  // ČASOVÁ OSA
926 1108
  .timeline {
927 1109
    display: flex;
928 1110
    height: 30px;
......
942 1124
      margin: 4px 0 0 0;
943 1125
    }
944 1126

  
1127
    // JEDEN DÍLEK ČASOVÉ OSY
945 1128
    .hour {
946 1129
      cursor: pointer;
947 1130

  
......
973 1156
      }
974 1157
    }
975 1158

  
1159
    // POSLEDNÍ DÍLEK ČASOVÉ OSY
976 1160
    .end-dot:before {
977 1161
      content: "";
978 1162
      display: inline-block;
......
988 1172
    }
989 1173
  }
990 1174

  
1175
  // ČAS NA ČASOVÉ OSE
991 1176
  .time {
992 1177
    display: flex;
993 1178
    justify-content: center;
......
1000 1185
    cursor: ew-resize;
1001 1186
    background: $secondary-bg-color;
1002 1187

  
1003
    .custom-spinner-border {
1004
      margin: 3px 0 4px 0;
1005
    }
1006

  
1007 1188
    @include media-breakpoint-up(lg) {
1008 1189
      position: absolute;
1009 1190

  
......
1032 1213
      &.hour-22 {left: 550px;}
1033 1214
      &.hour-23 {left: 585px;}
1034 1215
    }
1035
  }
1036
}
1037

  
1038

  
1039
.slide-background {
1040
  width: 650px;
1041
  height: 290px;
1042
  z-index: 1;
1043
  position: absolute;
1044
  bottom: 0;
1045
  left: 0;
1046
  background: url($images-dir + 'footer-bg.svg') no-repeat;
1047

  
1048
  @include media-breakpoint-down(md) {
1049
    width: 320px;
1050
    height: 143px;
1051
    background-size: 100%;
1052
  }
1053
}
1054

  
1055

  
1056
// COPYRIGHT
1057
div.copyright {
1058
  p {
1059
    font-weight: 400;
1060
  }
1061

  
1062
  span {
1063
    font-size: 17px;
1064
  }
1065
}
1066

  
1067

  
1068
// LOGA V SEKCI "O PROJEKTU"
1069
p.logos-partners {
1070
  margin-top: 40px;
1071
  text-align: right;
1072

  
1073
  a {
1074
    text-decoration: none;
1075

  
1076
    img {
1077
      margin-left: 50px;
1078
      height: 80px;
1079

  
1080
      @media only screen and (max-width: 430px) {
1081
        height: 70px;
1082
        margin-left: 0;
1083
      }
1084

  
1085
      @media only screen and (max-width: 340px) {
1086
        height: 60px;
1087
      }
1088
    }
1089 1216

  
1090
    &:first-of-type img {
1091
      margin-left: 0;
1217
    // NAČÍTÁNÍ
1218
    .custom-spinner-border {
1219
      margin: 3px 0 4px 0;
1092 1220
    }
1093 1221
  }
1094 1222
}
......
1099 1227
  font-family: 'Be Vietnam', sans-serif;
1100 1228
  text-align: center;
1101 1229
  color: $primary-text-color;
1102
}
1103 1230

  
1104
.leaflet-popup-content-wrapper {
1105
  .leaflet-popup-content strong {
1231
  // INFORMACE O LOKACI / NÁZEV DATASETU
1232
  strong {
1106 1233
    display: inline-block;
1107 1234
    margin-bottom: 8px;
1108 1235
  }
1109 1236

  
1110
  .popup-controls {
1237
  // HODNOTA V POPUPU
1238
  #place-intesity {
1239
    display: flex;
1240
    align-items: center;
1241
    justify-content: center;
1242
    font-family: monospace;
1243
    font-size: 24pt;
1244
    font-weight: 700;
1245

  
1246
    #sum-number {
1247
      margin-left: 5px;
1248
      font-size: 11pt;
1249
    }
1250
  }
1251

  
1252
  // STRÁNKOVÁNÍ V POPUPU
1253
  .popup-pagination {
1111 1254
    display: flex;
1112 1255
    margin: 1em 0 1em 0;
1113 1256

  
1114
    .circle-button {
1257
    button {
1115 1258
      height: 32px;
1116 1259
      width: 32px;
1117 1260
      border: 0;
......
1132 1275
        }
1133 1276
      }
1134 1277
    }
1135
  }
1136

  
1137
  #place-intesity {
1138
    display: flex;
1139
    align-items: center;
1140
    justify-content: center;
1141
    font-family: monospace;
1142
    font-size: 24pt;
1143
    font-weight: 700;
1144
  }
1145

  
1146
  #part-info {
1147
    margin-left: 5px;
1148
    font-size: 11pt;
1149
  }
1150

  
1151
  #pages {
1152
    margin: auto;
1153
    color: $primary-text-color;
1154
  }
1155
}
1156

  
1157
// ÚPRAVA VZHLEDU HLAVIČKY NA STRÁNCE S HEATMAPOU
1158
header.map .nav-item {
1159
  padding: 5px;
1160
  margin-top: auto;
1161
  margin-bottom: auto;
1162

  
1163
  &:nth-child(3) {
1164
    margin-top: 0;
1165
    margin-bottom: 0;
1166
    border: 0;
1167

  
1168
    .dropdown {
1169
      display: flex;
1170
      height: 100%;
1171
    }
1172
  }
1173

  
1174
  &:last-child {
1175
    margin-top: 0;
1176
    margin-bottom: 0;
1177
    border-left: 1px solid #1C6CC0;
1178
    background: #0057be;
1179

  
1180
    @include media-breakpoint-down(md) {
1181
      margin: 10px 5px 0 5px;
1182
      border: 0;
1183
    }
1184

  
1185
    &:hover {
1186
      background: $primary-bg-color-darker;
1187
    }
1188
  }
1189

  
1190
  // TLAČÍTKO PRO ODESLÁNÍ FORMULÁŘE PRO ZMĚNU PARAMETRŮ HEATMAPY
1191
  .btn-secondary {
1192
    display: inline-block;
1193
    outline: none;
1194
    padding: 0 30px;
1195
    background: url($images-dir + 'btn-refresh.svg') no-repeat center center;
1196

  
1197
    &:hover {
1198
      background: url($images-dir + 'btn-refresh.svg') no-repeat center center !important;
1199
    }
1200

  
1201
    @include media-breakpoint-down(md) {
1202
      width: 100%;
1203
      padding: 20px;
1204
      border-radius: 5px;
1205
    }
1206
  }
1207

  
1208
  input {
1209
    &:hover {
1210
      background: rgba(255, 255, 255, .2);
1211
    }
1212

  
1213
    &:focus {
1214
      background: $primary-text-color;
1215
      color: #000;
1216
    }
1217
  }
1218
}
1219

  
1220

  
1221
// MENU PRO VÝBĚR ČASU/DATOVÝCH SAD
1222
.dropdown {
1223
  min-width: 200px;
1224 1278

  
1225
  input[type="radio"]:checked ~ label {
1226
    font-weight: 800;
1227
  }
1228

  
1229
  .btn {
1230
    width: 100%;
1231
    text-align: left;
1232
    letter-spacing: .4px;
1233
    color: $primary-text-color;
1234
    background: $primary-bg-color;
1235

  
1236
    &:hover {
1237
      background: $input-bg-hover;
1238
    }
1239
  }
1240

  
1241
  .dropdown-menu {
1242
    width: 100%;
1243
    max-height: 300px;
1244
    overflow-y: auto;
1245
    z-index: 1001;
1246
  }
1247

  
1248
  .dropdown-item {
1249
    &:active {
1250
      background: $primary-bg-color;
1251
    }
1252
    
1253
    label {
1254
      width: 100% !important;
1255
      margin-left: 0;
1256
      cursor: pointer;
1257
    }
1258
  }
1259

  
1260
  #dropdown-time .dropdown-item:nth-of-type(even) {
1261
    background: rgba(0,0,0,.05);
1262

  
1263
    &:active {
1264
      background: $primary-bg-color;
1279
    // POČET STRÁNEK
1280
    p {
1281
      margin: auto;
1265 1282
    }
1266 1283
  }
1267 1284
}

Také k dispozici: Unified diff