Skip to content
Snippets Groups Projects
styles.js 6.29 KiB
Newer Older
import {css} from 'lit';
Reiter, Christoph's avatar
Reiter, Christoph committed
    return css`
        /**************************\\
          Modal Styles
        \\**************************/

        .modal-container {
            grid-template-columns: 150px 1fr;
            grid-template-rows: auto 1fr;
            gap: 1px 1px;
Reiter, Christoph's avatar
Reiter, Christoph committed
            grid-template-areas: 'sidebar header' 'sidebar main';
            background-color: var(--dbp-background);
            border-right: var(--dbp-border);
            grid-area: sidebar;
        }

        .modal-nav > div {
            padding: 5px;
            text-align: center;
        }

        .modal-nav .nav-icon {
            width: 35px;
            height: 35px;
        }

Reiter, Christoph's avatar
Reiter, Christoph committed
        .modal-nav .active {
            background-color: var(--dbp-content-surface);
            color: var(--dbp-on-content-surface);
            padding: 10px 20px 20px 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
        }

        .modal-content .source-main {
            /*flex-grow: 1;*/
            /*justify-content: center;*/
            /*align-items: center;*/
            height: 100%;
            width: 100%;
Reiter, Christoph's avatar
Reiter, Christoph committed
            display: flex;
            align-items: flex-end;
Reiter, Christoph's avatar
Reiter, Christoph committed
        .modal-header {
            padding: 10px 20px 0px 20px;
            flex-direction: row-reverse;
            justify-content: space-between;
            align-items: center;
        }

Reiter, Christoph's avatar
Reiter, Christoph committed
        .clipboard-container {
            height: 100%;
            display: flex;
            align-items: center;
            flex-direction: column;
            width: 100%;
            overflow-x: auto;
Reiter, Christoph's avatar
Reiter, Christoph committed
        .micromodal-slide .modal-container,
        .micromodal-slide .modal-overlay {
            will-change: auto;
        }

        /**************************\\
         Picker Styles
       \\**************************/

Reiter, Christoph's avatar
Reiter, Christoph committed
        #nextcloud-file-picker,
        #clipboard-file-picker {
            width: 100%;
            height: 100%;
            margin: var(--FUMargin, 0px);
            padding: var(--FUPadding, 20px);
        }

        #fileElem {
            display: none;
        }

        #nextcloud-file-picker.hidden {
            display: none;
        }

Reiter, Christoph's avatar
Reiter, Christoph committed
        #modal-picker-content {
        /**********************************\\
            Tabulator table styles
         \\*********************************/
Reiter, Christoph's avatar
Reiter, Christoph committed
        .tabulator .tabulator-header .tabulator-col .tabulator-col-content {
        .checkmark {
            height: 20px;
            width: 20px;
        
        .button-container .checkmark::after {
            left: 7px;
            top: 2px;
            width: 5px;
            height: 11px;
        
        
        /*.tabulator .tabulator-tableHolder {*/
        /*    overflow: hidden;*/
        /*}*/
        
        
Reiter, Christoph's avatar
Reiter, Christoph committed
        .force-no-select {
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }
        /*.tabulator .tabulator-tableHolder {*/
        /*    !* height: unset !important; !*TODO find a better way to do this*!*/
        /*}*/
            padding: 0px !important;
        }*/
        
        /*.tabulator .tabulator-header .tabulator-col {*/
        /*    min-height: 37px !important;*/
        /*}*/
        
        .filename{
            overflow: hidden;
            text-overflow: ellipsis;
            width: 100%;
            white-space: nowrap;
        }


        .select-all-icon {
            height: 40px;
            position: absolute;
            top: -1.1em;
        }


        .tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title {
            padding-top: 4px;
            padding-bottom: 4px;
            font-weight: normal;
            font-size: 1rem;
Reiter, Christoph's avatar
Reiter, Christoph committed
        @media only screen and (orientation: portrait) and (max-width: 768px) {
            .tabulator .tabulator-tableHolder {
        }

        /**************************\\
         Tablett Portrait Styles
       \\**************************/

Reiter, Christoph's avatar
Reiter, Christoph committed
        @media only screen and (orientation: portrait) and (max-width: 768px) {
            .modal-nav {
                /*justify-content: space-around;*/
                border-bottom: var(--dbp-border);
                border-top: var(--dbp-border);
                white-space: nowrap;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                -ms-overflow-style: -ms-autohiding-scrollbar;
            }

            .modal-nav::-webkit-scrollbar {
                display: none;
Reiter, Christoph's avatar
Reiter, Christoph committed
            .modal-content {
Reiter, Christoph's avatar
Reiter, Christoph committed
            .modal-container {
Reiter, Christoph's avatar
Reiter, Christoph committed
                grid-template-areas: 'header' 'nav' 'main';
Reiter, Christoph's avatar
Reiter, Christoph committed
            .modal-header {
Reiter, Christoph's avatar
Reiter, Christoph committed
            .modal-nav > div {
Reiter, Christoph's avatar
Reiter, Christoph committed
            .modal-nav .nav-icon {
Reiter, Christoph's avatar
Reiter, Christoph committed
            #nextcloud-file-picker,
            #clipboard-file-picker {
                padding: 0px;
            }
        }

        /**************************\\
         Mobile Portrait Styles
        \\**************************/

Reiter, Christoph's avatar
Reiter, Christoph committed
        @media only screen and (orientation: portrait) and (max-width: 768px) {