406 lines
13 KiB
Plaintext
Raw Normal View History

2018-07-14 15:15:23 +02:00
@import (reference) "./browser.less";
@import (reference) "./colortheme-all.less";
@import (reference) "./tools.less";
@import (reference) './icon-colors.less';
2017-12-07 18:51:50 +01:00
.creation_vars(
@color: @colortheme_default-color,
@bg-color: @colortheme_default-bg
) {
@creation-color: @color;
@creation-bg-color: @bg-color;
};
2017-12-07 18:51:50 +01:00
2018-04-11 18:56:03 +02:00
.creation_main(
@color: @colortheme_default-color,
@bg-color: @colortheme_default-bg
2018-04-11 18:56:03 +02:00
) {
2018-07-14 15:15:23 +02:00
--LessLoader_require: LessLoader_currentFile();
.creation_vars(@color, @bg-color);
2018-07-14 15:15:23 +02:00
--creation-color: @color;
--creation-bg-color: @bg-color;
}
& {
.creation_vars();
2018-04-11 18:56:03 +02:00
@colortheme_creation-modal-bg: #fff;
@colortheme_creation-modal: #666;
@colortheme_creation-modal-title: @colortheme_loading-bg;
2017-12-11 12:19:44 +01:00
#cp-creation-container {
position: absolute;
2017-12-11 12:19:44 +01:00
z-index: 100000000; // #loading * 10
top: 0px;
2018-04-11 18:56:03 +02:00
//background: @colortheme_loading-bg;
background: linear-gradient(to right, @colortheme_loading-bg 0%, @colortheme_loading-bg 50%, @colortheme_loading-bg-alt 50%, @colortheme_loading-bg-alt 100%);
2017-12-07 18:51:50 +01:00
color: @colortheme_loading-color;
2017-12-11 12:19:44 +01:00
display: flex;
flex-flow: column; /* we need column so that the child can shrink vertically */
justify-content: center;
2018-04-11 18:56:03 +02:00
align-items: center;
2017-12-11 12:19:44 +01:00
width: 100%;
height: 100%;
overflow: auto;
2018-04-11 18:56:03 +02:00
.cp-creation-logo {
height: 300px;
width: 300px;
margin-top: 50px;
flex: 0 1 auto; /* allows shrink */
min-height: 0;
text-align: center;
img {
max-width: 100%;
max-height: 100%;
}
}
2017-12-11 12:19:44 +01:00
}
#cp-creation {
overflow: auto;
2017-12-07 18:51:50 +01:00
text-align: center;
2018-04-11 18:56:03 +02:00
background: @colortheme_creation-modal-bg;
color: @colortheme_creation-modal;
2017-12-11 12:19:44 +01:00
font: @colortheme_app-font;
2018-03-02 18:33:43 +01:00
outline: none;
2018-04-11 18:56:03 +02:00
width: 700px;
max-width: 90vw;
height: 500px;
max-height: calc(~"100vh - 20px");
margin: 50px;
flex-shrink: 0;
display: flex;
flex-flow: column;
2017-12-11 12:19:44 +01:00
& > div {
2018-04-11 18:56:03 +02:00
width: 100%;
2017-12-11 12:19:44 +01:00
max-width: 100%;
2018-04-11 18:56:03 +02:00
margin: auto;
2017-12-11 12:19:44 +01:00
text-align: left;
2017-12-07 18:51:50 +01:00
}
2017-12-11 12:19:44 +01:00
2018-04-11 18:56:03 +02:00
.cp-creation-title {
color: @colortheme_creation-modal-title;
font-weight: bold;
margin: 15px;
}
.cp-creation-create {
2018-03-19 16:17:19 +01:00
margin-top: 0px;
2017-12-11 12:19:44 +01:00
button {
.tools_unselectable();
padding: 15px;
2018-04-11 18:56:03 +02:00
background: linear-gradient(to right, @colortheme_logo-2, @colortheme_logo-1);
2018-03-13 11:31:08 +01:00
color: #FFF;
font-weight: bold;
2017-12-11 12:19:44 +01:00
margin: 3px 10px;
border: none;
cursor: pointer;
2018-02-28 17:02:35 +01:00
outline: none;
2018-03-19 16:17:19 +01:00
width: 100%;
2017-12-11 12:19:44 +01:00
&:hover {
2018-04-11 18:56:03 +02:00
background: linear-gradient(to right, lighten(@colortheme_logo-2, 5%), lighten(@colortheme_logo-1, 5%));
2018-03-20 11:05:43 +01:00
//background: darken(@creation-button, 5%);
2018-04-11 18:56:03 +02:00
//background: lighten(@creation-button, 5%);
2018-03-02 18:33:43 +01:00
}
2017-12-11 12:19:44 +01:00
}
}
2018-03-13 11:31:08 +01:00
.cp-creation-create {
text-align: center;
2018-04-27 17:49:04 +02:00
//margin: auto;
//margin-top: 20px;
2018-03-20 11:05:43 +01:00
width: 400px;
max-width: 100%;
button {
margin: 0;
}
2018-03-13 11:31:08 +01:00
}
2017-12-11 12:19:44 +01:00
2018-03-13 11:31:08 +01:00
#cp-creation-form {
display: flex;
flex-flow: column;
align-items: center;
flex: 1 0 auto;
justify-content: space-around;
2018-03-13 11:31:08 +01:00
& > div {
width: 400px;
max-width: 100%;
display: flex;
align-items: center;
flex-wrap: wrap;
font-size: 16px;
2018-04-27 17:49:04 +02:00
//margin: 10px 0;
2018-04-16 19:07:54 +02:00
min-height: 28px;
line-height: 28px;
2018-03-13 11:31:08 +01:00
label {
flex: 1;
2018-07-18 11:40:28 +02:00
// Force wrap when the other element in the line is 100% (IE bug):
min-width: 1px;
2018-03-13 11:31:08 +01:00
}
input[type="checkbox"] {
&+ label {
margin-bottom: 0;
flex: 1;
padding: 0 10px;
2017-12-11 12:19:44 +01:00
}
}
2018-04-11 18:56:03 +02:00
}
.cp-creation-help, .cp-creation-warning {
font-size: 18px;
color: @colortheme_form-warning;
&:hover {
color: @colortheme_form-warning-hov;
text-decoration: none;
2017-12-11 12:19:44 +01:00
}
}
2018-03-19 16:17:19 +01:00
.cp-creation-slider {
display: block;
overflow: hidden;
max-height: 0px;
2018-04-16 19:07:54 +02:00
max-width: 0px;
2018-04-11 18:56:03 +02:00
//margin-top: 10px;
2018-03-19 16:17:19 +01:00
&.active {
2018-04-11 18:56:03 +02:00
transition: max-height 0.5s ease-in-out;
2018-07-18 11:40:28 +02:00
max-width: none;
2018-04-11 18:56:03 +02:00
max-height: 100px;
2018-03-19 16:17:19 +01:00
}
2018-07-18 11:40:28 +02:00
input, select {
vertical-align: middle;
}
2018-03-19 16:17:19 +01:00
}
input, select {
font-size: 14px;
border: 1px solid @colortheme_form-border;
height: 26px;
2018-07-18 11:40:28 +02:00
line-height: 26px;
background-color: @colortheme_form-bg;
color: @colortheme_form-color;
}
2018-03-13 11:31:08 +01:00
.cp-creation-expire {
2017-12-11 12:19:44 +01:00
.cp-creation-expire-picker {
2018-03-13 11:31:08 +01:00
text-align: center;
input {
2018-04-11 18:56:03 +02:00
width: 50px;
margin: 0 5px;
}
select {
margin-right: 5px;
}
}
&.active {
label {
2018-07-18 11:40:28 +02:00
flex: none;
2018-04-11 18:56:03 +02:00
}
.cp-creation-slider {
flex: 1;
2018-03-13 11:31:08 +01:00
}
2017-12-11 12:19:44 +01:00
}
2018-03-13 11:31:08 +01:00
}
.cp-creation-password {
.cp-creation-password-picker {
text-align: center;
width: 100%;
.cp-password-container {
input {
width: 150px;
padding: 0 5px;
}
label {
2018-07-18 11:40:28 +02:00
flex: none;
}
}
}
}
2018-03-13 11:31:08 +01:00
.cp-creation-settings {
button {
margin: 0;
padding: 0;
2017-12-11 12:19:44 +01:00
}
2018-03-13 11:31:08 +01:00
.cp-filler { flex: 1; }
}
2018-03-19 16:17:19 +01:00
div.cp-creation-remember {
.cp-creation-remember-help {
2018-04-11 18:56:03 +02:00
width: 100%;
//font-style: italic;
font-size: 12px;
font-weight: bold;
color: @colortheme_form-bg;
line-height: 20px;
.fa {
margin-right: 10px;
}
2018-03-19 16:17:19 +01:00
}
}
2018-03-13 11:31:08 +01:00
div.cp-creation-template {
width: 100%;
2018-04-27 17:49:04 +02:00
//flex: 1 0 auto;
2018-04-17 18:23:58 +02:00
flex-wrap: nowrap;
.cp-creation-template-more {
font-size: 30px;
cursor: pointer;
margin: 0 5px;
text-align: center;
&:first-child {
left: 5px;
}
&:last-child {
right: 5px;
}
&:hover {
color: #888;
}
&.hidden {
visibility: hidden;
}
}
2018-03-13 11:31:08 +01:00
}
.cp-creation-template-container {
width: 100%;
2018-04-11 18:56:03 +02:00
flex: 1;
2018-03-13 11:31:08 +01:00
display: flex;
flex-wrap: wrap;
justify-content: center;
2018-04-17 18:23:58 +02:00
//overflow-y: auto;
2018-03-13 11:31:08 +01:00
align-items: center;
.cp-creation-template-element {
2018-04-11 18:56:03 +02:00
box-shadow: 2px 2px 7px @colortheme_form-border;
2018-03-19 16:17:19 +01:00
width: 135px;
padding: 5px;
2018-03-13 11:31:08 +01:00
margin: 5px;
display: inline-flex;
flex-flow: column;
box-sizing: content-box;
text-align: left;
line-height: 1em;
cursor: pointer;
2018-04-11 18:56:03 +02:00
color: black;
2018-03-13 11:31:08 +01:00
border: 1px solid transparent;
2018-07-28 11:37:38 +02:00
&.cp-creation-template-selected, &:hover {
color: @creation-color !important;
2018-07-14 15:15:23 +02:00
color: var(--creation-color) !important;
background-color: @creation-bg-color !important;
2018-07-14 15:15:23 +02:00
background-color: var(--creation-bg-color) !important;
2018-07-28 11:37:38 +02:00
.fa, .cptools {
color: @creation-color;
2018-07-14 15:15:23 +02:00
color: var(--creation-color);
2018-04-11 18:56:03 +02:00
}
2018-03-13 11:31:08 +01:00
}
transition: all 0.1s;
align-items: center;
img {
max-width: 100px;
max-height: 100px;
background: #fff;
}
.cp-creation-template-element-name {
2018-03-19 16:17:19 +01:00
flex: 1;
2018-03-13 11:31:08 +01:00
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
2018-07-18 11:40:28 +02:00
min-height: 20px;
2018-03-13 11:31:08 +01:00
height: 20px;
line-height: 20px;
margin-top: 5px;
max-width: 100%;
}
2018-07-28 11:37:38 +02:00
.fa, .cptools {
color: @creation-bg-color;
2018-07-14 15:15:23 +02:00
color: var(--creation-bg-color);
2018-03-13 11:31:08 +01:00
cursor: pointer;
width: 100px;
height: 100px;
font-size: 70px;
text-align: center;
line-height: 100px;
}
2017-12-11 12:19:44 +01:00
}
2017-12-07 18:51:50 +01:00
}
}
2018-03-13 11:31:08 +01:00
.cp-creation-deleted-container {
text-align: center;
.cp-creation-deleted {
2018-04-27 17:49:04 +02:00
margin: 0 10px;
background: @colortheme_loading-bg;
color: @colortheme_loading-color;
2018-03-13 11:31:08 +01:00
padding: 10px;
text-align: center;
font-weight: bold;
display: inline-block;
}
2018-03-13 11:31:08 +01:00
}
2018-04-11 18:56:03 +02:00
}
2018-03-13 11:31:08 +01:00
2018-04-11 18:56:03 +02:00
@media screen and (max-height: 700px) {
#cp-creation-container {
.cp-creation-logo {
//flex-shrink: 0;
display: none;
}
2018-02-28 17:02:35 +01:00
}
}
2018-04-11 18:56:03 +02:00
@media screen and (max-width: 500px) {
#cp-creation {
#cp-creation-form {
& > div {
width: 95%;
margin: 10px auto;
}
.cp-creation-expire {
2018-04-11 18:56:03 +02:00
&.active {
label {
flex: 1;
2018-03-13 11:31:08 +01:00
}
2018-04-11 18:56:03 +02:00
.cp-creation-slider {
2018-07-18 11:40:28 +02:00
flex: none;
2018-04-11 18:56:03 +02:00
order: 10;
width: 100%;
2018-03-13 11:31:08 +01:00
}
2018-04-11 18:56:03 +02:00
}
}
}
}
}
@media screen and (max-width: @browser_media-medium-screen) {
#cp-creation {
height: auto;
#cp-creation-form {
div.cp-creation-template {
margin: 0;
padding: 5px;
.cp-creation-template-container {
.cp-creation-template-element {
flex-flow: row;
margin: 1px;
padding: 5px;
width: 155px;
img {
display: none;
}
.fa {
font-size: 18px;
width: 20px;
height: 20px;
line-height: 20px;
display: inline !important;
}
.cp-creation-template-element-name {
margin: 0;
margin-left: 5px;
}
2018-03-13 11:31:08 +01:00
}
}
}
}
}
}
2017-12-07 18:51:50 +01:00
}