Skip to content
Snippets Groups Projects
styles.scss 5.83 KiB
Newer Older
  • Learn to ignore specific revisions
  • Hugo SUBTIL's avatar
    Hugo SUBTIL committed
    /* You can add global styles to this file, and also import other style files */
    
    
    @import 'assets/scss/typography';
    
    @import 'assets/scss/z-index';
    
    @import 'assets/scss/color';
    @import 'assets/scss/breakpoint';
    
    @import 'assets/scss/icons';
    
    @import 'assets/scss/inputs';
    
    @import 'assets/scss/hyperlink';
    
    @import 'assets/scss/layout';
    
    @import 'assets/scss/buttons';
    
    @import '../node_modules/leaflet.locatecontrol/dist/L.Control.Locate.css';
    
    @import '~ngx-toastr/toastr';
    
    html {
      height: -webkit-fill-available;
      margin: 0;
      padding: 0;
      background-color: $grey-6;
    }
    
    body {
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 0;
    
      background-color: $grey-6;
    
      min-height: 100vh;
      min-height: -webkit-fill-available;
    
    }
    a {
      color: $default-link-color;
      text-decoration: none;
      background-color: transparent;
    
      @include cn-regular-14;
    
      cursor: pointer;
      &:focus {
    
      }
      &:hover {
        text-decoration: underline;
    
        outline-color: $blue-hover;
    
      &.primary {
        @include hyperlink;
        width: 100%;
    
        text-align: right;
      }
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
    .clickable {
      cursor: pointer;
    }
    
    
    .bold {
      font-weight: bold !important;
    }
    
    
    // Containers
    .content-container {
      margin: 0;
    
      padding-top: 16px;
    
      width: 100%;
      &.medium-pt {
        padding: 25px 0 30px 0;
      }
      &.small-pt {
        padding: 10px 0 30px 0;
      }
      &.no-pt {
        padding: 0 0 30px 0;
      }
    
      &.full-screen {
    
        min-height: calc(100vh - #{$header-height} - #{$footer-height});
    
    }
    .section-container {
      width: 80%;
      max-width: 1200px;
      margin: 0 auto;
    
      padding: 10px 0;
    
      @media #{$tablet} {
        width: 95%;
        max-width: unset;
      }
      &.no-max-width {
        max-width: unset;
        margin-bottom: 1rem;
    
        width: unset;
    
      &.news {
        max-width: 1080px;
      }
      &.no-padding {
        padding: 0;
      }
    
    // Forms
    .form-group {
      margin-bottom: 26px;
      label {
        color: $grey-2;
      }
    }
    form p.notRequired {
      margin-top: 0px;
      font-style: italic;
      color: $secondary-color;
    }
    
    /** Inputs **/
    input {
      margin-top: 4px;
    }
    
    /** Textarea **/
    .textareaBlock {
      textarea {
        padding: 13px 8px;
        background: $grey-6;
        border: 1px solid $grey-4;
        border-radius: $input-radius;
        resize: none;
        @include cn-regular-16;
      }
    }
    
    
    /** Buttons **/
    button {
      &:focus {
        outline-color: $blue-hover;
      }
    }
    
    
    /** Checkboxes **/
    .checkbox {
      list-style-type: none;
    
      input {
        opacity: 0;
        display: none;
        &:checked ~ .customCheck {
    
          background-color: $green-1;
    
          border-color: transparent;
        }
        &:checked ~ .customCheck:after {
          display: block;
        }
      }
      label {
        grid-template-columns: min-content auto;
        display: inline-grid;
        cursor: pointer;
      }
      .label {
    
    Jérémie BRISON's avatar
    Jérémie BRISON committed
        @include btn-pass;
    
    Jérémie BRISON's avatar
    Jérémie BRISON committed
        &.pass {
    
      }
      .customCheck {
        display: inline-grid;
        width: 18px;
        height: 18px;
        background-color: $white;
        border: 1px solid $grey;
        cursor: pointer;
        position: relative;
    
        top: 0;
        left: 0;
        &:hover {
    
          background-color: $grey-6;
    
        }
        &:after {
          content: '';
          position: absolute;
          display: none;
          left: 7px;
          top: 3px;
          width: 4px;
          height: 8px;
          border: solid $white;
          border-width: 0 2px 2px 0;
          transform: rotate(45deg);
          -webkit-transform: rotate(45deg);
          -ms-transform: rotate(45deg);
        }
      }
    
    // Layout
    .w-100 {
      width: 100%;
    }
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
    
    
    .mobile-column {
      @media #{$large-phone} {
        flex-direction: column;
      }
    }
    
    // PRINT
    
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
    @media print {
      body,
      html,
      .forPrint {
        height: auto;
      }
    
      .content-container {
        display: none !important;
      }
    }
    
    
    // Modal
    
    .modalBackground {
      width: 100%;
      height: 100%;
      z-index: $modal-z-index;
    
      position: fixed;
    
      background-color: $modal-background;
      .modal {
    
        max-height: 90%;
        overflow: auto;
    
        .contentModal {
          width: 100%;
          background: $white;
    
        }
        .footerModal {
          width: 100%;
          margin-top: 14px;
          @include cn-bold-16;
          .btn {
            background: $secondary-color;
            border-radius: 4px;
            outline: none;
            cursor: pointer;
            border: 0;
            color: $white;
            height: 40px;
            @include btn-bold;
            width: 149px;
            &.confirm {
              background: none;
              color: $grey-1;
              text-decoration: underline;
            }
          }
        }
        min-width: 350px;
        max-width: 560px;
        margin: auto;
        border-radius: 6px;
    
    Jérémie BRISON's avatar
    Jérémie BRISON committed
        @include background-hash($grey-2);
    
        border: 1px solid $grey-4;
    
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    
    
    .structureCard {
      border: 1px solid $grey-4;
      border-radius: 6px;
      .structureInfo {
        border-radius: 6px;
        background: $white;
        min-height: 100px;
        padding: 33px 55px;
        @media #{$large-phone} {
          padding: 33px 25px;
        }
        a {
          margin: 0;
          &.structureName {
            @include cn-bold-26;
            color: $secondary-color;
            text-decoration: underline;
          }
        }
        .ownerName {
          @include cn-regular-18;
          color: $grey-2;
        }
      }
      @include background-hash($grey-2);
    }
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
    .loader {
      width: 100%;
      text-align: center;
      .loader-gif {
        min-width: 10%;
        min-height: 10%;
      }
    }
    
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
    .no-margin {
      margin: 0 !important;
    }
    
    .backLink {
      cursor: pointer;
      color: $grey-2;
      margin-bottom: 40px;
      @include cn-bold-16;
      &:hover {
        opacity: 0.4;
      }
    }
    
    
    .userList {
      max-width: 50%;
    }
    
    .userBlock {
      max-width: 50%;
      margin: 0 auto;
    }
    
    
    [app-tooltipDirective] {
      position: relative;
    }
    
    .tooltip {
      position: absolute;
      bottom: 100%;
      white-space: nowrap;
      left: 0;
      padding: 10px;
      background: $grey;
      color: $white;
      box-shadow: 0 2px 1px rgba(0, 0, 0, 0.6);
    }
    
    
    .hide-on-mobile {
      @media #{$tablet} {
        display: none !important;
      }
    }