ccaa206437
Update tabs and its parent after:9f3b72aa6f
2577342e1b
- Fix padding and margins - Use border-top instead of faking it via shadow - border shadow was not being displayed full width - Make sire spreadsheet-tabs-container is transparent - Avoid hiding any element or border - Gave up on trying to have selected tab looking like a tab and thus without border top and taller. The code around is proven to be changing constantly plus we are not gaining that much of a benefit there. On top of that by keeping it with same shape as the other tabs we avoid possible problems with the top of the border of its parent. Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com> Change-Id: I45ce6ed534afe4b264ae5aa0ef8f40f606ff5523
220 lines
3.9 KiB
CSS
220 lines
3.9 KiB
CSS
.spreadsheet-tabs-container {
|
|
margin: 0;
|
|
padding: 0;
|
|
position: relative;
|
|
height: 39px;
|
|
overflow: hidden;
|
|
width: 100%;
|
|
white-space: nowrap;
|
|
text-align: left;
|
|
background-color: transparent;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.spreadsheet-tab-scroll {
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow-y: hidden;
|
|
overflow-x: auto;
|
|
margin-left: 6px;
|
|
}
|
|
|
|
.spreadsheet-tab {
|
|
margin: 5px 4px 0px 0px !important;
|
|
padding: 6px 9px 4px !important;
|
|
text-decoration: none;
|
|
|
|
font: 12px/1.5 var(--loleaflet-font);
|
|
display: inline-block;
|
|
border: 1px solid darkgrey;
|
|
background-color: lightgrey;
|
|
color: var(--gray-light-txt--color);
|
|
}
|
|
|
|
.spreadsheet-tab.spreadsheet-tab-selected {
|
|
background: white !important;
|
|
color: black !important;
|
|
padding-top: 7px;
|
|
padding-bottom: 5px;
|
|
margin-top: 2px;
|
|
border: 1px solid #dfdfdf;
|
|
}
|
|
|
|
#first-tab-drop-site {
|
|
height: 20px;
|
|
width: 3px;
|
|
opacity: 0;
|
|
margin-top: 4px;
|
|
padding-top: 8px;
|
|
vertical-align: bottom;
|
|
display: inline-block;
|
|
background-color: gray;
|
|
padding-bottom: 5px;
|
|
}
|
|
|
|
.tab-dropsite {
|
|
border-right: gray solid 5px;
|
|
}
|
|
|
|
#first-tab-drop-site.tab-dropsite {
|
|
width: 0 !important;
|
|
opacity: 100% !important;
|
|
}
|
|
|
|
#spreadsheet-header-corner-container {
|
|
border: 1px solid darkgrey;
|
|
background-color: #f1f4f7;
|
|
cursor: pointer;
|
|
|
|
position: absolute;
|
|
padding: 0px;
|
|
margin: 0px;
|
|
left: 0px;
|
|
top: 0;
|
|
width: 48px;
|
|
height: 19px;
|
|
}
|
|
|
|
#spreadsheet-header-corner {
|
|
display: inline-block;
|
|
white-space: nowrap;
|
|
width: 100%;
|
|
height: 100%;
|
|
border-spacing: 0px !important;
|
|
position: relative;
|
|
margin: 0px;
|
|
padding: 0px;
|
|
}
|
|
|
|
.spreadsheet-header-corner-styles {
|
|
border: 1px solid darkgray;
|
|
font: 12px/1.5 var(--loleaflet-font);
|
|
color: black;
|
|
background-color: #f1f4f7;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#spreadsheet-header-columns-container {
|
|
border: 1px solid darkgrey;
|
|
background-color: lightgrey;
|
|
|
|
position: absolute;
|
|
display: inline-block;
|
|
white-space: nowrap;
|
|
left: 49px;
|
|
top: 0;
|
|
right: 0;
|
|
height: 19px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.spreadsheet-header-columns {
|
|
display: inline-block;
|
|
white-space: nowrap;
|
|
width: 100%;
|
|
height: 100%;
|
|
border-spacing: 0px !important;
|
|
position: relative;
|
|
margin: 0px;
|
|
padding: 0px;
|
|
}
|
|
|
|
.spreadsheet-header-column {
|
|
border: 1px solid darkgray;
|
|
font: 12px/1.5 var(--loleaflet-font);
|
|
color: black;
|
|
background-color: #f1f4f7;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.spreadsheet-header-column-hover {
|
|
background-color: #DDD;
|
|
}
|
|
|
|
.spreadsheet-header-column-selected {
|
|
color: white;
|
|
background: linear-gradient(#0b87e7, #0b87e7, #0b87e7);
|
|
}
|
|
|
|
.spreadsheet-header-column-resize {
|
|
cursor: col-resize;
|
|
}
|
|
|
|
#spreadsheet-header-rows-container {
|
|
border: 1px solid darkgrey;
|
|
background-color: lightgrey;
|
|
|
|
position: absolute;
|
|
left: 0;
|
|
top: 20px;
|
|
width: 48px;
|
|
bottom: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.spreadsheet-header-rows {
|
|
width: 100%;
|
|
height: 100%;
|
|
border-spacing: 0px !important;
|
|
position: relative;
|
|
margin: 0px;
|
|
padding: 0px;
|
|
}
|
|
|
|
.spreadsheet-header-row {
|
|
border: 1px solid darkgray;
|
|
font: 12px/1.5 var(--loleaflet-font);
|
|
color: black;
|
|
background-color: #f1f4f7;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.spreadsheet-header-row-hover {
|
|
background-color: #DDD;
|
|
}
|
|
|
|
.spreadsheet-header-row-selected {
|
|
color: white;
|
|
background: linear-gradient(#0b87e7, #0b87e7, #0b87e7);
|
|
}
|
|
|
|
.spreadsheet-header-row-resize {
|
|
cursor: row-resize;
|
|
}
|
|
|
|
.spreadsheet-cell-resize-marker {
|
|
margin-left: 0px;
|
|
margin-top: 0px;
|
|
width: 16px;
|
|
height: 16px;
|
|
background-image: url('images/cell-resize-marker.svg');
|
|
background-size: 100% 100%;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
.spreadsheet-cell-autofill-marker {
|
|
margin-left: 0px;
|
|
margin-top: 0px;
|
|
background-image: url('images/cell-autofill-marker.svg');
|
|
background-size: 100% 100%;
|
|
background-repeat: no-repeat;
|
|
cursor: crosshair;
|
|
}
|
|
|
|
.spreadsheet-drop-down-marker {
|
|
margin-left: 0px;
|
|
margin-top: 0px;
|
|
width: 18px;
|
|
height: 17px;
|
|
background-image: url('images/drop-down-button.svg');
|
|
background-size: 100% 100%;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
#toolbar-wrapper.spreadsheet.tablet {
|
|
z-index: auto;
|
|
}
|
|
|
|
#toolbar-wrapper.spreadsheet.tablet.readonly {
|
|
z-index: -1;
|
|
}
|