web-apps/apps/spreadsheeteditor/mobile/resources/less/celleditor.less
2016-12-01 20:11:16 +03:00

131 lines
2.6 KiB
Plaintext

@gray-dark: #c4c4c4;
@gray-darker: #848484; //rgb(132, 132, 132)
@gray-light: #f1f1f1; //rgb(241, 241, 241)
@cellEditorHeight: 30px;
.border-radius(@radius: 2px) {
border-radius: @radius;
}
#cell-editing-box {
box-sizing: border-box;
* {
box-sizing: border-box;
}
border-bottom: solid 1px @gray-dark;
min-height: @cellEditorHeight;
background-color: #fff;
display: flex;
align-items: stretch;
overflow: hidden;
.btn {
border: 0 none;
height: @cellEditorHeight;
background-color: transparent;
}
.ce-group {
overflow: hidden;
}
.group-name {
float: left;
background-color: @gray-light;
}
#ce-cell-name {
display: inline-block;
width: 90px;
//height: 100%;
padding: 0px 4px;
//vertical-align: top;
display: inline-block;
border: 0 none;
line-height: 30px;
font-size: 17px;
text-align: center;
//transition: none;
//-webkit-transition: none;
&[disabled] {
color: @gray-darker;
opacity: 0.5;
}
}
#ce-func-label {
width: 34px;
span.btn-icon {
font-size: 17px;
//display: block;
//margin-top: -5px;
}
&.disabled {
span.btn-icon {
opacity: 0.6;
}
}
}
.group-expand {
float: right;
}
.group-content {
padding-left: 1px;
border-left: 1px solid @gray-dark;
flex-grow: 1;
height: 100%;
}
#ce-btn-expand {
width: @cellEditorHeight;
background: transparent;
padding: 0 2px 0;
.caret {
display: block;
transform: rotate(90deg);
transition: transform 0.1s ease;
font-size: 16px;
}
&.collapse {
.caret {
transform: rotate(-90deg);
transition: transform 0.1s ease;
}
}
}
#ce-cell-content {
display: block;
width: 100%;
padding: 3px 3px;
line-height: 1.428571429;
color: #000;
vertical-align: middle;
background-color: #fff;
height: 100%;
resize: none;
min-height: @cellEditorHeight;
border: 0 none;
font-size: 16px;
&[disabled] {
color: @gray-darker;
opacity: 0.5;
}
}
#ce-cell-name, #ce-cell-content {
border-radius: 0;
}
}