Newer
Older
Steinwender, Tamara
committed
export function getFileHandlingCss() {
// language=css
Steinwender, Tamara
committed
/**************************\\
Modal Styles
\\**************************/
.modal-container {
grid-template-columns: 150px 1fr;
grid-template-rows: auto 1fr;
gap: 1px 1px;
grid-template-areas: 'sidebar header' 'sidebar main';
Steinwender, Tamara
committed
position: relative;
}
.modal-nav {
cursor: pointer;
overflow: hidden;
background-color: var(--dbp-background);
Steinwender, Tamara
committed
grid-area: sidebar;
}
.modal-nav > div {
padding: 5px;
text-align: center;
}
.modal-nav .nav-icon {
width: 35px;
height: 35px;
}
background-color: var(--dbp-content-surface);
color: var(--dbp-on-content-surface);
Steinwender, Tamara
committed
}
.modal-content {
Steinwender, Tamara
committed
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%;
Steinwender, Tamara
committed
}
.modal-content .source-main.hidden {
display: none;
}
Steinwender, Tamara
committed
grid-area: header;
display: flex;
Steinwender, Tamara
committed
flex-direction: row-reverse;
justify-content: space-between;
align-items: center;
}
height: 100%;
display: flex;
align-items: center;
flex-direction: column;
width: 100%;
.micromodal-slide .modal-container,
.micromodal-slide .modal-overlay {
Steinwender, Tamara
committed
/**************************\\
Picker Styles
\\**************************/
#nextcloud-file-picker,
#clipboard-file-picker {
Steinwender, Tamara
committed
width: 100%;
height: 100%;
margin: var(--FUMargin, 0px);
padding: var(--FUPadding, 20px);
}
#fileElem {
display: none;
}
#nextcloud-file-picker.hidden {
display: none;
}
Steinwender, Tamara
committed
grid-area: main;
}
Steinwender, Tamara
committed
/**********************************\\
Tabulator table styles
\\*********************************/
Steinwender, Tamara
committed
.tabulator .tabulator-header .tabulator-col .tabulator-col-content {
Steinwender, Tamara
committed
display: inline-flex;
padding: 0px;
Steinwender, Tamara
committed
}
.checkmark {
height: 20px;
width: 20px;
.button-container .checkmark::after {
left: 7px;
top: 2px;
width: 5px;
height: 11px;
Steinwender, Tamara
committed
}
/*.tabulator .tabulator-tableHolder {*/
/* overflow: hidden;*/
/*}*/
Steinwender, Tamara
committed
-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 {
}*/
/*.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;
}
.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 {
Steinwender, Tamara
committed
white-space: inherit;
}
Steinwender, Tamara
committed
.modal-container {
width: 100%;
height: 100%;
max-width: 100%;
}
Steinwender, Tamara
committed
}
/**************************\\
Tablett Portrait Styles
\\**************************/
@media only screen and (orientation: portrait) and (max-width: 768px) {
.modal-nav {
Steinwender, Tamara
committed
display: flex;
/*justify-content: space-around;*/
Steinwender, Tamara
committed
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;
Steinwender, Tamara
committed
}
Steinwender, Tamara
committed
grid-area: main;
}
Steinwender, Tamara
committed
grid-template-rows: 40px 55px auto;
Steinwender, Tamara
committed
grid-template-columns: auto;
}
Steinwender, Tamara
committed
grid-area: header;
padding: 5px;
}
Steinwender, Tamara
committed
flex-grow: 1;
}
Steinwender, Tamara
committed
height: 20px;
}
#nextcloud-file-picker,
#clipboard-file-picker {
Steinwender, Tamara
committed
padding: 0px;
}
}
/**************************\\
Mobile Portrait Styles
\\**************************/
@media only screen and (orientation: portrait) and (max-width: 768px) {
Steinwender, Tamara
committed
}
`;