Skip to content
Snippets Groups Projects
Select Git revision
  • 625d6d95dd8c28677b84e914fc784895686bacf8
  • main default protected
  • renovate/lock-file-maintenance
  • demo protected
  • person-select-custom
  • dbp-translation-component
  • icon-set-mapping
  • port-i18next-parser
  • remove-sentry
  • favorites-and-recent-files
  • revert-6c632dc6
  • lit2
  • advertisement
  • wc-part
  • automagic
  • publish
  • wip-cleanup
  • demo-file-handling
18 results

styles.js

Blame
  • styles.js 6.29 KiB
    import {css} from 'lit';
    
    export function getFileHandlingCss() {
        // language=css
        return css`
            /**************************\\
              Modal Styles
            \\**************************/
    
            .modal-container {
                grid-template-columns: 150px 1fr;
                grid-template-rows: auto 1fr;
                gap: 1px 1px;
                grid-template-areas: 'sidebar header' 'sidebar main';
                position: relative;
            }
    
            .modal-nav {
                cursor: pointer;
                overflow: hidden;
                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;
            }
    
            .modal-nav .active {
                background-color: var(--dbp-content-surface);
                color: var(--dbp-on-content-surface);
            }
    
            .modal-content {
                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%;
                display: flex;
                align-items: flex-end;
            }
    
            .modal-content .source-main.hidden {
                display: none;
            }
    
            .modal-header {
                grid-area: header;
                display: flex;
                padding: 10px 20px 0px 20px;
                flex-direction: row-reverse;
                justify-content: space-between;
                align-items: center;
            }
    
            .clipboard-container {
                height: 100%;
                display: flex;
                align-items: center;
                flex-direction: column;
                width: 100%;
                overflow-x: auto;
            }
    
            .micromodal-slide .modal-container,
            .micromodal-slide .modal-overlay {
                will-change: auto;
            }
    
            /**************************\\
             Picker Styles
           \\**************************/
    
            #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;
            }
    
            #modal-picker-content {
                grid-area: main;
            }
    
            /**********************************\\
                Tabulator table styles
             \\*********************************/
    
            .tabulator .tabulator-header .tabulator-col .tabulator-col-content {
                display: inline-flex;
                padding: 0px;
            }
    
            .checkmark {
                height: 20px;
                width: 20px;
                left: 10px;
                top: 8px;
            }
            
            .button-container .checkmark::after {
                left: 7px;
                top: 2px;
                width: 5px;
                height: 11px;
            }
            
            
            /*.tabulator .tabulator-tableHolder {*/
            /*    overflow: hidden;*/
            /*}*/
            
            
            .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*!*/
            /*}*/
            
          
            
           /* .tabulator-row-handle {
                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: -2.1em;
            }
    
    
            .tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title {
                padding-top: 4px;
                padding-bottom: 4px;
                font-weight: normal;
                font-size: 1rem;
            }
            
            @media only screen and (orientation: portrait) and (max-width: 768px) {
                .tabulator .tabulator-tableHolder {
                    white-space: inherit;
                }
    
                .modal-container {
                    width: 100%;
                    height: 100%;
                    max-width: 100%;
                }
                
    
            }
    
            /**************************\\
             Tablett Portrait Styles
           \\**************************/
    
            @media only screen and (orientation: portrait) and (max-width: 768px) {
                .modal-nav {
                    display: flex;
                    /*justify-content: space-around;*/
                    grid-area: nav;
                    border: none;
                    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;
                }
    
                .modal-content {
                    grid-area: main;
                }
    
                .modal-container {
                    grid-template-rows: 40px 55px auto;
                    grid-template-areas: 'header' 'nav' 'main';
                    grid-template-columns: auto;
                }
    
                .modal-header {
                    grid-area: header;
                    padding: 5px;
                }
    
                .modal-nav > div {
                    flex-grow: 1;
                }
    
                .modal-nav .nav-icon {
                    height: 20px;
                }
    
                #nextcloud-file-picker,
                #clipboard-file-picker {
                    padding: 0px;
                }
            }
    
            /**************************\\
             Mobile Portrait Styles
            \\**************************/
    
            @media only screen and (orientation: portrait) and (max-width: 768px) {
            }
        `;
    }