Projekt

Obecné

Profil

« Předchozí | Další » 

Revize c892003d

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

Re #8159 - CSS improvements, timeline clickable, code refactoring

Zobrazit rozdíly:

website/public/css/style.scss
6 6

  
7 7
$primary-bg-color: #0048A9;
8 8
$primary-bg-color-darker: #004fb3;
9
$input-bg-hover: #336dba;
9 10
$secondary-bg-color: #0b155a;
10 11

  
11 12
$primary-text-color: #ffffff;
......
717 718
}
718 719

  
719 720

  
720
// PŘEHRÁVAČ HEATMAPY
721
// DOLNÍ OVLÁDACÍ PANEL HEATMAPY
721 722
.player {
722 723
  width: 100%;
723 724
  display: flex;
......
850 851
    position: relative;
851 852
    padding: 0 10px;
852 853
    border-radius: 100px;
854
    cursor: pointer;
853 855
    background-color: rgba(11, 21, 90, .7);
854 856

  
855 857
    @include media-breakpoint-down(md) {
......
955 957
  background: url($images-dir + 'footer-bg.svg') no-repeat;
956 958

  
957 959
  @include media-breakpoint-down(md) {
958
    
959 960
    width: 320px;
960 961
    height: 143px;
961 962
    background-size: 100%;
......
1003 1004
  }
1004 1005
}
1005 1006

  
1006
// INFORMACE O KONKRÉTNÍM BODĚ V HEATMAPĚ
1007

  
1008
// POPUP O KONKRÉTNÍM BODĚ V HEATMAPĚ
1007 1009
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
1008 1010
  font-family: 'Be Vietnam', sans-serif;
1009 1011
  text-align: center;
1010
  color: white;
1012
  color: $primary-text-color;
1011 1013
}
1012 1014

  
1013 1015
.leaflet-popup-content-wrapper {
......
1074 1076
  }
1075 1077

  
1076 1078
  .btn-secondary {
1079
    display: flex;
1080
    justify-content: center;
1081
    align-items: center;
1077 1082
    outline: none;
1078 1083
    border-radius: 50px;
1079 1084
    height: 40px;
......
1085 1090
    -webkit-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.17);
1086 1091
    -moz-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.17);
1087 1092
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.17);
1088
    text-align: center;
1089
    display: flex;
1090
    justify-content: center;
1091
    align-items: center;
1092 1093

  
1093 1094
    @include media-breakpoint-down(md) {
1094 1095
      width: 100%;
......
1098 1099
      margin-bottom: -10px;
1099 1100
    }
1100 1101

  
1101
    &:after{
1102
    &:after {
1102 1103
      padding-bottom: 4px;
1103 1104
      content: '↺';
1104 1105
      font-weight: 400;
......
1136 1137
      color: #000;
1137 1138
    }
1138 1139
  }
1140
}
1139 1141

  
1140
  select {
1141
    &:hover {
1142
      cursor: pointer;
1143
      background: rgba(255, 255, 255, .2);
1144 1142

  
1145
      option {
1146
        background: $primary-bg-color;
1147
      }
1148
    }
1143
// MENU PRO VÝBĚR ČASU/DATOVÝCH SAD
1144
.dropdown {
1145
  min-width: 200px;
1149 1146

  
1150
    &:focus {
1151
      background: $primary-bg-color;
1152
      color: white;
1153
    }
1147
  input[type="radio"]:checked ~ label {
1148
    font-weight: 800;
1154 1149
  }
1155
}
1156
.custom-dropdown-item {
1157
  margin: 0px !important;
1158
}
1159
.custom-dropdown-item .disabled {
1160
  cursor: not-allowed !important;
1161
}
1162
.custom-control-label {
1163
  font-weight: 300 !important;
1164
  margin: 0px !important;
1165
}
1166
.custom-dropdown {
1167
  cursor: not-allowed;
1168
}
1169 1150

  
1170
input[type=radio]:checked~label {
1171
  font-weight: 800;
1172
}
1173

  
1174
.dropdown {
1175 1151
  .btn {
1176 1152
    width: 100%;
1177 1153
    text-align: left;
......
1180 1156
    background: $primary-bg-color;
1181 1157

  
1182 1158
    &:hover {
1183
      background: #336dba;
1159
      background: $input-bg-hover;
1184 1160
    }
1185 1161
  }
1186 1162

  
......
1188 1164
    width: 100%;
1189 1165
    max-height: 300px;
1190 1166
    overflow-y: auto;
1167
    z-index: 1001;
1191 1168
  }
1192 1169

  
1193
  .dropdown-item label {
1194
    width: 100% !important;
1195
    cursor: pointer;
1170
  .dropdown-item {
1171
    &:active {
1172
      background: $primary-bg-color;
1173
    }
1174
    
1175
    label {
1176
      width: 100% !important;
1177
      margin-left: 0;
1178
      cursor: pointer;
1179
    }
1196 1180
  }
1197 1181

  
1198
  #dataset-dropdown-time .dropdown-item:nth-of-type(even) {
1182
  #dropdown-time .dropdown-item:nth-of-type(even) {
1199 1183
    background: rgba(0,0,0,.05);
1200 1184

  
1201 1185
    &:active {
1202
      background: #007bff;
1186
      background: $primary-bg-color;
1203 1187
    }
1204 1188
  }
1205 1189
}

Také k dispozici: Unified diff