taiga-front/app/styles/modules/common/attachments.scss

186 lines
3.8 KiB
SCSS

.attachments {
margin-bottom: 2rem;
}
.attachments-header {
align-content: space-between;
align-items: center;
background: $whitish;
display: flex;
justify-content: space-between;
padding: .5rem 1rem;
.attachments-title {
@extend %medium;
@extend %bold;
color: $grayer;
}
.attachments-num,
.attachments-text {
margin-right: .1rem;
}
.icon {
@extend %large;
color: $grayer;
cursor: pointer;
&:hover {
color: $primary;
transition: color .2s ease-in;
}
}
}
.single-attachment {
@extend %small;
align-items: center;
border-bottom: 1px solid $whitish;
display: flex;
padding: .5rem 0 .5rem 1rem;
position: relative;
&:hover {
.attachment-settings {
.settings {
opacity: 1;
transition: opacity .2s ease-in;
}
}
}
&.ui-sortable-helper {
background: lighten($primary, 60%);
box-shadow: 1px 1px 10px rgba($black, .1);
transition: background .2s ease-in;
}
&.deprecated {
color: $gray-light;
.attachment-name a {
color: $gray-light;
}
}
&.sortable-placeholder {
background: $whitish;
height: 40px;
}
.attachment-name {
@extend %bold;
@include ellipsis(200px);
flex-basis: 35%;
flex-grow: 1;
padding-right: 1rem;
.icon {
margin-right: .5rem;
}
}
.attachment-size {
color: $gray-light;
flex-basis: 15%;
flex-grow: 1;
margin-right: .5rem;
}
.attachment-comments,
.editable-attachment-comment {
flex-basis: 35%;
flex-grow: 1;
span {
color: $gray;
}
}
.editable-attachment-comment {
@extend %small;
}
.attachment-settings {
flex-basis: 15%;
flex-grow: 1;
.settings,
.editable-settings {
@extend %large;
color: $gray-light;
display: block;
position: absolute;
&:hover {
color: $primary;
}
}
.settings {
opacity: 0;
top: .5rem;
}
.editable-settings {
opacity: 1;
top: 1rem;
}
.icon-edit,
.icon-floppy {
right: 3.5rem;
}
.icon-delete {
right: 2rem;
&:hover {
color: $red;
}
}
.icon-drag-v {
cursor: move;
right: 0;
}
}
.icon-delete {
@extend %large;
color: $gray-light;
&:hover {
color: $red;
}
}
.editable-attachment-deprecated {
padding-left: 1rem;
span {
color: $gray-light;
}
input {
margin-right: .2rem;
vertical-align: middle;
&:checked+span {
color: $grayer;
}
}
}
.percentage {
background: rgba($primary, .1);
bottom: 0;
height: 40px;
left: 0;
position: absolute;
top: 0;
width: 45%;
}
}
.more-attachments {
@extend %small;
border-bottom: 1px solid $gray-light;
display: block;
padding: 1rem 0 1rem 1rem;
span {
color: $gray-light;
}
.more-attachments-num {
color: $primary;
margin-left: .5rem;
}
&:hover {
background: lighten($primary, 60%);
transition: background .2s ease-in;
}
}
.add-attach {
cursor: pointer;
overflow: hidden;
position: relative;
input {
display: none;
}
span {
@extend %small;
color: $gray-light;
}
}