2018-07-12 16:43:17 +00:00
|
|
|
@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%;
|
2019-11-07 10:37:40 +00:00
|
|
|
margin: 4px;
|
2017-09-25 09:48:42 +00:00
|
|
|
box-sizing: border-box;
|
2019-11-07 10:37:40 +00:00
|
|
|
border-radius: 3px;
|
2017-09-25 09:48:42 +00:00
|
|
|
background: white;
|
|
|
|
position: relative;
|
|
|
|
text-align: center;
|
2019-11-07 10:37:40 +00:00
|
|
|
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;
|
2018-02-08 11:28:53 +00:00
|
|
|
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 {
|
2019-11-07 10:37:40 +00:00
|
|
|
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;
|
2019-11-07 10:37:40 +00:00
|
|
|
color: @cryptpad_text_col;
|
2017-09-25 09:48:42 +00:00
|
|
|
z-index: 2; // .usageText
|
|
|
|
font-size: @colortheme_app-font-size;
|
2019-11-07 10:37:40 +00:00
|
|
|
|
2017-09-25 09:48:42 +00:00
|
|
|
}
|
|
|
|
}
|
2019-10-03 16:09:20 +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;
|
2019-10-03 16:09:20 +00:00
|
|
|
a {
|
|
|
|
height: 25px;
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
2019-11-07 10:55:35 +00:00
|
|
|
min-width: 150px;
|
2019-11-07 10:37:40 +00:00
|
|
|
margin: 2px;
|
2019-10-03 16:09:20 +00:00
|
|
|
width: 50%;
|
|
|
|
padding-top: 0;
|
|
|
|
padding-bottom: 0;
|
|
|
|
justify-content: center;
|
|
|
|
flex: 1;
|
|
|
|
}
|
2017-09-25 09:48:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|