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

74 lines
2.0 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;
2019-11-08 10:24:07 +00:00
flex-flow: column;
2017-09-25 09:48:42 +00:00
width: 100%;
2019-11-08 10:24:07 +00:00
margin: 20px 0px;
2017-09-25 09:48:42 +00:00
.cp-limit-bar {
2018-01-29 15:12:35 +00:00
display: inline-flex;
justify-content: center;
align-items: center;
2017-09-25 09:48:42 +00:00
max-width: 100%;
2019-11-08 10:24:07 +00:00
margin: 5px;
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;
2019-11-08 10:24:07 +00:00
width: ~"calc(100% - 10px)";
height: 10px;
2017-09-25 09:48:42 +00:00
overflow: hidden;
.cp-limit-usage {
2019-11-08 10:24:07 +00:00
height: 10px;
2017-09-25 09:48:42 +00:00
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 {
2019-11-08 10:24:07 +00:00
background: @colortheme_green;
2017-09-25 09:48:42 +00:00
}
&.cp-limit-usage-warning {
background: orange;
}
&.cp-limit-usage-above {
background: red;
}
}
}
2019-11-08 10:24:07 +00:00
.cp-limit-usage-text {
color: @cryptpad_text_col;
margin-left: 5px;
z-index: 2; // .usageText
font-size: @colortheme_app-font-size-small;
}
.cp-limit-buttons {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
justify-content: space-evenly;
a {
height: 25px;
display: inline-flex;
align-items: center;
2019-11-07 10:55:35 +00:00
min-width: 150px;
2019-11-08 10:24:07 +00:00
margin: 3px 5px;
width: 50%;
padding-top: 0;
padding-bottom: 0;
justify-content: center;
flex: 1;
}
2017-09-25 09:48:42 +00:00
}
}
}