main.scss 73.6 KB
Newer Older
1 2
@charset "UTF-8";

3

4 5 6 7
// Imports
// --------------------------------------------------------

// Breakpoint - Really Simple Media Queries with Sass
8 9
@import "../../node_modules/breakpoint-sass/stylesheets/breakpoint";

10
// Datepicker styles
11 12
@import "../../public/lib-css/react-datepicker";

13
// Tooltip styles
14 15
@import "../../public/lib-css/tooltip";

16
// Susy - Responsive grid system
17 18
@import "../../node_modules/susy/sass/susy";

19 20 21 22 23 24 25 26 27
// print styles
@media print { @import "print"; }


// Variables - colors
// --------------------------------------------------------

$redColor: #D63814 !default;
$redGreyColor: #916359 !default;
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
28
$blackColor: #1A1A1A !default;
29 30
$greyColor: #E5E5E5 !default;
$lightGreyColor: #F5F5F5;
31 32 33 34
$mediumGreyColor: #CACACA !default;
$darkGreyColor: #767676 !default;
$white: #FFF !default;
$green: #0E8A17 !default;
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
35 36 37
$yellow: #FFFF00 !default;
$blue: #0000FF !default;
$headGreen: #25FFA3;
38 39 40 41 42 43 44

// Variables - rhythm (replacement for compass function)
// --------------------------------------------------------
$rhythm0_2: 0.075em;
$rhythm0_5: 0.1875em;
$rhythm0_9: 0.3375em;
$rhythm1:   0.375em;
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
45
$rhythm1_5: 0.6em;
46 47 48
$rhythm2:   0.75em;
$rhythm2_5: 0.9375em;
$rhythm2_7: 1.0125em;
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
49
$rhythm3:   1.25em;
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 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
$rhythm4:   1.5em;
$rhythm5:   1.875em;
$rhythm6:   2.25em;
$rhythm10:  3.75em;

// Variables - grid
// --------------------------------------------------------
$susy: (
    columns: 12,
);


// Variables - breakpoints
// --------------------------------------------------------

//mobile
$lt-small: max-width 667px;

//tablet
$small: min-width 668px;
$lt-medium: max-width 991px;

//desktop
$medium: min-width 992px;
$lt-large: max-width 1279px;

//high res
$large: min-width 1280px;
$lt-xlarge: max-width 1439px;

$xlarge: min-width 1440px;

// Mixins
// --------------------------------------------------------
@mixin clearfix {
  &:after {
    content: " ";
    display: block;
    clear: both;
  }
}

@mixin container {
  float: left;
  width: 100%;
}

// typography - vertical rhythm
// --------------------------------------------------------
html {
  font-size: 100%;
  line-height: $rhythm1;
}

// box-sizing
// --------------------------------------------------------
*, *:before, *:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

// default helpers
// --------------------------------------------------------
img {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

::selection {
  background: #3969ca;
  text-shadow: none;
  color: white;
}

.clearfix, .row {
  zoom: 1;
}

.clearfix:before, .row:before, .clearfix:after, .row:after {
  content: "";
  display: table;
}

.clearfix:after, .row:after {
  clear: both;
}

.is-hidden {
  display: none !important;
  visibility: hidden;
}

.is-vishidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.focusable.is-vishidden:active, .focusable.is-vishidden:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
}

.g-xup {
  overflow: hidden;
  clear: both;
}

Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
169 170 171 172
.hidden {
  display: none
}

173 174 175
// global styles - body
// --------------------------------------------------------
body {
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
176
  font-family: Lato, Arial, sans-serif;
177 178 179 180 181
  font-size: 16px;
  line-height: 1.5;
  font-weight: normal;
  font-style: normal;
  color: $blackColor;
182
  background-color: $greyColor;
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263
  margin: 0;
}

// global styles - html
// --------------------------------------------------------
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  line-height: $rhythm4;
}

// global styles - hide
// --------------------------------------------------------
@include breakpoint($lt-small) {
  .hidden-mobile {
    display: none;
  }
}

@include breakpoint($small) {
  .hidden-tablet {
    display: none;
  }
}

@include breakpoint($medium) {
  .hidden-tablet {
    display: block;
  }
}

@include breakpoint($medium) {
  .hidden-desktop {
    display: none;
  }
}

// global styles - show
// --------------------------------------------------------
@include breakpoint($lt-small) {
  .show-mobile {
    display: block;
  }
}

@include breakpoint($small) {
  .show-tablet {
    display: block;
  }
}

@include breakpoint($medium) {
  .show-desktop {
    display: block;
  }
}

// global styles - table
// --------------------------------------------------------
table {
  @include container;
  @include span(12);
  border-collapse: collapse;
}

table th, table tr {
  padding: $rhythm1;
}

table th, table td {
  padding: 0.5rem;
}

@include breakpoint($small) {
  table th, table td {
    padding: 0.5rem 1rem;
  }
}

table th {
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
264
  font-family: Lato, Arial, sans-serif;
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
  font-weight: 600;
  text-align: left;
  text-transform: capitalize;
}

table th button.sorter {
  margin: 0px 0px -6px 3px;
  position: relative;
  top: -6px;
  padding: 0px 1px 0px 1px;
  cursor: pointer;
}

table th button.sorter span.sort-button {
  display: block;
  font-size: 60%;
  opacity: 0.0;
}

table th button.sorter span.sort-button.visible {
  opacity: 1.0;
}

table th button.sorter:focus {
  outline: none;
}

292 293
table tbody tr:nth-child(odd) {
  background: $lightGreyColor;
294 295
}

296 297
table tbody tr:nth-child(even) {
  background: #ebebeb;
298 299 300 301
}

// digibib icons
// --------------------------------------------------------
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
302 303

img.icon {
304
  width: 1em;
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
305 306 307 308
  height: 1em;
  vertical-align: middle;
}

309 310 311 312 313 314 315 316
img.icon-tall {
  transform: rotate(90deg);
  width: 2em;
  height: 1em;
  vertical-align: middle;
}

.mediatype .icon-tall {
317 318
  float: right;
  margin-top: 1em;
319 320
}

Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
321 322 323 324
.icon-check-empty:before { content: url("/images/checkbox-unchecked.png"); }
.icon-ok-squared:before  { content: url("/images/checkbox-checked.png"); }


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 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 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 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449

// digibib icons - animations
// --------------------------------------------------------
.animate-spin {
  -moz-animation: spin 2s infinite linear;
  -o-animation: spin 2s infinite linear;
  -webkit-animation: spin 2s infinite linear;
  animation: spin 2s infinite linear;
  display: inline-block;
}

@-moz-keyframes spin {
  0% {
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -moz-transform: rotate(359deg);
    -o-transform: rotate(359deg);
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}
@-webkit-keyframes spin {
  0% {
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -moz-transform: rotate(359deg);
    -o-transform: rotate(359deg);
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}
@-o-keyframes spin {
  0% {
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -moz-transform: rotate(359deg);
    -o-transform: rotate(359deg);
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}
@-ms-keyframes spin {
  0% {
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -moz-transform: rotate(359deg);
    -o-transform: rotate(359deg);
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}
@keyframes spin {
  0% {
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -moz-transform: rotate(359deg);
    -o-transform: rotate(359deg);
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}

// animations
// --------------------------------------------------------

.fade-in-appear {
  opacity: 0.01;
}

.fade-in-appear.fade-in-appear-active {
  opacity: 1;
  transition: opacity 500ms ease-in;
}

.fade-in-leave {
  opacity: 1;
}

.fade-in-leave.fade-in-leave-active {
  opacity: 0.01;
  transition: opacity 500ms ease-in;
}

.fade-in-enter {
  opacity: 0.01;
}

.fade-in-enter.fade-in-enter-active {
  opacity: 1;
  transition: opacity 500ms ease-in;
}

.loading-spinner i {
  color: $redColor;
}


// atoms - buttons
// --------------------------------------------------------

button {
  background: none;
  border: none;
}

Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
450 451 452
.blue-btn {
  font-family: Lato, Arial, sans-serif;
  background: $blue;
453
  border-radius: 4px;
454
  color: $white;
455
  padding: 0.7em 0.625em 0.7em 0.625em;
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
456 457
  font-size: $rhythm3;
  font-weight: normal;
458 459 460
  @include breakpoint($small) {
    min-width: 6em
  }
461 462
}

Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
463
.blue-btn:hover, .blue-btn:active, .blue-btn:focus {
464 465 466
  cursor: pointer;
}

Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
467
.blue-btn:disabled {
468 469 470
  background: $mediumGreyColor;
}

Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
471
.blue-btn a, .blue-btn a:hover {
472 473 474 475
  text-decoration: none;
  color: $white;
}

Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
476
.small-blue-btn .btn-icon {
477 478 479

}

Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
480 481 482
.small-blue-btn .btn-icon img {
  nargin: 0;
  margin-right: 1em;
483 484 485 486 487 488 489 490 491 492
}

.grey-btn {
  padding: $rhythm2;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  background: $greyColor;
  color: $blackColor;
  font-weight: 600;
  font-size: 1em;
493
  border-radius: 4px;
494 495 496 497 498 499 500
}

.grey-btn a, .grey-btn a:hover, .grey-btn span a span {
  text-decoration: none;
  color: $blackColor;
}

Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
501
.small-blue-btn {
502
  padding-bottom: 0.5em;
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
503
  background: $blue;
504
  padding: $rhythm2;
505 506
  border-radius: 4px;
  font-size: 0.75em;
507 508 509
  color: $white;
}

Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
510
.small-blue-btn:hover, .small-blue-btn:active, .small-blue-btn:focus {
511 512 513
  cursor: pointer;
}

Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
514 515
.small-blue-btn:disabled {
  background: $mediumGreyColor;
516 517
}

Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
518
.small-blue-btn a, .small-blue-btn a:hover {
519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552
  text-decoration: none;
}



// atoms - checkbox
// --------------------------------------------------------

.white-btn-checkmark {
  padding: $rhythm1;
  padding-top: 0.3em;
  padding-bottom: 0.3em;
  border: 3px solid $blackColor;
  font-weight: 600;
  font-size: 1em;
  border-radius: 2px;
  margin: $rhythm3;
}

.white-btn-checkmark a, .white-btn-checkmark a:hover {
  text-decoration: none;
  color: $white;
}

.white-btn-checkmark:before {
  content: url("/images/icon-plus.svg");
  margin-right: $rhythm1;
}


// fonts
// --------------------------------------------------------

@font-face {
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
553 554
  font-family: Lato;
  src: url("/fonts/Lato-Regular.ttf") format("truetype");
555 556 557 558
  font-weight: normal;
  font-style: normal;
}
@font-face {
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
559 560
  font-family: Lato;
  src: url("/fonts/Lato-Bold.ttf") format("truetype");
561 562 563 564 565 566 567 568 569
  font-weight: bold;
  font-style: normal;
}


// text - general
// --------------------------------------------------------

strong {
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
570
  font-family: Lato, Arial, sans-serif;
571 572 573 574 575 576 577 578
  font-weight: 600;
}


// text - links
// --------------------------------------------------------

a {
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
579
  color: $blue;
580 581 582
  text-decoration: underline;
}

Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
583 584
a:hover, a:active {
  color: $blue;
585 586 587 588 589 590 591
}


// text - headings
// --------------------------------------------------------

h1, .alpha {
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
592
  font-family: Lato, Arial, sans-serif;
593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608
  font-weight: bold;
  font-style: normal;
  font-size: 1.625em;
  line-height: 1.15385em;
  margin-bottom: 0.69231em;
}

@include breakpoint($medium) {
  h1, .alpha {
    font-size: $rhythm4;
    line-height: 1.25em;
    margin-bottom: 1em;
  }
}

h2, .beta {
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
609
  font-family: Lato, Arial, sans-serif;
610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625
  font-weight: normal;
  font-style: normal;
  font-size: $rhythm4;
  line-height: 1.25em;
  margin-bottom: $rhythm2;
}

@include breakpoint($medium) {
  h2, .beta {
    font-size: $rhythm3;
    line-height: 1.33333em;
    margin-bottom: 1.33333em;
  }
}

h3, .gamma {
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
626
  font-family: Lato, Arial, sans-serif;
627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642
  font-weight: normal;
  font-style: normal;
  font-size: $rhythm3;
  line-height: 1.33333em;
  margin-bottom: 1em;
}

@include breakpoint($medium) {
  h3, .gamma {
    font-size: 1.375em;
    line-height: 1.36364em;
    margin-bottom: 1.09091em;
  }
}

h4, .delta {
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
643
  font-family: Lato, Arial, sans-serif;
644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669
  font-weight: normal;
  font-style: normal;
  font-size: 1em;
  line-height: $rhythm4;
  margin-bottom: $rhythm3;
}

@include breakpoint($medium) {
  h4, .delta {
    font-size: $rhythm3;
    line-height: 1.33333em;
    margin-bottom: 1.33333em;
  }
}

// text - tags
// --------------------------------------------------------

strong, b {
  font-weight: bold;
}

i {
  font-style: italic;
}

670 671 672 673
address {
  font-style: normal;
}

Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
674 675 676 677 678
.marked-yellow {
  background: linear-gradient(transparent 30%, #FFFF00 30%);
  border-radius: 20px;
}

679 680 681 682 683 684 685 686 687 688 689 690 691
// used for higlighting search terms
em {
  background: $yellow;
  font-style: normal;
}

// entry-content icon (arrow >)
// --------------------------------------------------------

.entry-content-icon-single {
  display: inline-block;
  color: $blackColor;
  padding-right: 1em;
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
692
  font-size: $rhythm3;
693 694 695
}

.entry-content-icon-single img {
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
696
  margin-right: 0.5em;
697 698 699 700 701 702 703 704 705 706 707 708
}

.entry-content-icon-single span {
  float: left;
}

// atoms - input
// --------------------------------------------------------

input {
  padding: $rhythm2;
  border: 1px solid $blackColor;
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
709
  border-radius: 5px;
710 711
}

712 713 714 715 716
input:focus {
  outline: none;
  border-color: $blue
}

717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755
input:focus::-webkit-input-placeholder {
  color: transparent;
}

input:focus:-moz-placeholder {
  color: transparent;
}

/* FF 4-18 */
input:focus::-moz-placeholder {
  color: transparent;
}

/* FF 19+ */
input:focus:-ms-input-placeholder {
  color: transparent;
}

/* IE 10+ */
input:focus::-webkit-input-placeholder {
  opacity: 0;
}

// forms - select
// --------------------------------------------------------

.select-container {
  overflow: hidden;
  background: url(/images/btn-search-sorting.svg) no-repeat right $white;
  background-position: 95%;
  border: 1px solid $blackColor;
}

.select-container select {
  background: transparent;
  width: 100%;
  padding: 0 0 0 5px;
  height: 34px;
  font-size: 16px;
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
756
  font-family: Lato, Arial, sans-serif;
757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808
  line-height: 1;
  border: 0;
  border-radius: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  -o-appearance: none;
  appearance: none;
}

// forms - error
// --------------------------------------------------------

.form-item.error input {
  border-width: 2px;
  border-color: $redColor;
  background: rgba(255, 0, 0, 0.05);
}

// forms - checkbox
// --------------------------------------------------------

input[type="checkbox"] {
  display: none;
}

input[type="checkbox"] + label {
  position: relative;
  cursor: pointer;
}

input[type="checkbox"] + label i {
  display: none;
}

input[type="checkbox"] + label i.checkbox-unchecked {
  display: block;
}

input[type="checkbox"]:checked + label i.checkbox-checked {
  display: block;
}

input[type="checkbox"]:checked + label i.checkbox-unchecked {
  display: none;
}

// layout
// --------------------------------------------------------

.wrapper {
  max-width: 100%;
  @include clearfix;
809
  padding: 0 1em;
810 811 812 813
}

@include breakpoint($small) {
  .wrapper {
814
    max-width: 1050px;
815 816 817 818 819 820
    margin-left: auto;
    margin-right: auto;
    @include clearfix;
  }
}

821
@include breakpoint($large) {
822
  .wrapper {
823
    padding: 0;
824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    @include clearfix;
  }
}


.row {
  position: relative;
  float: left;
  width: 100%;
}

// filters
// --------------------------------------------------------
840 841 842 843 844
.sticky {
  z-index: 1;
  opacity: 1;
  background-color: $white
}
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
845

846
.active-filters {
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
847
  background-color: $greyColor;
848 849 850 851
  padding-top: $rhythm1;
}

.active-filters .label {
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
852 853
  padding-top: 1.5em;
  font-size: $rhythm2_5;
854 855 856 857
}

.active-filters ul {
  margin: 0;
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
858 859
  padding: 1em 0;
  font-size: $rhythm3;
860 861 862 863 864 865 866
}

.active-filters .active-filter, .active-filters .remove-all-filters {
  list-style: none;
  display: inline-block;
  margin-bottom: $rhythm2;
  margin-right: $rhythm2;
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
867 868
  padding: $rhythm1 $rhythm3;
  background: $white;
869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884
  border-radius: 0.2em;
  cursor: pointer;
}

.active-filters .active-filter .filter-label, .active-filters .remove-all-filters .filter-label {
  padding: $rhythm0_5 $rhythm1;
  display: inline-block;
}

.active-filters .active-filter .remove, .active-filters .remove-all-filters .remove {
  padding: $rhythm0_5 $rhythm1;
  display: inline-block;
}


.active-filters .remove-all-filters {
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
885 886
  background: $blackColor;
  color: $white;
887 888 889 890 891 892 893
}

.filters {
  @include container;
  @include span(12);
  @include clearfix;
  margin-bottom: $rhythm4;
894 895 896 897
  // hack to fix extra mystery padding after filters in mobile version
  @media (min-width: 1px) and (max-width: 667px) {
          margin-bottom: 0px;
      }
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
898 899 900
  background-color: $greyColor;
  border-radius: 5px;
  padding: $rhythm4;
901 902 903 904 905 906 907 908 909 910
}

.filters .limit-filters {
  @include container;
  @include span(12);
  @include clearfix;
  display: block;
  color: $redColor;
  margin-bottom: $rhythm3;
  /* border-top: 1px solid $mediumGreyColor; */
911 912 913 914
  // hack to fix extra mystery padding after filters in mobile version
  @media (min-width: 1px) and (max-width: 667px) {
        margin-bottom: 0px;
    }
915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954
}

@include breakpoint($small) {
  .filters .limit-filters {
  }
}

.filters .limit-filters a {
  width: 100%;
  display: inline-block;
  background-image: url("/images/btn-limit-filter-close.svg");
  background-position: right $rhythm5 center;
  background-repeat: no-repeat;
  padding: $rhythm2 0;
  text-decoration: none;
}

.filters .limit-filters a:hover, .filters .limit-filters a:focus {
  background-color: $greyColor;
}

.filters .limit-filters a.filters-hidden {
  background-image: url("/images/btn-limit-filter-open.svg");
}

.filters .filter-wrapper {
  @include container;
  @include span(12);
  @include clearfix;
}

.filters .filter-wrapper .filter-group {
  @include container;
  @include span(12);
  @include clearfix;
}

.filters .filter-wrapper .filter-group header {
  @include container;
  @include span(12);
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
955
  border-top: 1px solid $mediumGreyColor;
956 957 958 959 960 961 962 963 964 965 966 967 968 969 970
  padding-top: $rhythm2;
}

.filters .filter-wrapper .filter-group section {
  @include container;
  @include span(12);
}

.filters .filter-wrapper .filter-group footer {
  @include container;
  @include span(12);
}

.filters .limit-filters-header {
  display: none;
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
971 972
  font-size: $rhythm4;
  font-weight: bold;
973 974 975 976
}

@include breakpoint($small) {
  .filters {
977
    @include span(4.5);
978 979 980
    margin-top: $rhythm5;
  }
}
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
981

982 983 984 985 986 987 988
@include breakpoint($small) {
  .filters .limit-filters-header {
    @include span(12 first);
    margin-left: 0;
    margin-right: 0;
    display: block;
    padding-bottom: $rhythm2;
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
989
    text-align: center;
990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007
  }
  .filters .limit-filters {
    display: none;
  }
}

.filterTitle {
  @include clearfix;
  max-width: 100%;
  border-bottom: none;
  margin-top: $rhythm4;
  cursor: pointer;
}

.filterTitle h1 {
  @include span(10);
  margin-top: 0;
  margin-bottom: 0;
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
1008
  font-size: $rhythm3;
1009 1010
  font-weight: normal;
  line-height: $rhythm4;
1011
  font-weight: bold;
1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043
}

.filterTitle .single-filter-close {
  float: right;
  margin-right: 0;
  cursor: pointer;
  margin-top: 0.2em;
}

.filter-list {
  @include container;
  @include span(12);
  @include clearfix;
}

.filter-list .searchfilters {
  @include container;
  @include span(12);
  @include clearfix;
  list-style-type: none;
  padding-left: 0;
  margin: $rhythm1 0 0;
  padding: 0;
}

.filter-list .searchfilters label {
  @include container;
  @include span(12);
  @include clearfix;
}

.filter-list .searchfilters label .checkbox-wrapper {
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
1044 1045 1046
  @include container;
  width: 1em;
  margin-top: 1em;
1047 1048 1049 1050
  line-height: $rhythm4;
}

.filter-list .searchfilters label h2 {
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
1051
  font-size: $rhythm3;
1052 1053 1054 1055 1056 1057 1058 1059 1060
  width: 91.52542%;
  float: right;
  margin-right: 0;
  margin-top: 0.5625em;
  overflow: hidden;
  line-height: $rhythm4;
}

.filter-list .filter_label {
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
1061
  font-family: Lato, Arial, sans-serif;
1062 1063 1064 1065 1066 1067 1068 1069
  font-weight: 700;
  font-size: 1em;
  font-weight: normal;
  display: inline-block;
  margin-right: 4px;
  margin-bottom: 0;
}

1070 1071 1072 1073
.filter_count {
  color: $darkGreyColor;
}

1074 1075 1076 1077 1078
.show-all, .show-less, .show-more {
  font-weight: normal;
  color: $redColor;
}

Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
1079 1080 1081 1082 1083 1084
.show-more a {
  color: $blackColor;
  text-decoration: none;
  font-size: $rhythm3;
}

1085 1086 1087 1088 1089 1090 1091 1092 1093 1094
.show-all h3, .show-less h3, .show-more h3 {
  font-size: 0.8em;
  margin-bottom: 0;
}

.show-all h3 :hover, .show-less h3 :hover, .show-more h3 :hover {
  cursor: pointer;
  text-decoration: underline;
}

1095
.filter-group.dateRangeFilters header.filterTitle, .filter-group.noitemsfilter {
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
1096
  border-top: 1px solid $mediumGreyColor;
1097 1098 1099 1100
  padding-top: 1em;
  margin-top: 1em;
  margin-bottom: 1em;
  cursor: default;
1101 1102 1103 1104
  //hack to make borders work properly in mobile version
  @media (min-width: 1px) and (max-width: 667px) {
        border-bottom: 2px solid $blackColor;
    }
1105 1106 1107 1108 1109 1110 1111 1112 1113
}

.filter-group.dateRangeFilters .form-item {
  display: inline-block;
}

.filter-group.dateRangeFilters input {
  max-width: 4em;
  margin-right: 1em;
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
1114
  font-size: $rhythm3;
1115
  padding: 0.7em 0 0.5em 0.6em;
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
1116 1117
  float: right;
  clear: both;
1118 1119 1120
}

.filter-group.dateRangeFilters label {
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
1121
  float: left;
1122 1123 1124
}

.filter-group.dateRangeFilters button {
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
1125 1126
  position: relative;
  bottom: 0.75em;
1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153
}

.filter-group.dateRangeFilters .error {
  position: relative;
}

.filter-group.dateRangeFilters .error .feedback {
  position: absolute;
  font-size: 0.8em;
  top: 3em;
  color: $redColor;
  min-width: 200%;
}

@include breakpoint($small) {
  .filterTitle h1 {
    width: 74.57627%;
    float: left;
    margin-right: 1.69492%;
  }
  .filterTitle .single-filter-close {
    float: right;
    margin-right: 0;
  }

}

1154 1155 1156
// form pages common
// -------------------------------------------------------

1157 1158 1159 1160 1161
.capthca-container {
  margin-top: 1em;
  clear: both;
}

1162
.default-form {
1163 1164
  @include clearfix;
  background: $greyColor;
1165
  padding: 1em
1166 1167 1168
}

@include breakpoint($small) {
1169
  .default-form form  {
1170 1171 1172 1173
    @include span(8);
    @include push(2);
  }
}
1174

1175
@include breakpoint($medium) {
1176
  .default-form form  {
1177 1178 1179 1180 1181
    @include span(6);
    @include push(3);
  }
}
@include breakpoint($large) {
1182 1183
  .default-form form  {
    @include span(3);
1184 1185 1186 1187
    @include push(4);
  }
}

1188
.default-form label, .default-form input, .default-form p, .default-form h4, .default-form hr, .default-form h1, .default-form legend {
1189
  @include container;
1190 1191 1192 1193
}

.default-form label {
  margin-top: $rhythm2;
1194 1195
}

1196
.default-form h4, .default-form legend {
1197 1198 1199 1200 1201 1202
  font-weight: bold;
  font-size: $rhythm3;
  margin-top: $rhythm2;
  margin-bottom: $rhythm0_2;
}

1203 1204 1205 1206 1207
.default-form legend {
 text-align: center;
}

.default-form .cancel-link {
1208 1209 1210
  margin-left: $rhythm5;
}

1211
.default-form input {
1212
  font-size: $rhythm3;
1213 1214
}

1215
.error-msg {
1216 1217 1218
  @include container;
  @include span(12);
  margin-bottom: $rhythm4;
1219
  color: $redColor;
1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331
}

.default-form .error-msg p {
  width: 100%;
  margin: 0;
}

.default-form .feedback {
  @include span(10);
  color: $redColor;
  font-size: $rhythm2_5;
}

.default-form select {
  padding: 0.5625em;
}

.default-form a:hover {
  cursor: pointer
}

// login page
// --------------------------------------------------------

.login-page {
}

// register page
// --------------------------------------------------------

.register-page .form-item > input, .register-page .form-item > .select-container {
  @include span(12);
  font-size: $rhythm3;
}

.register-page .select-container {
  padding: 0.5625em;
  margin-bottom: $rhythm3;
}

.register-page .date-of-birth .form-item {
  @include span(4);
}

.register-page .date-of-birth .form-item:nth-child(3) {
  margin-right: 0;
}

.register-page input#mobile, .register-page input#ssn {
  max-width: 8em;
}

.register-page input#pin, .register-page input#repeatPin {
  max-width: 4em;
}

.register-page input#day, .register-page input#month, .register-page input#year, .register-page input#zipcode {
  max-width: 5em;
}

@include breakpoint($small) {

  .register-page address {

  }

  .register-page address .form-item:first-child {
    @include span(12 first);
    margin-left: 0;
    margin-right: 0;
  }

  .register-page address .form-item:nth-child(2) {
    @include span(3);
  }

  .register-page address .form-item:nth-child(3) {
    @include span(9 last);
    margin-right: 0;
  }

  .register-page address .form-item label, .register-page address .form-item input, .register-page address .form-item .feedback {
    margin-left: 0%;
    @include span(12 first);
    margin-left: 0;
    margin-right: 0;
  }

  .register-page .terms_and_conditions .checkbox-wrapper {
    width: 6.77966%;
    float: left;
    margin-right: 1.69492%;
  }

  .register-page .terms_and_conditions .checkbox-desc {
    width: 91.52542%;
    float: right;
    margin-right: 0;
    padding-top: 0.25em;
  }

  .register-page input#mobile, .register-page input#ssn {
    max-width: 9em;
  }

  .register-page input#pin, .register-page input#repeatPin {
    max-width: 4em;
  }

  .register-page input#day, .register-page input#month, .register-page input#year, .register-page input#zipcode {
    max-width: inherit;
  }
1332 1333
}

1334 1335 1336 1337
// search links

.search-links    { @include container; }
.search-links h2 { font-weight: bold; text-align: center; margin: 0.5em 0 0 0 }
1338
.search-links p  { text-align: center; }
1339 1340
.search-links ul { font-size: $rhythm3; list-style-type: none; padding: 0; display: flex; align-items: stretch; flex-wrap: wrap; justify-content: space-between }
.search-links a  { flex: 1 0 30%;  padding: 2em; background-color:rgba(0,0,255,0.05); margin: 0.5em;
1341 1342 1343 1344 1345
                   text-decoration: none; color: $blackColor; }
.search-links li { height: 100%; display: flex; flex-direction: column; }
.search-links .arrow { width: 2em; height: 1em; margin-top: auto; margin-left: auto; margin-right: auto }


1346 1347 1348 1349 1350 1351 1352
// search results
// --------------------------------------------------------

.search-results {
  @include container;
  @include span(12);
  @include clearfix;
1353 1354 1355 1356
  padding: 0.5em;
  @include breakpoint($small) {
    padding: 0;
  }
1357 1358 1359 1360 1361 1362
}

.search-results .search-results-list {
  padding-top: $rhythm2;
}

1363 1364 1365 1366 1367
.search-results-list .single-entry {
  border-bottom: 1px solid #777;
  margin-bottom: 1em;
}

1368
.search-results .search-results-number {
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
1369 1370
  font-size: $rhythm5;
  font-weight: bold;
1371 1372 1373 1374
  flex: 2;
  @include breakpoint($small) {
    flex: 3
  }
1375 1376
}

Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
1377

1378
.search-results-settings {
1379 1380 1381
  flex: 1;
  padding-top: 0.7em;
  text-align: right
1382 1383 1384 1385 1386 1387 1388
}

.search-results-settings button {
  padding: 0;
}

.search-results-header-flex {
1389 1390 1391
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
1392 1393 1394
  margin-top: 1.85em;
}

1395 1396 1397 1398 1399 1400
@media (min-width: 1px) and (max-width: 667px) {
  .search-results-header-flex {
    border-bottom: 2px solid $blackColor;
  }
}

1401 1402 1403
.search-results-header {
  @include clearfix;
  max-width: 100%;
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
1404
  background-color: $greyColor;
1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429
}

.search-results-header .search-results-summary {
  @include container;
  @include span(12);
  @include clearfix;
  font-size: $rhythm3;
  /* margin: rhythm(2) 0; */
}

.search-results-header .search-results-summary .search-sorting-placeholder {
  width: 74.57627%;
  float: right;
  margin-right: 0;
  text-align: right;
}

.search-results-header .search-results-summary .search-sorting-placeholder p {
  margin: 0;
}

.search-results-header .search-results-summary .search-sorting-placeholder span {
  font-weight: bold;
}

Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
1430

1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458

.search-sorting {
  width: 49.15254%;
  float: left;
  margin-right: 1.69492%;
  float: right;
}

.search-sorting p {
  color: $darkGreyColor;
  text-transform: uppercase;
  font-size: 0.8em;
  margin-bottom: 5px;
}

.search-sorting-select-box {
  overflow: hidden;
  background: url(/images/btn-search-sorting.svg) no-repeat right;
  background-position: 95%;
  border: 3px solid $blackColor;
}

.search-sorting-select-box select {
  background: transparent;
  width: 100%;
  padding: 0 0 0 5px;
  height: 34px;
  font-size: 16px;
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
1459
  font-family: Lato, Arial, sans-serif;
1460 1461 1462 1463 1464 1465 1466 1467 1468 1469
  line-height: 1;
  border: 0;
  border-radius: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  -o-appearance: none;
}

@include breakpoint($small) {
  .search-results {
1470
    width: span(7.5);
1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501
    float: left;
    margin-right: 1.69492%;
    /* margin-top: rhythm(5);
    padding-top: rhythm(4); */
    margin-right: 0;
  }

  .search-results-header .search-results-summary .search-sorting-placeholder {
    width: 32.20339%;
    float: right;
    margin-right: 0;
  }

  .search-results-header .active-filters {
    width: 100%;
  }

  .search-sorting {
    @include span(3);
    float: right;
  }
}

.single-entry {
  @include container;
  @include span(12);
  @include clearfix;
  margin-bottom: $rhythm2;
}

.single-entry .book-cover {
Petter Goksøyr Åsen's avatar
Petter Goksøyr Åsen committed
1502
  @include span(3);