owncloud/core

View on GitHub
apps/files_sharing/css/sharetabview.css

Summary

Maintainability
Test Coverage
.app-files .shareTabView {
    min-height: 100px;
}

.shareTabView .oneline {
    white-space: nowrap;
}

.shareTabView .shareWithLoading {
    padding-left: 10px;
    right       : 30px;
    top         : 2px;
}

.shareTabView label {
    white-space: nowrap;
}

.shareTabView input[type="checkbox"] {
    margin        : 0 3px 0 8px;
    vertical-align: middle;
}

.shareTabView input[type="text"],
.shareTabView input[type="password"] {
    width      : 94%;
    margin-left: 0;
}

.shareTabView input[type="text"].shareWithField,
.shareTabView input[type="text"].emailField,
.shareTabView input[type="text"].linkText {
    width: 80%;
}

.shareTabView form {
    font-size   : 100%;
    margin-left : 0;
    margin-right: 0;
}

#shareWithList {
    list-style-type: none;
    padding        : 0 0 16px;
}

#shareWithList li {
    padding: 5px;
    font-weight: bold;
    white-space: normal;
    background: #f8f8f8;
    border-bottom: 1px solid #aaa;
    min-height: 32px;
}

#shareWithList .unshare img {
    vertical-align: text-bottom;
    /* properly align icons */
}

#shareWithList label input[type=checkbox] {
    margin-left: 0;
    position   : relative;
}

#shareWithList .username {
    padding-right: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 256px;
    display: inline-block;
    overflow: hidden;
    vertical-align: middle;
}

#shareWithList li label {
    margin-right: 8px;
}

#shareWithList .expiration {
    max-width: 175px;
    text-align: left;
    margin: 0 0 0 5px;
}

#shareWithList .removeExpiration {
    text-indent: -9999px;
    border: 0 none;
    transform: translate(calc(-100% - 5px), -1px);
    background-color: #F8F8F8;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('../../../core/img/actions/close.svg');
}

#shareDialogLinkList .link-shares + #shareTreeUserGroupList {
    margin-top: -20px;
}

#shareWithList + #shareTreeUserGroupList {
    margin-top: -16px;
}

#shareTreeLinkList .shareTree-item,
#shareTreeUserGroupList .shareTree-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-top: 5px;
    padding-bottom: 5px;
}

#shareTreeUserGroupList .shareTree-item-name {
    max-width: 256px;
}

#shareTreeUserGroupList .shareTree-item-path {
    margin-left: auto;
    margin-right: 8px;
}

.shareTree-item * {
    cursor: pointer;
}

.shareTree-item-avatar {
    border-radius: 50%;
    float: left;
    min-width: 32px;
    min-height: 32px;
}

.shareTree-item-avatar + .shareTree-item-name,
.shareTree-item-name + .shareTree-item-path {
    margin-left: 8px;
    white-space: nowrap;
}

.shareTree-item-avatar + .shareTree-item-name {
    overflow: hidden;
    text-overflow: ellipsis;
}

.shareTabView .icon-loading-small {
    display         : inline-block;
    z-index         : 1;
    background-color: white;
    padding         : 2px 0;
}

.shareTabView .linkShareView .icon-loading-small,
.shareTabView .shareWithList .icon-loading-small {
    position: absolute;
}

.shareTabView .linkPass .icon-loading-small {
    margin-top: 9px;
}

.shareTabView .icon {
    display        : inline-block;
    background-size: 16px 16px;
}

.shareTabView .privacyWarningMessage {
    margin-top: 20px;
}

.shareTabView .shareWithList .mailNotificationSpinner {
    position      : relative;
    vertical-align: middle;
    margin-right  : 10px;
}

.subTabHeaders .tabHeaders {
    margin-left : 0;
    margin-right: 0;
}

.link-shares {
    margin-bottom: 20px;
}

.link-entry {
    display    : flex;
    align-items: center;
    min-height : 50px;
    position   : relative;
    padding    : 0 5px 0 5px;
    background : #f8f8f8;
    border-bottom: 1px solid #aaa;
}

.link-entry .socialShareContainer {
    position        : absolute;
    right           : 0;
    top             : -20px;
    background-color: rgba(0, 0, 0, 0.5);
    padding         : 0 2px 2px 5px;
    border-radius   : 3px;
}

.link-entry--icon {
    height             : 32px;
    width              : 32px;
    background-color   : #b4b4b4;
    background-position: 8px 8px;
    border-radius      : 50%;
    margin-right       : 10px;
    flex-shrink        : 0;
}

.link-entry--title {
    flex-grow    : 1;
    font-weight  : bold;
    overflow-x   : hidden;
    text-overflow: ellipsis;
    white-space  : nowrap;
}

.link-entry--icon-button {
    margin-left       : 10px;
    opacity           : 0.333;
    -webkit-transition: opacity 0.25s;
    -moz-transition   : opacity 0.25s;
    -ms-transition    : opacity 0.25s;
    -o-transition     : opacity 0.25s;
    transition        : opacity 0.25s;
}

.link-entry--icon-button:hover {
    opacity: 1;
}

.link-entry--icon-button span {
    cursor: pointer;
}

/* -------------------------------------------------- USER & GROUP SHARES --- */

.user-shares {
    margin: 20px -15px;
}

.user-share {
    transition: all 0.25s ease;
    padding   : 0 15px;
}

.user-share .icon-settings-dark {
    transition: all 0.25s ease;
    opacity   : 0.25;
}

.user-share.-active,
.user-share:hover {
    background-color: #eee;
}

.user-share.-active .icon-settings-dark,
.user-share:hover .icon-settings-dark {
    opacity: 0.25;
}

.user-share.-active .user-share--dropdown {
    height: 30px;
}

.user-share:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.user-share .icon-settings-dark {
    opacity: 0;
}

.user-share--user {
    display    : flex;
    align-items: center;
}

.user-share--title {
    font-weight : bold;
    margin-right: 5px;
}

.user-share--main {
    display        : flex;
    align-items    : center;
    min-height     : 50px;
    justify-content: space-between;
}

.user-share--checkbox:not(:first-child) {
    margin-left: 5px;
}

.user-share--dropdown {
    overflow       : hidden;
    height         : 0;
    transition     : height 0.25s ease-in-out;
    display        : flex;
    justify-content: space-between;
}

.user-share--permission-preview {
    white-space  : nowrap;
    overflow     : hidden;
    text-overflow: ellipsis;
}

.user-share--permission-preview li {
    display  : inline;
    font-size: 12px;
}

.user-share--permission-preview li:first-child:before {
    content: "(";
}

.user-share--permission-preview li:not(:last-child):after {
    content: ",";
}

.user-share--permission-preview li:last-child:after {
    content: ")";
}

.user-share--permission-list li {
    display: inline;
}

.user-share--toggle-dropdown {
    cursor: pointer;
}

/* ---------------------------------------------------- PUBLIC LINK MODAL --- */

.public-link-modal--item {
    margin-bottom: 20px;
}

.public-link-modal--input,
.public-link-modal--label {
    position: relative;
    display : block;
    width   : calc(100% - 15px) !important;
}

.public-link-modal--input[type="password"],
.public-link-modal--input.datepicker {
    min-width: 175px;
}

.minify {
    width   : 1px;
    height  : 1px;
    overflow: hidden;
    opacity : 0;
}

.minify input {
    font-size: 1px;
}

.shareDialogLinkExpirationView .error-message,
.linkPass .error-message {
    color: red;
    padding: 4px;
    display: block;
}