styles.scss 7.31 KB
Newer Older
1 2
$color: #00954a;

alain's avatar
alain committed
3
#databronnen {
4
  position: relative;
alain's avatar
alain committed
5 6 7 8 9 10 11
  font-family: "Maax", Arial, Helvetica, sans-serif;
  overflow: auto;
  width: 100%;
  height: 100%;
  font-size: 18px;
  box-sizing: border-box;

12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
  #databronnen-table {
    position: fixed;
    top: 6rem;
    bottom: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    overflow: auto;

    &::-webkit-scrollbar { width: 8px; height: 8px; }
    &::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); }
    &::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); }
  }

  #view-toggle {
    position: absolute;
    top: 0.75rem;
    right: 0.5rem;
    font-size: 0.9rem;

    span {
32 33 34
      position: relative;
      padding: 0.25em 0.3em 0.2em;
      border-radius: 2px;
35
      cursor: pointer;
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
      user-select: none;
      transition: all 200ms ease;
      background-color: rgba(0,0,0,0.15);

      &:after {
        content: "";
        position: absolute;
        top: 0;
        height: 100%;
        background-color: $color;
        z-index: -1;
        transition: all 200ms ease;
        border-radius: 3px;
        opacity: 0;
      }

      &:first-of-type {
        border-radius: 3px 0 0 3px;
        margin-left: 0.5rem;

        &:after {
          border-radius: 3px 0 0 3px;
          right: 0;
          left: 100%;
        }

        &.active:after {
          left: 0;
          opacity: 1;
        }
      }
      &:last-of-type {
        border-radius: 0 3px 3px 0;

        &:after {
          border-radius: 0 3px 3px 0;
          left: 0;
          right: 100%;
        }
75

76 77 78 79 80 81 82 83 84 85 86 87 88
        &.active:after {
          right: 0;
          opacity: 1;
        }
      }

      &.active {
        color: #FFF;
        cursor: default;
      }
      
      &.inactive:hover {
        background-color: rgba(0,0,0,0.2);
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
      }
    }
  }

// LOADING
.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  span {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    margin: 1rem 1rem 1rem 0;
    vertical-align: middle;
106
    background-color: #00954a;
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
    border-radius: 100%;
    animation: pulseScaleOut 1.5s infinite ease-in-out;
    animation-delay: 0s;
    opacity: 0;
  }
}

@keyframes pulseScaleOut {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}


  // table
alain's avatar
alain committed
127
  table {
alain's avatar
alain committed
128
    margin: 0 auto;
alain's avatar
alain committed
129 130 131 132 133 134
    border-collapse: collapse;
  }

  th, td {
    line-height: 1.25rem;
    vertical-align: top;
alain's avatar
alain committed
135 136
    font-size: 0.75rem;
    background-color: #fff;
alain's avatar
alain committed
137 138 139 140 141

    &:not(:last-child) {
      border-right: 1px dashed #ccc;
    }

142 143 144 145 146 147 148 149 150
    &.thema        { min-width: 13rem; max-width: 15rem; }
    &.titel        { min-width: 13rem; max-width: 20rem; }
    &.omschrijving { min-width: 15rem; max-width: 30rem; }
    &.url          { min-width: 13rem; max-width: 20rem; }
    &.scope        { min-width: 7rem; max-width: 9rem; }
    &.toegang      { min-width: 7rem; max-width: 8rem; }
    &.type         { min-width: 7rem; max-width: 8rem; }
    &.formaat      { min-width: 7rem; max-width: 9rem; }
    //&.subthema     { min-width: 7rem; max-width: 8rem; }
alain's avatar
alain committed
151 152 153 154 155
  }

  thead {
    th {
      text-align: left;
alain's avatar
alain committed
156 157
      background-color: #00954a;
      color: #fff;
alain's avatar
alain committed
158 159
      font-weight: 500;
      min-width: 7em;
alain's avatar
alain committed
160 161
      padding: 0.25em 0 0.15em;
      font-size: 0.8rem;
alain's avatar
alain committed
162 163 164 165 166 167 168 169 170

      > div {
        display: flex;
        justify-content: space-between;
      }
    }

    span {
      padding: 0 0.25em;
alain's avatar
alain committed
171
      margin-right: 0.5rem;
alain's avatar
alain committed
172 173 174
      vertical-align: middle;
      cursor: pointer;
      white-space: nowrap;
alain's avatar
alain committed
175
      flex-grow: 1;
alain's avatar
alain committed
176 177 178 179 180 181 182 183
    }

    svg {
      display: inline-block;
      width: 1rem;
      height: 1rem;
      vertical-align: middle;
      cursor: pointer;
alain's avatar
alain committed
184
      flex-shrink: 0;
alain's avatar
alain committed
185 186 187

      path {
        pointer-events: auto;
alain's avatar
alain committed
188
        fill: #fff;
alain's avatar
alain committed
189
        opacity: 0.6;
alain's avatar
alain committed
190 191 192 193 194 195
      }
    }

    .sort-button {
      margin-right: 0.25em;

alain's avatar
alain committed
196 197
      &.ascending path.asc { opacity: 1; }
      &.descending path.desc { opacity: 1; }
alain's avatar
alain committed
198 199 200 201 202 203
    }
    
    .filter-button {
      margin-right: 0.5rem;
    
      &.active path {
alain's avatar
alain committed
204
        opacity: 1;
alain's avatar
alain committed
205 206 207
      }
    }
  }
alain's avatar
alain committed
208

alain's avatar
alain committed
209 210 211 212 213 214
  tbody td {
    padding: 0.5em;
    border-bottom: 1px dashed #ccc;

    &.url {
      word-break: break-all;
alain's avatar
alain committed
215 216 217 218 219 220 221 222 223 224 225

      a {
        display: block;
        max-height: 4.25rem;
        overflow: hidden;
        transition: max-height 200ms ease;

        &:hover {
          max-height: 15rem;
        }
      }
alain's avatar
alain committed
226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245
    }

    &.titel {
      font-weight: 500;
    }

    &.omschrijving {
      span {
        display: block;
        max-height: 4.25rem;
        overflow: hidden;
        transition: max-height 200ms ease;

        &:hover {
          max-height: 15rem;
        }
      }
    }
  }

246 247 248 249
  tr:last-child td {
    border-bottom: none;
  }

alain's avatar
alain committed
250 251 252 253 254 255 256 257
  input {
    display: block;
    width: calc(100% - 1rem);
    margin: 0.25rem;
    outline: none;
    border: none;
    background-color: #eee;
    font-family: "Maax", Arial, Helvetica, sans-serif;
alain's avatar
alain committed
258 259
    padding: 0.25rem 0.25rem 0;
    line-height: 1.25rem;
alain's avatar
alain committed
260
  }
261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297

  // vis
  > svg {
    width: 100%;
    height: 100%;
    display: block;
    margin: 0 auto;
  }

  circle {
    fill: #00954a !important;
    opacity: 0.15;
    pointer-events: none;
  
    &:first-child {
      fill: none !important;
      pointer-events: none;
    }
  
    &.clickable {
      pointer-events: all;
      cursor: pointer;
  
      &:hover {
        stroke: #000;
        stroke-dasharray: 3;
        stroke-width: 1.5px;
      }
    }
  }

  foreignObject {
    position: relative;
    pointer-events: none;
    overflow: visible;
  
    div {
298 299 300
      display: flex;
      align-items: center;
      justify-content: center;
301
      width: 100%;
302
      height: 100%;
303
      line-height: 1.25;
304 305 306
      text-align: center;
      user-select: none;
    }
307 308 309 310 311 312 313 314 315

    &.theme div {
      font-size: 1rem;
      font-weight: 500;
    }

    &.source div {
      font-size: 0.75rem;
    }
316 317
  }

318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363
  .modal {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.15);
    overflow: auto;
    text-align: center;
    z-index: 1200;

    &:before {
      content: "";
      display: inline-block;
      height: 100%;
      vertical-align: middle;
    }

    .content {
      display: inline-block;
      vertical-align: middle;
      position: relative;
      background-color: #FFF;
      box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
      padding: 20px 20px 0 20px;
      width: 100%;
      max-width: 950px;
      min-height: 1rem;
      text-align: left;
    }

    .button-close {
      border: none;
      background: none !important;
      box-shadow: none;
      color: #000;
      font-size: 20px;
      position: absolute;
      top: 10px;
      right: 10px;
      padding: 0;
      width: 30px;
      line-height: 30px;
      cursor: pointer;
      transition: all 0ms ease;
alain's avatar
alain committed
364

365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381
      &:hover {
        font-size: 24px;
        transition: all 100ms ease;
      }

      &:active {
        outline: none;
      }

      &:after {
        content: none;
      }
    }

    h1 {
      padding-right: 1rem;
    }
382

383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407
    .description {
      margin-bottom: 32px;
    }

    table {
      width: calc(100% + 40px) !important;
      margin: 2rem -20px 0;

      td {
        vertical-align: top;
        background-color: #eee;
        padding: 1rem;

        h4 {
          margin-bottom: 0;
          font-size: 0.85rem;
        }

        p {
          font-size: 0.85rem;
        }
      }
    }
  }
}