owncloud/core

View on GitHub
apps/files/css/files.css

Summary

Maintainability
Test Coverage
/* Copyright (c) 2011, Jan-Christoph Borchardt, http://jancborchardt.net
 This file is licensed under the Affero General Public License version 3 or later.
 See the COPYING-README file. */

/* SETTINGS */
#files-setting-showhidden {
    padding-bottom: 8px;
}

/* FILE MENU */
.actions {
    padding: 5px;
    height: 32px;
    display: inline-block;
    float: left;
}

.actions .button,
.actions button,
.actions input {
    margin: 0;
    float: left;
}

.actions .button a {
    color: #555;
}

.actions .button a:active,
.actions .button a:focus,
.actions .button a:hover {
    color: #333;
}

.actions.hidden {
    display: none;
}

.actions.creatable {
    position: relative;
    z-index: -30;
}

#trash {
    margin-right: 8px;
    float: right;
    z-index: 1010;
    padding: 10px;
    font-weight: normal;
}

#fileList .error,
.newFileMenu .error {
    color: #e9322d;
    border-color: #e9322d;
    -webkit-box-shadow: 0 0 6px #f8b9b7;
    -moz-box-shadow: 0 0 6px #f8b9b7;
    box-shadow: 0 0 6px #f8b9b7;
}

/* FILE TABLE */
#filestable {
    position: relative;
    width: 100%;
}

#filestable.has-controls {
    top: 44px;
}

#filestable tbody tr {
    background-color: #fff;
    height: 51px;
}

/* fit app list view heights */
.app-files #app-content > .viewcontainer {
    min-height: 0;
}

.app-files #app-content {
    overflow-x: hidden;
}

/* icons for sidebar */
.nav-icon-files {
    background-image: url("../img/folder.svg");
}

.nav-icon-favorites {
    background-image: url("../img/star.svg");
}

.nav-icon-sharingin,
.nav-icon-sharingout {
    background-image: url("../img/share.svg");
}

.nav-icon-sharinglinks {
    background-image: url("../img/public.svg");
}

.nav-icon-extstoragemounts {
    background-image: url("../img/external.svg");
}

.nav-icon-trashbin {
    background-image: url("../img/delete.svg");
}

#app-navigation .nav-files a.nav-icon-files {
    width: auto;
}
/* button needs overrides due to navigation styles */
#app-navigation .nav-files a.new {
    width: 40px;
    height: 32px;
    padding: 0 10px;
    margin: 0;
    cursor: pointer;
}

#app-navigation .nav-files a.new.hidden {
    display: none;
}

#app-navigation .nav-files a.new.disabled {
    opacity: 0.3;
}

#filestable tbody tr {
    background-color: #fff;
    height: 40px;
}

#filestable tbody tr.highlighted,
#filestable tbody tr.highlighted .name:focus,
#filestable tbody tr.searchresult,
#filestable tbody tr.selected,
#filestable tbody tr:active,
#filestable tbody tr:focus,
#filestable tbody tr:hover,
table tr.mouseOver td {
    background-color: #f8f8f8;
}

tbody a {
    color: #000;
}

span.extension,
span.uploading,
td.date {
    color: #999;
}

span.extension {
    filter: alpha(opacity=70);
    opacity: 0.7;
    -webkit-transition: opacity 300ms;
    -moz-transition: opacity 300ms;
    -o-transition: opacity 300ms;
    transition: opacity 300ms;
    vertical-align: top;
}

tr:focus span.extension,
tr:hover span.extension {
    filter: alpha(opacity=100);
    opacity: 1;
    color: #777;
}

table th,
table th a {
    color: #999;
}

table.multiselect th a {
    color: #000;
}

table th .columntitle {
    display: block;
    padding: 15px;
    height: 50px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    vertical-align: middle;
}

table th .columntitle.name {
    padding-left: 5px;
    padding-right: 80px;
    margin-left: 50px;
}

table th .sort-indicator {
    width: 10px;
    height: 8px;
    margin-left: 5px;
    display: inline-block;
    vertical-align: text-bottom;
    filter: alpha(opacity=30);
    opacity: 0.3;
}

.multiselect .sort-indicator,
.sort-indicator.hidden,
table.multiselect th:focus .sort-indicator.hidden,
table.multiselect th:hover .sort-indicator.hidden {
    visibility: hidden;
}

.multiselect .sort,
.multiselect .sort span {
    cursor: default;
}

table th:focus .sort-indicator.hidden,
table th:hover .sort-indicator.hidden {
    visibility: visible;
}

table td,
table th {
    border-bottom: 1px solid #eee;
    text-align: left;
    font-weight: normal;
}

table td {
    padding: 0 15px;
    font-style: normal;
    background-position: 8px center;
    background-repeat: no-repeat;
}

table th#headerName {
    position: relative;
    width: 9999px;
    /* not really sure why this works better than 100% … table styling */
    padding: 0;
}

#headerName-container {
    position: relative;
    height: 50px;
}

.has-favorites #headerName-container {
    padding-left: 50px;
}

table td.filesize,
table th#headerSize {
    text-align: right;
}

table td.column-last,
table td.date,
table th#headerDate,
table th.column-last {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    position: relative;
    /* this can not be just width, both need to be set … table styling */
    min-width: 130px;
    max-width: 130px;
}

/* Multiselect bar */
#filestable.multiselect {
    top: 95px;
}

table.multiselect thead {
    position: fixed;
    top: 89px;
    z-index: 10;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    left: 250px;
    /* sidebar */
}

table thead th {
    background-color: #fff;
}

table.multiselect thead th {
    background-color: rgba(255, 255, 255, 0.95);
    /* like controls bar */
    color: #000;
    font-weight: bold;
    border-bottom: 0;
}

#app-content.with-app-sidebar table.multiselect thead {
    margin-right: 27%;
}

table.multiselect #headerName {
    position: relative;
    width: 9999px;
    /* when we use 100%, the styling breaks on mobile … table styling */
}

table.multiselect #modified {
    display: none;
}

table td.fileaction,
table td.selection,
table th.selection {
    width: 32px;
    text-align: center;
}

table td.filename a.name {
    position: relative;
    /* Firefox needs to explicitly have this default set … */
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    display: block;
    height: 50px;
    line-height: 50px;
    padding: 0;
}

table td.filename .thumbnail {
    display: inline-block;
    width: 32px;
    height: 32px;
    margin-left: 8px;
    margin-top: 9px;
    cursor: pointer;
    float: left;
    position: absolute;
    z-index: 4;
}

table td.filename input.filename {
    width: 70%;
    margin-top: 9px;
    margin-left: 48px;
    cursor: text;
}
/* hack to disable cursor on non-clickable links as removing the anchor tag would break more */
#filestable td.filename a.name.disable-click,
#filestable td.filename a.name.disable-click span,
#filestable tr.share-state-pending td.filename .action-share,
#filestable tr.share-state-pending td.filename .action-share span,
#filestable tr.share-state-pending td.filename .innernametext,
#filestable tr.share-state-pending td.filename .thumbnail,
#filestable tr.share-state-rejected td.filename .innernametext,
#filestable tr.share-state-rejected td.filename .thumbnail {
    cursor: default;
}

.has-favorites table td.filename input.filename {
    margin-left: 52px;
}

table td.create,
table td.delete,
table td.download,
table td.filename a,
table td.login,
table td.logout,
table td.upload {
    padding: 3px 8px 8px 3px;
}

.column-last > span:first-child,
.modified,
.uploadtext,
table td.filename .nametext {
    float: left;
    padding: 15px 0;
    text-overflow: ellipsis;
}

.column-last > span:first-child,
.modified {
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 110px;
}

/* TODO fix usability bug (accidental file/folder selection) */
table td.filename .nametext {
    position: absolute;
    left: 55px;
    padding: 0;
    overflow: hidden;
    max-width: 800px;
    height: 100%;
}

.has-favorites #fileList td.filename a.name {
    left: 50px;
    margin-right: 50px;
}

.hide-hidden-files #fileList tr.hidden-file,
.hide-hidden-files #fileList tr.hidden-file.dragging {
    display: none;
}

#fileList tr.animate-opacity {
    -webkit-transition: opacity 250ms;
    -moz-transition: opacity 250ms;
    -o-transition: opacity 250ms;
    transition: opacity 250ms;
}

#fileList tr.dragging {
    opacity: 0.2;
}

table td.filename .nametext .innernametext {
    text-overflow: ellipsis;
    overflow: hidden;
    position: relative;
    display: inline-block;
    vertical-align: top;
    white-space: pre;
}

@media only screen and (min-width: 1500px) {
    table td.filename .nametext .innernametext {
        max-width: 790px;
    }

    .with-app-sidebar table td.filename .nametext .innernametext {
        max-width: 390px;
    }
}
@media only screen and (min-width: 1366px) and (max-width: 1500px) {
    table td.filename .nametext .innernametext {
        max-width: 660px;
    }

    .with-app-sidebar table td.filename .nametext .innernametext {
        max-width: 290px;
    }
}
@media only screen and (min-width: 1200px) and (max-width: 1366px) {
    table td.filename .nametext .innernametext {
        max-width: 500px;
    }

    .with-app-sidebar table td.filename .nametext .innernametext {
        max-width: 230px;
    }
}
@media only screen and (min-width: 1100px) and (max-width: 1200px) {
    table td.filename .nametext .innernametext {
        max-width: 400px;
    }

    .with-app-sidebar table td.filename .nametext .innernametext {
        max-width: 230px;
    }
}
@media only screen and (min-width: 1000px) and (max-width: 1100px) {
    table td.filename .nametext .innernametext {
        max-width: 310px;
    }

    .with-app-sidebar table td.filename .nametext .innernametext {
        max-width: 230px;
    }
}
@media only screen and (min-width: 768px) and (max-width: 1000px) {
    table td.filename .nametext .innernametext {
        max-width: 240px;
    }

    .with-app-sidebar table td.filename .nametext .innernametext {
        max-width: 230px;
    }
}

/* for smaller resolutions - see mobile.css */

table td.filename .uploadtext {
    position: absolute;
    font-weight: normal;
    margin-top: 5px;
    height: 20px;
    padding: 10px 0;
    font-size: 11px;
    filter: alpha(opacity=50);
    opacity: 0.5;
}

.ie8 input[type="checkbox"] {
    padding: 0;
}

/* File checkboxes */
#fileList tr td.filename > .selectCheckBox + label:before {
    opacity: 0;
    position: absolute;
    bottom: 4px;
    right: 0;
    z-index: 10;
}

#fileList tr:not(:hover):not(.selected) td.filename .thumbnail.sharetree-item:after {
    position: absolute;
    display: block;
    content: '';
    bottom: 0px;
    right: -5px;
    z-index: 10;
    background-image: url(../../../core/img/actions/shared.svg);
    width: 14px;
    height: 14px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
    background-color: #bfbfbf;
    border-radius: 50%;
}

/* Show checkbox when hovering, checked, or selected */
html.ie8 #fileList tr td.filename > .selectCheckBox:checked,
html.ie8 #fileList tr.selected td.filename > .selectCheckBox,
html.ie8 #fileList tr:focus td.filename > .selectCheckBox,
html.ie8 #fileList tr:hover td.filename > .selectCheckBox,
html:not(.ie8) #fileList tr td.filename > .selectCheckBox:checked + label:before,
html:not(.ie8) #fileList tr.selected td.filename > .selectCheckBox + label:before,
html:not(.ie8) #fileList tr:focus td.filename > .selectCheckBox + label:before,
html:not(.ie8) #fileList tr:hover td.filename > .selectCheckBox + label:before {
    opacity: 1;
}

html.ie8 #fileList tr td.filename > .selectCheckBox[checked=checked],
html.ie8 #fileList tr.selected td.filename > .selectCheckBox,
html.ie8 #fileList tr:focus td.filename > .selectCheckBox,
html.ie8 #fileList tr:hover td.filename > .selectCheckBox {
    filter: alpha(opacity=100);
}

/* Use label to have bigger clickable size for checkbox */
#fileList tr td.filename > .selectCheckBox + label,
.select-all + label {
    background-position: 30px 30px;
    height: 50px;
    position: absolute;
    width: 50px;
    z-index: 5;
}

#fileList tr td.filename > .selectCheckBox {
    /* sometimes checkbox height is bigger (KDE/Qt), so setting to absolute
     * to prevent it to increase the height */
    position: absolute;
    z-index: 10;
}

.select-all + label {
    top: 0;
}

.ie8 .select-all,
.select-all + label:before {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 10;
}

.has-favorites .select-all {
    left: 68px;
}

#fileList tr td.filename {
    position: relative;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    -webkit-transition: background-image 500ms;
    -moz-transition: background-image 500ms;
    -o-transition: background-image 500ms;
    transition: background-image 500ms;
}

#fileList tr td.filename a.name label {
    position: absolute;
    width: 80%;
    height: 50px;
}

#fileList tr td.filename .favorite {
    display: inline-block;
    float: left;
}

#fileList tr td.filename .action-favorite {
    display: block;
    float: left;
    width: 30px;
    line-height: 100%;
    text-align: center;
}

#delete-confirm,
#uploadsize-message {
    display: none;
}

/* File actions */
.fileactions {
    position: absolute;
    right: 0;
}

.busy .action,
.busy .fileactions {
    visibility: hidden;
}

/* fix position of bubble pointer for Files app */
#app-navigation .app-navigation-entry-menu,
.bubble {
    border-top-right-radius: 3px;
}

#app-navigation .app-navigation-entry-menu:after,
.bubble:after {
    right: 6px;
}

#app-navigation .app-navigation-entry-menu:before,
.bubble:before {
    right: 6px;
}

/* force show the loading icon, not only on hover */
#fileList .icon-loading-small {
    filter:alpha(opacity=100);
    opacity: 1 !important;
    display: inline !important;
}

#fileList img.move2trash {
    display: inline;
    margin: -8px 0;
    padding: 16px 8px 16px 8px !important;
    float: right;
}

#fileList .action.action-share-notification span,
#fileList a.name {
    cursor: default !important;
}

a.action > img {
    height: 16px;
    width: 16px;
    vertical-align: text-bottom;
}

/* Actions for selected files */
.selectedActions {
    position: absolute;
    top: 0;
    right: 0;
}

.selectedActions a {
    display: inline;
    font-size: 11px;
    line-height: 50px;
    padding: 18px 5px;
}

.selectedActions a.delete-selected {
    padding-right: 15px;
}

.selectedActions a.delete-selected.mobile.button,
.selectedActions a.download.mobile.button,
.selectedActions a.undelete.mobile.button,
.selectedActions a.hidden {
    display: none;
}

.selectedActions a img {
    position: relative;
    vertical-align: text-bottom;
    margin-bottom: -1px;
}

html.ie8 .column-mtime .selectedActions {
    top: -95px;
}

#fileList a.action {
    display: inline;
    padding: 17px 8px;
    line-height: 50px;
    filter: alpha(opacity=0);
    opacity: 0;
    display: none;
}

#fileList a.action.action-share {
    padding: 17px 14px;
}

#fileList a.action.action-menu {
    padding: 17px 0 17px 14px;
}

#fileList .filesize {
    padding: 0 15px 0 40px;
}

#fileList .popovermenu {
    margin-right: -5px;
}

.ie8 #fileList .popovermenu {
    margin-top: -10px;
}

.ie8 #fileList a.action img, #fileList tr:hover a.action, #fileList a.action.permanent, #fileList tr:focus a.action, #fileList a.action.permanent, #fileList tr:hover a.action.no-permission:hover, #fileList tr:focus a.action.no-permission:focus,
/*#fileList .name:focus .action,*/
/* also enforce the low opacity for disabled links that are hovered/focused */
#fileList .name:focus a.action.disabled:focus,
#fileList a.action.disabled img,
#fileList tr:focus a.action.disabled:focus,
#fileList tr:hover a.action.disabled:hover,
.ie8 #fileList a.action.disabled:hover img {
    filter: alpha(opacity=30);
    opacity: 0.3;
    display: inline;
}

#fileList .name:focus a.action:focus,
#fileList tr a.action.disabled.action-download,
#fileList tr:focus a.action.disabled.action-download:focus,
#fileList tr:focus a.action:focus,
#fileList tr:hover a.action.disabled.action-download:hover,
#fileList tr:hover a.action:hover,
.ie8 #fileList a.action:hover img {
    filter: alpha(opacity=70);
    opacity: 7;
    display: inline;
}

#fileList tr a.action.disabled {
    background: none;
}

/* show share action of shared items darker to distinguish from non-shared */
#fileList a.action.action-favorite.permanent,
#fileList a.action.permanent.shared-style {
    filter: alpha(opacity=70) !important;
    opacity: 0.7 !important;
}
/* always show actions on mobile, not only on hover */
#fileList a.action.action-menu.permanent {
    filter: alpha(opacity=30) !important;
    opacity: 0.3 !important;
    display: inline !important;
}

/* properly display actions in the popover menu */
#fileList .popovermenu .action {
    filter: alpha(opacity=50) !important;
    opacity: 0.5 !important;
}

#fileList .popovermenu .action:focus,
#fileList .popovermenu .action:hover {
    filter: alpha(opacity=100) !important;
    opacity: 1 !important;
}

#fileList tr a.action.action-download.disabled,
#selectedActionsList a.download.disabled {
    color: #000000;
}

#fileList tr:hover a.action.disabled:hover * {
    cursor: default;
}

.summary {
    filter: alpha(opacity=30);
    opacity: 0.3;
    /* add whitespace to bottom of files list to correctly show dropdowns */
    height: 300px;
}

.summary,
.summary:focus,
.summary:hover,
table tr.summary td {
    background-color: transparent;
}

.summary td {
    border-bottom: none;
    vertical-align: top;
    padding-top: 20px;
}

.summary .info {
    margin-left: 40px;
}

.has-favorites .summary .info {
    margin-left: 90px;
}

table.dragshadow {
    width: auto;
}

table.dragshadow td.filename {
    padding-left: 60px;
    padding-right: 16px;
    height: 36px;
}

table.dragshadow td.size {
    padding-right: 8px;
}

#upgrade {
    width: 400px;
    position: absolute;
    top: 200px;
    left: 50%;
    text-align: center;
    margin-left: -200px;
}

.mask {
    z-index: 50;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    background-repeat: no-repeat no-repeat;
    background-position: 50%;
    opacity: 0.7;
    filter: alpha(opacity=70);
    transition: opacity 100ms;
    -moz-transition: opacity 100ms;
    -o-transition: opacity 100ms;
    -ms-transition: opacity 100ms;
    -webkit-transition: opacity 100ms;
}

.mask.transparent {
    opacity: 0;
}

#fileList .popovermenu a.action img {
    padding: initial;
}

#fileList .popovermenu a.action {
    padding: 10px;
    margin: -10px;
}

html.ie8 #controls .button.new {
    padding-right: 0;
}

.newFileMenu {
    min-width: 140px;
    margin-left: -56px;
    margin-top: 25px;
    z-index: 1001;
    right: initial;
}

.newFileMenu .menuitem {
    white-space: nowrap;
    overflow: hidden;
    display: flex;
}

.newFileMenu .menuitem .icon{
    margin-top: 7px;
}

.newFileMenu.popovermenu .menuitem,
.newFileMenu.popovermenu a.menuitem,
.newFileMenu.popovermenu label.menuitem {
    padding: 0;
    margin: 0;
}

.newFileMenu.popovermenu a.menuitem.active {
    opacity: 1;
    filter: alpha(opacity=100);
}

.newFileMenu.bubble:after {
    left: 75px;
    right: auto;
}

.newFileMenu.bubble:before {
    left: 75px;
    right: auto;
}

.newFileMenu .action-menu button {
    font-size: 11px;
}

#fileList .popovermenu .action {
    display: block;
    line-height: 30px;
    padding-left: 5px;
    color: #000;
    padding: 0;
}

#controls .actions .button .icon,
#filestable .filename .action .icon,
#filestable .selectedActions a .icon {
    display: inline-block;
    vertical-align: middle;
    background-size: 16px 16px;
}

#controls .actions .button .icon.hidden,
#filestable .filename .action .icon.hidden,
#filestable .selectedActions a .icon.hidden {
    display: none;
}

#controls .actions .button .icon.loading,
#filestable .filename .action .icon.loading,
#filestable .selectedActions a .icon.loading {
    width: 15px;
    height: 15px;
}

.app-files .actions .button.new .icon {
    margin-bottom: 2px;
}

#filestable tbody tr.canDrop,
.canDrop {
    background-color: rgba(255, 255, 140, 1);
}

/* Default files-list incl. sharing */

#app-content-files table td.filename .nametext,
#app-content-sharingin table td.filename .nametext,
#app-content-sharingout table td.filename .nametext {
    position: static;
    left: inherit;
    min-width: 50px;
}

#app-content-files.has-favorites #fileList td.filename a.name,
#app-content-sharingin.has-favorites #fileList td.filename a.name,
#app-content-sharingout.has-favorites #fileList td.filename a.name {
    display: flex;
    justify-content: space-between;
    left: 50px;
    margin-right: 50px;
}

#app-content-files .fileactions,
#app-content-sharingin .fileactions,
#app-content-sharingout .fileactions {
    position: inherit;
    right: inherit;
}

.fileActionsApplicationSelectMenu.bubble{
    right: initial;
    left: 45px !important;
}

.fileActionsApplicationSelectMenu.bubble:after{
    right: initial;
    left: 15px !important;
}