254 lines
7.6 KiB
Plaintext
Raw Normal View History

2017-12-07 18:51:50 +01:00
@import (once) "./colortheme-all.less";
2017-12-11 12:19:44 +01:00
@import (once) "./tools.less";
2018-03-13 11:31:08 +01:00
@import (once) "./checkmark.less";
@import (once) './icon-colors.less';
2017-12-07 18:51:50 +01:00
.creation_main() {
2017-12-11 12:19:44 +01:00
.tippy-popper {
z-index: 100000001 !important;
}
#cp-creation-container {
position: absolute;
2017-12-11 12:19:44 +01:00
z-index: 100000000; // #loading * 10
top: 0px;
2017-12-07 18:51:50 +01:00
background: @colortheme_loading-bg;
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;
2017-12-11 12:19:44 +01:00
width: 100%;
height: 100%;
overflow: auto;
}
#cp-creation {
flex: 0 1 auto; /* allows shrink */
min-height: 0;
overflow: auto;
2017-12-07 18:51:50 +01:00
text-align: center;
2017-12-11 12:19:44 +01:00
font: @colortheme_app-font;
width: 100%;
2018-03-02 18:33:43 +01:00
outline: none;
2017-12-11 12:19:44 +01:00
& > div {
width: 60vw;
max-width: 100%;
margin: 40px auto;
text-align: left;
2017-12-07 18:51:50 +01:00
}
2017-12-11 12:19:44 +01:00
2018-02-28 17:02:35 +01:00
.cp-creation-create, .cp-creation-settings {
2018-03-19 16:17:19 +01:00
margin-top: 0px;
2018-03-13 11:31:08 +01:00
@creation-button: #FF0073;
2017-12-11 12:19:44 +01:00
button {
.tools_unselectable();
padding: 15px;
2018-03-13 11:31:08 +01:00
background: #30b239;
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-03-13 11:31:08 +01:00
background: darken(@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;
}
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;
& > div {
width: 400px;
max-width: 100%;
display: flex;
align-items: center;
flex-wrap: wrap;
font-size: 16px;
margin: 10px 0;
label {
flex: 1;
}
input[type="checkbox"] {
&+ label {
margin-bottom: 0;
flex: 1;
padding: 0 10px;
2017-12-11 12:19:44 +01:00
}
}
2018-03-13 11:31:08 +01:00
.cp-creation-help {
font-size: 18px;
color: white;
&:hover {
color: #AAA;
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;
transition: max-height 0.5s ease-in-out;
width: 100%;
margin-top: 10px;
&.active {
max-height: 40px;
}
}
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 {
width: 100px;
}
2017-12-11 12:19:44 +01:00
}
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 {
margin-top: 30px;
.cp-creation-remember-help {
font-style: italic;
}
}
2018-03-13 11:31:08 +01:00
div.cp-creation-template {
width: 100%;
background-color: darken(@colortheme_modal-bg, 3%);
padding: 20px;
margin: 30px 0;
2018-03-19 16:17:19 +01:00
.cp-creation-title {
padding: 0 0 10px 10px;
2018-03-19 17:30:01 +01:00
margin: auto;
2018-03-19 16:17:19 +01:00
}
2018-03-13 11:31:08 +01:00
}
.cp-creation-template-container {
width: 100%;
display: flex;
flex-wrap: wrap;
justify-content: center;
overflow-y: auto;
align-items: center;
.cp-creation-template-element {
@darker: darken(@colortheme_modal-fg, 30%);
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;
background-color: #111;
color: @darker;
border: 1px solid transparent;
&.cp-creation-template-selected {
border: 1px solid white;
background-color: #222;
}
transition: all 0.1s;
&:hover {
color: @colortheme_modal-fg;
}
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;
height: 20px;
line-height: 20px;
margin-top: 5px;
max-width: 100%;
}
.fa {
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 {
background: #111;
padding: 10px;
text-align: center;
font-weight: bold;
display: inline-block;
}
2018-03-13 11:31:08 +01:00
}
.checkmark_main(30px);
@media screen and (max-width: @browser_media-narrow-screen) {
& > div {
width: 95%;
margin: 10px auto;
2018-02-28 17:02:35 +01:00
}
}
2018-03-13 11:31:08 +01:00
@media screen and (max-width: @browser_media-medium-screen) {
#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;
2018-03-19 16:17:19 +01:00
width: 155px;
2018-03-13 11:31:08 +01:00
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
}
}