2016-11-24 15:22:51 +00:00
|
|
|
@gray-dark: #c4c4c4;
|
|
|
|
@gray-darker: #848484; //rgb(132, 132, 132)
|
|
|
|
@gray-light: #f1f1f1; //rgb(241, 241, 241)
|
|
|
|
|
|
|
|
@cellEditorHeight: 30px;
|
2016-12-07 11:29:38 +00:00
|
|
|
@cellEditorExpandedHeight: 70px;
|
2016-11-24 15:22:51 +00:00
|
|
|
|
|
|
|
.border-radius(@radius: 2px) {
|
|
|
|
border-radius: @radius;
|
|
|
|
}
|
|
|
|
|
|
|
|
#cell-editing-box {
|
2016-12-01 17:11:16 +00:00
|
|
|
box-sizing: border-box;
|
2016-11-24 15:22:51 +00:00
|
|
|
* {
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
2016-12-05 15:25:58 +00:00
|
|
|
position: relative;
|
2016-12-07 11:29:38 +00:00
|
|
|
|
|
|
|
height: @cellEditorHeight;
|
2016-11-24 15:22:51 +00:00
|
|
|
min-height: @cellEditorHeight;
|
2016-12-12 09:06:45 +00:00
|
|
|
transition: min-height .1s;
|
2016-12-07 11:29:38 +00:00
|
|
|
|
2016-11-24 15:22:51 +00:00
|
|
|
background-color: #fff;
|
2016-11-25 09:45:25 +00:00
|
|
|
display: flex;
|
2016-12-07 11:29:38 +00:00
|
|
|
//align-items: stretch;
|
2016-12-05 15:25:58 +00:00
|
|
|
z-index: 500;
|
|
|
|
.hairline(bottom, @gray-dark);//@toolbarBorderColor);
|
2016-11-24 15:22:51 +00:00
|
|
|
|
2016-12-07 11:29:38 +00:00
|
|
|
&.expanded {
|
|
|
|
min-height: @cellEditorExpandedHeight;
|
|
|
|
//height: @cellEditorExpandedHeight;
|
2016-12-12 09:06:45 +00:00
|
|
|
transition: min-height .1s;
|
2016-12-07 11:29:38 +00:00
|
|
|
}
|
|
|
|
|
2016-11-24 15:22:51 +00:00
|
|
|
.btn {
|
|
|
|
border: 0 none;
|
|
|
|
height: @cellEditorHeight;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ce-group {
|
2016-12-01 17:11:16 +00:00
|
|
|
overflow: hidden;
|
2016-12-07 11:29:38 +00:00
|
|
|
height: 100%;
|
2017-04-11 11:05:56 +00:00
|
|
|
position: relative;
|
2016-11-24 15:22:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.group-name {
|
2017-04-11 11:05:56 +00:00
|
|
|
display: inline-flex;
|
2016-12-07 11:29:38 +00:00
|
|
|
background-color: @gray-light;
|
2017-04-11 11:05:56 +00:00
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.group-content {
|
|
|
|
position: relative;
|
|
|
|
padding-left: 1px;
|
|
|
|
.hairline(left, @gray-dark);
|
|
|
|
flex-grow: 1;
|
|
|
|
//height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.group-name, .group-content,
|
|
|
|
.group-expand {
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.group-functions-list {
|
|
|
|
position: absolute;
|
|
|
|
height: @cellEditorHeight;
|
2016-11-24 15:22:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#ce-cell-name {
|
|
|
|
display: inline-block;
|
|
|
|
width: 90px;
|
2016-12-05 15:25:58 +00:00
|
|
|
padding: 0 4px;
|
2016-11-24 15:22:51 +00:00
|
|
|
border: 0 none;
|
|
|
|
line-height: 30px;
|
2016-12-25 13:45:53 +00:00
|
|
|
//font-size: 17px;
|
2016-11-24 15:22:51 +00:00
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
&[disabled] {
|
|
|
|
color: @gray-darker;
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-12-21 14:31:03 +00:00
|
|
|
#ce-function {
|
|
|
|
height: @cellEditorHeight;
|
|
|
|
line-height: @cellEditorHeight;
|
|
|
|
padding: 0 10px;
|
2016-11-25 09:45:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#ce-btn-expand {
|
|
|
|
width: @cellEditorHeight;
|
2017-04-11 11:05:56 +00:00
|
|
|
background-color: #fff;
|
2016-11-25 09:45:25 +00:00
|
|
|
padding: 0 2px 0;
|
|
|
|
|
|
|
|
.caret {
|
|
|
|
display: block;
|
2016-12-01 17:11:16 +00:00
|
|
|
transition: transform 0.1s ease;
|
2016-12-27 14:46:20 +00:00
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
.encoded-svg-background('<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 22 22" fill="#000"><g><path d="M20.5,6.5l1.1,1.1L11,18l0,0l0,0L0.5,7.5l1.1-1.1l9.5,9.5L20.5,6.5z"/></g></svg>');
|
2016-11-25 09:45:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.collapse {
|
|
|
|
.caret {
|
2016-12-27 14:46:20 +00:00
|
|
|
transform: rotate(180deg);
|
2016-11-25 09:45:25 +00:00
|
|
|
}
|
|
|
|
}
|
2016-11-24 15:22:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#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;
|
2016-11-25 09:45:25 +00:00
|
|
|
min-height: @cellEditorHeight;
|
2016-11-24 15:22:51 +00:00
|
|
|
border: 0 none;
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
|
|
&[disabled] {
|
|
|
|
color: @gray-darker;
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#ce-cell-name, #ce-cell-content {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
2017-04-11 11:05:56 +00:00
|
|
|
|
|
|
|
&.expanded {
|
|
|
|
.group-functions-list {
|
|
|
|
&.opened {
|
|
|
|
top: @cellEditorExpandedHeight;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.group-functions-list {
|
|
|
|
width: 100%;
|
|
|
|
background-color: #fff;
|
|
|
|
top: 0;
|
|
|
|
.hairline(bottom, @gray-dark);
|
|
|
|
|
|
|
|
transition: top .2s;
|
|
|
|
|
|
|
|
&.opened {
|
|
|
|
top: @cellEditorHeight;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.opened) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
> li {
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
> a {
|
|
|
|
line-height: 30px;
|
|
|
|
padding: 0 8px 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.phone {
|
|
|
|
#cell-editing-box #ce-cell-name {
|
|
|
|
display: none;
|
|
|
|
}
|
2016-11-24 15:22:51 +00:00
|
|
|
}
|