Skip to content
Snippets Groups Projects
modal.css 1.78 KiB
Newer Older
  • Learn to ignore specific revisions
  • @import "../../css/colors.css";
    @import "../../css/units.css";
    
    
    Ray Schamp's avatar
    Ray Schamp committed
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        background-color: rgba(0, 0, 0, .75);
    }
    
    .full-modal-content {
        position: absolute;
        outline: none;
        overflow-y: scroll;
        -webkit-overflow-scrolling: 'touch';
        user-select: none;
    
    steven dale's avatar
    steven dale committed
        height: 100%;
    
    steven dale's avatar
    steven dale committed
    }
    
    steven dale's avatar
    steven dale committed
    /*
    
        Modal header has 3 items:
        |filter     title       x|
    
        Use the same width for both side item containers,
        so that title remains centered
    
    steven dale's avatar
    steven dale committed
    */
    
    steven dale's avatar
    steven dale committed
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
    
        box-sizing: border-box;
        width: 100%;
        background-color: $blue;
    
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
        font-size: 1rem;
        font-weight: normal;
    }
    
    
    steven dale's avatar
    steven dale committed
        display: flex;
        align-items: center;
        padding: 1rem;
        text-decoration: none;
        color: white;
        user-select: none;
    }
    
    .header-item-filter {
        display: flex;
        flex-basis: $sides;
    
    steven dale's avatar
    steven dale committed
    }
    
    .header-item-title {
        flex-grow: 1;
        flex-shrink: 0;
        justify-content: center;
        user-select: none;
        letter-spacing: 0.4px;
        cursor: default;
    }
    
    .header-item-close {
        flex-basis: $sides;
        justify-content: flex-end;
    }
    
    
    
    /*.base-modal-content {
        position: absolute;
        outline: none;
        overflow-y: scroll;
        -webkit-overflow-scrolling: 'touch';
        border: 1px solid #ccc;
        padding: 0;
        top: 5%;
        right: 5%;
        bottom: 5%;
        left: 5%;
        border-radius: $space;
        user-select: none;
    }*/
    
    
    /*
    .base-close-button {
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 2;
    }*/