cryptpad/customize.dist/src/less2/include/limit-bar.less

76 lines
2.1 KiB
Plaintext
Raw Normal View History

@import (reference) "./colortheme-all.less";
2017-09-25 09:48:42 +00:00
.limit-bar_main () {
2018-07-14 13:15:23 +00:00
--LessLoader_require: LessLoader_currentFile();
}
& {
2017-09-25 09:48:42 +00:00
.cp-limit-container {
@colortheme_green: #5cb85c;
display: inline-flex;
flex-flow: column-reverse;
width: 100%;
margin-top: 20px;
.cp-limit-bar {
2018-01-29 15:12:35 +00:00
display: inline-flex;
justify-content: center;
align-items: center;
2018-01-18 09:31:56 +00:00
2017-09-25 09:48:42 +00:00
max-width: 100%;
margin: 4px;
2017-09-25 09:48:42 +00:00
box-sizing: border-box;
border-radius: 3px;
2017-09-25 09:48:42 +00:00
background: white;
position: relative;
text-align: center;
width: ~"calc(100% - 8px)";
2018-01-18 09:31:56 +00:00
height: 35px;
2017-09-25 09:48:42 +00:00
line-height: 25px;
overflow: hidden;
.cp-limit-usage {
height: 100%;
display: inline-block;
background: blue;
position: absolute;
left: 0;
top: 0;
2017-12-11 14:05:58 +00:00
z-index: 1; // .usage
2017-09-25 09:48:42 +00:00
&.cp-limit-usage-normal {
background: lighten(@colortheme_green, 15%);
2017-09-25 09:48:42 +00:00
}
&.cp-limit-usage-warning {
background: orange;
}
&.cp-limit-usage-above {
background: red;
}
}
.cp-limit-usage-text {
position: relative;
color: @cryptpad_text_col;
2017-09-25 09:48:42 +00:00
z-index: 2; // .usageText
font-size: @colortheme_app-font-size;
2017-09-25 09:48:42 +00:00
}
}
.cp-limit-buttons {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
justify-content: space-evenly;
2019-11-07 10:55:35 +00:00
//padding: 2px;
a {
height: 25px;
display: inline-flex;
align-items: center;
2019-11-07 10:55:35 +00:00
min-width: 150px;
margin: 2px;
width: 50%;
padding-top: 0;
padding-bottom: 0;
justify-content: center;
flex: 1;
}
2017-09-25 09:48:42 +00:00
}
}
}