TeaWeb/shared/css/static/modal-icons.scss

503 lines
7.6 KiB
SCSS
Raw Normal View History

2019-10-13 21:33:07 +02:00
@import "properties";
@import "mixin";
2019-03-25 20:04:04 +01:00
.modal-icon-select {
2019-10-13 21:33:07 +02:00
@include user-select(none);
2019-03-25 20:04:04 +01:00
display: flex;
flex-direction: column;
justify-content: stretch;
2019-10-13 21:33:07 +02:00
width: 50em;
/*
.right, .left {
.header {
text-transform: uppercase;
color: #557edc;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
*/
2019-03-25 20:04:04 +01:00
.container-icons {
flex-grow: 1;
flex-shrink: 1;
display: flex;
flex-direction: row;
justify-content: stretch;
> div {
width: 50%;
&:not(:first-of-type) {
margin-left: 10px;
}
}
.content, .container-icons-list {
flex-grow: 1;
flex-shrink: 1;
display: flex;
flex-direction: column;
}
.container-icons-list {
position: relative;
> div {
border-radius: 3px;
}
.container-icons-remote, .container-icons-local {
width: 100%;
min-height: 300px;
overflow-x: hidden;
overflow-y: auto;
2019-10-13 21:33:07 +02:00
background-color: $color_list_background;
border: 1px $color_list_border solid;
border-radius: $border_radius_large;
padding: .5em;
&.container-icons-local {
font-size: 16px;
}
2019-03-25 20:04:04 +01:00
.icon-container, .icon {
margin-left: 1px;
margin-right: 1px;
}
&.icon-select {
.icon-container, .icon {
cursor: pointer;
&:hover {
2019-10-13 21:33:07 +02:00
border-radius: .1em;
2019-03-25 20:04:04 +01:00
background-color: #00000011;
border: 1px solid black;
}
&.selected {
2019-10-13 21:33:07 +02:00
border-radius: .1em;
2019-03-25 20:04:04 +01:00
background-color: #00330011;
border: 1px solid red;
}
&:hover, &.selected {
width: 18px;
height: 18px;
margin: -1px 0px;
}
}
}
}
.container-loading, .container-no-permissions, .container-error {
top: 0;
bottom: 0;
left: 0;
right: 0;
2019-10-13 21:33:07 +02:00
font-size: 1.1em;
color: hsla(0, 0%, 40%, 1);
2019-03-25 20:04:04 +01:00
position: absolute;
2019-10-13 21:33:07 +02:00
background-color: #00000045;
2019-03-25 20:04:04 +01:00
cursor: not-allowed;
text-align: center;
display: flex;
flex-direction: column;
justify-content: space-around;
> a {
padding-bottom: 30px;
}
}
.container-loading {
z-index: 40;
}
.container-error {
z-index: 30;
}
.container-no-permissions {
z-index: 20;
}
}
}
.container-buttons {
margin-top: 20px;
flex-grow: 0;
flex-shrink: 0;
display: flex;
flex-direction: row;
2019-10-13 21:33:07 +02:00
justify-content: space-between;
2019-03-25 20:04:04 +01:00
.spacer {
2019-10-13 21:33:07 +02:00
min-width: 0;
2019-03-25 20:04:04 +01:00
flex-grow: 1;
flex-shrink: 1;
}
2019-10-13 21:33:07 +02:00
button {
2019-03-25 20:04:04 +01:00
flex-grow: 0;
2019-10-13 21:33:07 +02:00
flex-shrink: 1;
width: 8em;
min-width: 4em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-right: 1em;
2019-03-25 20:04:04 +01:00
}
.button-select {
margin-left: 10px;
display: flex;
align-items: center;
flex-direction: row;
2019-10-13 21:33:07 +02:00
justify-content: center;
2019-03-25 20:04:04 +01:00
2019-10-13 21:33:07 +02:00
a, div {
align-self: center;
}
> div {
font-size: 16px;
display: flex;
flex-direction: column;
justify-content: center;
margin-left: .5rem;
> div {
display: flex;
}
2019-03-25 20:04:04 +01:00
}
}
.button-select-no-icon {
margin-left: 10px;
}
}
2019-05-24 22:14:02 +02:00
}
.modal-icon-upload {
2019-10-13 21:33:07 +02:00
@include user-select(none);
2019-05-24 22:14:02 +02:00
2019-10-13 21:33:07 +02:00
width: 50em;
2019-05-24 22:14:02 +02:00
min-width: 300px;
2019-10-13 21:33:07 +02:00
padding: 0!important;
2019-05-24 22:14:02 +02:00
display: flex;
flex-direction: column;
.container-select {
2019-10-13 21:33:07 +02:00
padding: 1em;
2019-06-26 14:06:20 +02:00
min-height: 130px;
2019-05-24 22:14:02 +02:00
display: flex;
flex-direction: row;
justify-content: stretch;
.container-icons {
flex-grow: 1;
flex-shrink: 1;
width: min-content;
min-width: 150px;
2019-06-26 14:06:20 +02:00
min-height: 130px;
overflow-y: auto;
2019-05-24 22:14:02 +02:00
2019-10-13 21:33:07 +02:00
margin-right: 1em;
background-color: $color_list_background;
border: 1px $color_list_border solid;
2019-05-24 22:14:02 +02:00
2019-10-13 21:33:07 +02:00
border-radius: $border_radius_large;
2019-05-24 22:14:02 +02:00
2019-10-13 21:33:07 +02:00
padding: .5em;
2019-05-24 22:14:02 +02:00
display: block;
.icon-container {
2019-10-13 21:33:07 +02:00
cursor: pointer;
2019-05-24 22:14:02 +02:00
&:hover {
2019-10-13 21:33:07 +02:00
border-radius: .1em;
background-color: #00000011;
2019-05-24 22:14:02 +02:00
border: 1px solid black;
}
&.selected {
2019-10-13 21:33:07 +02:00
border-radius: .1em;
background-color: #00330011;
2019-05-24 22:14:02 +02:00
border: 1px solid red;
}
2019-10-13 21:33:07 +02:00
&:hover, &.selected {
width: 18px;
height: 18px;
margin: -1px 0px;
}
> img {
height: 16px;
width: 16px;
}
2019-05-24 22:14:02 +02:00
}
}
.container-buttons {
flex-grow: 1;
flex-shrink: 2;
min-width: 50px;
max-width: 200px;
display: flex;
flex-direction: column;
justify-content: space-between;
.buttons-manage {
display: flex;
flex-direction: column;
justify-content: flex-start;
2019-10-13 21:33:07 +02:00
> button:not(:first-of-type) {
margin-top: .5em;
}
2019-05-24 22:14:02 +02:00
}
}
}
.container-upload {
2019-10-13 21:33:07 +02:00
-webkit-box-shadow: 0px -5px 5px 0px rgba(0,0,0,0.25);
-moz-box-shadow: 0px -5px 5px 0px rgba(0,0,0,0.25);
box-shadow: 0px -5px 2px 0px rgba(0, 0, 0, 0.25);
2019-06-26 14:06:20 +02:00
display: flex;
flex-direction: column;
2019-10-13 21:33:07 +02:00
padding: .5em 1em 1em;
2019-05-24 22:14:02 +02:00
.container-error, .container-success {
width: 100%;
min-height: 60px;
2019-10-13 21:33:07 +02:00
border: 2px solid;
border-radius: $border_radius_middle;
&.container-error {
border-color: #8000007F;
background-color: #80000040;
}
&.container-success {
margin-top: .5em;
border-color: #328f3340;
background-color: #328f3320;
}
padding: .5em;
display: flex;
flex-direction: row;
justify-content: space-between;
> * {
align-self: center;
2019-05-24 22:14:02 +02:00
display: inline-block;
}
button {
2019-10-13 21:33:07 +02:00
width: 6em;
2019-05-24 22:14:02 +02:00
}
2019-10-13 21:33:07 +02:00
&.hidden {
opacity: 0;
height: 0;
min-height: 0;
padding: 0;
margin: 0;
}
@include transition(.25s ease-in-out);
2019-05-24 22:14:02 +02:00
}
.container-info {
display: flex;
flex-direction: row;
justify-content: space-between;
}
.container-process {
2019-10-13 21:33:07 +02:00
margin-top: .5em;
2019-05-24 22:14:02 +02:00
width: 100%;
min-height: 100px;
2019-06-26 14:06:20 +02:00
overflow-y: auto;
2019-10-13 21:33:07 +02:00
background-color: $color_list_background;
border: 1px $color_list_border solid;
border-radius: $border_radius_large;
2019-05-24 22:14:02 +02:00
.upload-entry {
display: flex;
flex-direction: row;
justify-content: stretch;
.container-icon {
height: 16px;
width: 16px;
flex-grow: 0;
flex-shrink: 0;
margin: 1px 1px 1px 4px;
align-self: center;
2019-10-13 21:33:07 +02:00
display: flex;
flex-direction: column;
justify-content: center;
2019-05-24 22:14:02 +02:00
> img {
height: 16px;
width: 16px;
}
}
.progress {
position: relative;
flex-grow: 1;
flex-shrink: 1;
2019-10-13 21:33:07 +02:00
display: flex;
flex-direction: row;
justify-content: flex-start;
min-width: 2em;
2019-05-24 22:14:02 +02:00
margin: 2px 5px 2px 3px;
height: 16px;
2019-10-13 21:33:07 +02:00
overflow: hidden;
font-size: .75rem;
background-color: #222222;
border: 1px solid hsla(0, 0%, 10%, 1);
border-radius: .25rem;
2019-05-24 22:14:02 +02:00
.progress-bar {
height: 100%;
2019-10-13 21:33:07 +02:00
&.bg-danger {
background-color: #8000007F;
}
&.bg-success {
background-color: #328f337F;
}
@include transition(width 1s ease-in-out, background-color $button_hover_animation_time ease-in-out);
2019-05-24 22:14:02 +02:00
}
.progress-message {
position: absolute;
width: 100%;
2019-10-13 21:33:07 +02:00
display: flex;
flex-direction: row;
justify-content: center;
flex-grow: 1;
flex-shrink: 1;
min-width: 1em;
line-height: normal;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
2019-05-24 22:14:02 +02:00
}
}
}
}
}
input[type="file"] {
display: none;
}
}
@media screen and (max-width: 650px) {
.modal-icon-upload {
.container-select {
flex-direction: column;
.container-icons {
width: 100%;
margin-right: 0;
}
.container-buttons {
max-width: unset;
margin-top: 5px;
> button {
width: 100%;
}
.buttons-manage {
display: flex;
flex-direction: row;
justify-content: stretch;
> button {
width: 50%;
flex-grow: 1;
flex-shrink: 1;
min-width: 0;
}
}
}
}
.container-upload {
display: flex;
flex-direction: column;
justify-content: flex-start;
}
}
2019-03-25 20:04:04 +01:00
}