libreoffice-online/loleaflet/css/leaflet.css
Tor Lillqvist 18ac050240 tdf#128468: Draw the tab stops
Draw only the user-edited/able ones. Draw all four kinds (left, right,
center, and decimal) the same for now, as a small triangle pointing
up. (Drawn using a CSS trick to get a triangle.) The tab stop
positions aren't actually editable yet, nor is there a way to add a
new tab stop or delete one. Later.

The code uses a CSS custom property, yay, to avoid duplication of a
magic value for the half-width of the triangle.

Change-Id: I862b09091bad03ad63425cc6e6759f3f13174579
Reviewed-on: https://gerrit.libreoffice.org/84474
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
(cherry picked from commit 5e6976f6eb23d742db7e8f9b334b521a299f2418)
Reviewed-on: https://gerrit.libreoffice.org/84764
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
2019-12-10 09:23:20 +01:00

959 lines
19 KiB
CSS

/* required styles */
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-map-pane svg,
.leaflet-map-pane canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
position: absolute;
left: 0;
top: 0;
}
.leaflet-container {
overflow: hidden;
-ms-touch-action: none;
}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
-webkit-user-drag: none;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
image-rendering: -webkit-optimize-contrast;
}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
width: 1600px;
height: 1600px;
-webkit-transform-origin: 0 0;
}
.leaflet-marker-icon,
.leaflet-marker-shadow {
display: block;
}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container svg,
.leaflet-container img {
max-width: none !important;
}
/* stupid Android 2 doesn't understand "max-width: none" properly */
.leaflet-container img.leaflet-image-layer {
max-width: 15000px !important;
}
.leaflet-tile {
filter: inherit;
visibility: hidden;
}
.leaflet-tile-loaded {
visibility: inherit;
}
.leaflet-zoom-box {
width: 0;
height: 0;
-moz-box-sizing: border-box;
box-sizing: border-box;
z-index: 8;
}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
-moz-user-select: none;
}
.leaflet-pane {
z-index: 10;
position: relative;
}
.leaflet-tile-pane { z-index: 2; }
.leaflet-overlay-pane { z-index: 4; }
.leaflet-shadow-pane { z-index: 5; }
.leaflet-marker-pane { z-index: 6; }
.leaflet-popup-pane { z-index: 7; }
.leaflet-map-pane canvas { z-index: 1; }
.leaflet-map-pane svg { z-index: 2; }
.leaflet-vml-shape {
width: 1px;
height: 1px;
}
.lvml {
behavior: url(#default#VML);
display: inline-block;
position: absolute;
}
/* control positioning */
.leaflet-control {
position: relative;
z-index: 7;
pointer-events: auto;
}
.leaflet-top,
.leaflet-bottom {
position: absolute;
z-index: 10;
pointer-events: none;
}
.leaflet-top {
top: 0;
}
.leaflet-middle {
left: 50%;
}
.leaflet-right {
right: 0;
}
.leaflet-bottom {
bottom: 0;
}
.leaflet-left {
left: 0;
}
.leaflet-control {
float: left;
clear: both;
}
.leaflet-right .leaflet-control {
float: right;
}
.leaflet-top .leaflet-control {
margin-top: 10px;
}
.leaflet-bottom .leaflet-control {
margin-bottom: 10px;
}
.leaflet-left .leaflet-control {
margin-left: 10px;
}
.leaflet-right .leaflet-control {
margin-right: 10px;
}
/* zoom and fade animations */
.leaflet-fade-anim .leaflet-tile {
will-change: opacity;
}
.leaflet-fade-anim .leaflet-popup {
opacity: 0;
-webkit-transition: opacity 0.2s linear;
-moz-transition: opacity 0.2s linear;
-o-transition: opacity 0.2s linear;
transition: opacity 0.2s linear;
}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
opacity: 1;
}
.leaflet-zoom-anim .leaflet-zoom-animated {
will-change: transform;
}
.leaflet-zoom-anim .leaflet-zoom-animated {
-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
-moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
-o-transition: -o-transform 0.25s cubic-bezier(0,0,0.25,1);
transition: transform 0.25s cubic-bezier(0,0,0.25,1);
}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
-webkit-transition: none;
-moz-transition: none;
-o-transition: none;
transition: none;
}
.leaflet-zoom-anim .leaflet-zoom-hide {
visibility: hidden;
}
/* cursors */
.leaflet-interactive {
cursor: pointer;
}
.leaflet-container {
cursor: text;
}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
cursor: crosshair;
}
.leaflet-popup-pane,
.leaflet-control {
cursor: auto;
}
.leaflet-dragging .leaflet-container,
.leaflet-dragging .leaflet-interactive {
cursor: move;
cursor: -webkit-grabbing;
cursor: -moz-grabbing;
}
/* visual tweaks */
.leaflet-container {
background: #dfdfdf;
outline: 0;
margin: auto;
/*height: 100%;*/
}
.leaflet-container a {
color: #0078A8;
}
.leaflet-container a.leaflet-active {
outline: 2px solid orange;
}
.leaflet-zoom-box {
border: 2px dotted #38f;
background: rgba(255,255,255,0.5);
}
/* general typography */
.leaflet-container {
font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
}
/* general toolbar styles */
.leaflet-bar {
display: inline-block;
margin: 3px;
vertical-align: middle;
border-bottom: solid 1px #bbbbbb;
}
.leaflet-bar a,
.leaflet-bar a:hover {
background-color: #fff;
border-bottom: 1px solid #ccc;
width: 26px;
height: 26px;
line-height: 26px;
display: block;
text-align: center;
text-decoration: none;
color: black;
}
.leaflet-bar a,
.leaflet-control-layers-toggle {
background-position: 50% 50%;
background-repeat: no-repeat;
display: block;
}
.leaflet-bar a:hover {
background-color: #f4f4f4;
}
.leaflet-bar a:first-child {
border-top-left-radius: 4px;
border-top-right-radius: 4px;
}
.leaflet-bar a:last-child {
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
border-bottom: none;
}
.leaflet-bar a.leaflet-disabled {
cursor: default;
background-color: #f4f4f4;
color: #bbb;
}
.leaflet-touch .leaflet-bar a {
width: 30px;
height: 30px;
line-height: 30px;
}
/* zoom control */
.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
font: bold 18px 'Lucida Console', Monaco, monospace;
text-indent: 1px;
}
.leaflet-control-zoom-out {
font-size: 20px;
}
.leaflet-touch .leaflet-control-zoom-in {
font-size: 22px;
}
.leaflet-touch .leaflet-control-zoom-out {
font-size: 24px;
}
/* View / Edit mode control */
.leaflet-control-editviewswitch {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
/* Toolbar buttons control */
.leaflet-control-buttons-container {
box-shadow: 0 0 0;
}
.leaflet-control-buttons,
a.leaflet-control-buttons,
a.leaflet-control-buttons:hover {
box-shadow: 0 1px 5px rgba(0,0,0,0.4);
background: #fff;
border-radius: 5px;
width: 24px;
height: 24px;
float: left;
}
a.leaflet-control-buttons,
a.leaflet-control-buttons:hover {
margin-left: 3px;
}
a.leaflet-control-buttons:first-child,
a.leaflet-control-buttons:hover:first-child {
margin-left: 0px;
}
.leaflet-control-buttons-active {
border: thin solid;
}
.leaflet-control-buttons-disabled{
opacity: 0.5;
}
.leaflet-control-button-separator {
width: 14px;
height: 1px;
float: left;
visibility: hidden;
}
/* layers control */
.leaflet-control-layers {
box-shadow: 0 1px 5px rgba(0,0,0,0.4);
background: #fff;
border-radius: 5px;
}
.leaflet-control-layers-toggle {
background-image: url(images/layers.png);
width: 36px;
height: 36px;
}
.leaflet-retina .leaflet-control-layers-toggle {
background-image: url(images/layers-2x.png);
background-size: 26px 26px;
}
.leaflet-touch .leaflet-control-layers-toggle {
width: 44px;
height: 44px;
}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
display: none;
}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
display: block;
position: relative;
}
.leaflet-control-layers-expanded {
padding: 6px 10px 6px 6px;
color: #333;
background: #fff;
}
.leaflet-control-layers-selector {
margin-top: 2px;
position: relative;
top: 1px;
}
.leaflet-control-layers label {
display: block;
}
.leaflet-control-layers-separator {
height: 0;
border-top: 1px solid #ddd;
margin: 5px -10px 5px -6px;
}
/* attribution and scale controls */
.leaflet-container .leaflet-control-attribution {
background: #fff;
background: rgba(255, 255, 255, 0.7);
margin: 0;
}
.leaflet-control-attribution,
.leaflet-control-scale-line {
padding: 0 5px;
color: #000;
}
.leaflet-control-attribution a {
text-decoration: none;
}
.leaflet-control-attribution a:hover {
text-decoration: underline;
}
.leaflet-container .leaflet-control-attribution,
.leaflet-container .leaflet-control-scale {
font-size: 11px;
}
.leaflet-left .leaflet-control-scale {
margin-left: 5px;
}
.leaflet-bottom .leaflet-control-scale {
margin-bottom: 5px;
}
.leaflet-control-scale-line {
border: 2px solid #777;
border-top: none;
line-height: 1.1;
padding: 2px 5px 1px;
font-size: 11px;
white-space: nowrap;
overflow: hidden;
-moz-box-sizing: content-box;
box-sizing: content-box;
background: #fff;
background: rgba(255, 255, 255, 0.5);
}
.leaflet-control-scale-line:not(:first-child) {
border-top: 2px solid #777;
border-bottom: none;
margin-top: -2px;
}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
border-bottom: 2px solid #777;
}
.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
box-shadow: none;
}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
border: 2px solid rgba(0,0,0,0.2);
background-clip: padding-box;
}
/* popup */
.leaflet-popup {
position: absolute;
text-align: center;
}
.leaflet-popup-content-wrapper {
padding: 1px;
text-align: left;
border-radius: 12px;
}
.leaflet-popup-content {
margin: 13px 19px;
line-height: 1.4;
}
.leaflet-popup-content p {
margin: 18px 0;
}
.leaflet-popup-content tr:hover {
background-color: #eee;
cursor: pointer;
}
.leaflet-popup-content tbody {
display: block;
overflow-y: auto;
}
.leaflet-popup-selected {
background-color: #eee;
}
.leaflet-popup-tip-container {
margin: 0 auto;
width: 40px;
height: 20px;
position: relative;
overflow: hidden;
}
.leaflet-popup-tip {
width: 17px;
height: 17px;
padding: 1px;
margin: -10px auto 0;
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-ms-transform: rotate(45deg);
-o-transform: rotate(45deg);
transform: rotate(45deg);
}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
background: white;
color: #333;
box-shadow: 0 3px 14px rgba(0,0,0,0.4);
}
.leaflet-container a.leaflet-popup-close-button {
position: absolute;
top: 0;
right: 0;
padding: 4px 4px 0 0;
text-align: center;
width: 18px;
height: 14px;
font: 16px/14px Tahoma, Verdana, sans-serif;
color: #c3c3c3;
text-decoration: none;
font-weight: bold;
background: transparent;
}
.leaflet-container a.leaflet-popup-close-button:hover {
color: #999;
}
.leaflet-popup-scrolled {
overflow: auto;
border-bottom: 1px solid #ddd;
border-top: 1px solid #ddd;
}
.leaflet-oldie .leaflet-popup-content-wrapper {
zoom: 1;
}
.leaflet-oldie .leaflet-popup-tip {
width: 24px;
margin: 0 auto;
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
}
.leaflet-oldie .leaflet-popup-tip-container {
margin-top: -1px;
}
.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
border: 1px solid #999;
}
.leaflet-not-clickable {
pointer-events: none;
}
.debug .leaflet-popup-content-wrapper {
padding: 1px;
text-align: left;
border-radius: 0px;
}
.debug .leaflet-popup-content {
margin: 1px 1px;
font: 9px/8px Tahoma, Verdana, sans-serif;
line-height: 1;
background: rgba(0, 0, 0, 0);
pointer-events: none;
}
.debug .leaflet-popup-content-wrapper {
background: rgba(255, 255, 255, 0.6);
color: #000;
box-shadow: none;
pointer-events: none;
}
.debug .leaflet-popup-tip {
background: rgba(255, 255, 255, 0);
color: #000;
box-shadow: none;
pointer-events: none;
}
/* div icon */
.leaflet-div-icon {
background: #fff;
border: 1px solid #666;
}
.sidebar-cursor-container {
position: absolute;
text-align: center;
}
.leaflet-cursor-container {
position: absolute;
text-align: center;
}
.leaflet-cursor {
background: black;
width: 2px;
pointer-events: none;
}
.leaflet-cursor-header {
background: black;
height: 10px;
margin-top: -10px;
pointer-events: none;
color: white;
font-size: 9px;
}
div.leaflet-cursor-container:hover > .leaflet-cursor-header {
visibility: visible !important;
}
.blinking-cursor {
-webkit-animation: 1s blink step-end 0s infinite;
-moz-animation: 1s blink step-end 0s infinite;
-ms-animation: 1s blink step-end 0s infinite;
-o-animation: 1s blink step-end 0s infinite;
animation: 1s blink step-end 0s infinite;
}
@keyframes blink {
from, to {
background: black;
}
50% {
background: transparent;
}
}
@-moz-keyframes blink {
from, to {
background: black;
}
50% {
background: transparent;
}
}
@-webkit-keyframes blink {
from, to {
background: black;
}
50% {
background: transparent;
}
}
@-ms-keyframes blink {
from, to {
background: black;
}
50% {
background: transparent;
}
}
@-o-keyframes blink {
from, to {
background: black;
}
50% {
background: transparent;
}
}
.clipboard-container {
position: absolute;
left: 0px;
top: 0px;
width: 0px;
height: 0px;
z-index: 100;
opacity: 0;
}
input.clipboard {
width: 1px;
height: 1px;
padding: 0px !important; /* w2ui defines "input:not([type=button])" rule which sets
the padding to non-zero. Hence, the !important. Otherwise,
clipboard cursor apperas in MSIE and MSEdge */
border: 0px !important;
}
.clipboard:focus {
outline: none;
}
.resize-detector {
position: absolute;
width: 100%;
height: 100%;
z-index: 0;
border: none;
}
.slide-show {
background: #FFF;
display: block;
margin: 0 auto;
}
.leaflet-paste-progress {
background: #ebebeb;
border-left: 1px solid transparent;
border-right: 1px solid transparent;
border-radius: 4px;
height: 14px;
margin: 5px 0 0;
}
.leaflet-paste-progress > span {
position: relative;
float: left;
margin: 0 -1px;
height: 100%;
text-align: right;
background: #5c3dcc;
border: 1px solid;
border-color: #4422bf #5435c4;
border-radius: 4px;
background-image: -webkit-linear-gradient(top, #745dc6, #6549cc 70%, #5c3dcc);
background-image: -moz-linear-gradient(top, #745dc6, #6549cc 70%, #5c3dcc);
background-image: -o-linear-gradient(top, #745dc6, #6549cc 70%, #5c3dcc);
background-image: linear-gradient(to bottom, #745dc6, #6549cc 70%, #5c3dcc);
-webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
box-shadow: inset 0 1px rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
}
.leaflet-paste-progress > span > span {
padding: 0 4px;
font-size: 10px;
font-weight: bold;
color: #fff;
text-shadow: 0 1px rgba(0, 0, 0, 0.4);
}
.leaflet-progress {
background: #ebebeb;
border-left: 1px solid transparent;
border-right: 1px solid transparent;
border-radius: 10px;
height: 24px;
margin: 10px 0 0;
}
.leaflet-progress > span {
position: relative;
float: left;
margin: 0 -1px;
height: 100%;
text-align: right;
background: #18A303;
border: 1px solid;
border-color: #106802;
border-radius: 10px;
background-image: -webkit-linear-gradient(top, #92E285, #43C330 70%, #18A303);
background-image: -moz-linear-gradient(top, #92E285, #43C330 70%, #18A303);
background-image: -o-linear-gradient(top, #92E285, #43C330 70%, #18A303);
background-image: linear-gradient(to bottom, #92E285, #43C330 70%, #18A303);
-webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
box-shadow: inset 0 1px rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
}
.leaflet-progress > span > span {
padding: 0 8px;
font-size: 11px;
font-weight: bold;
color: #fff;
text-shadow: 0 1px rgba(0, 0, 0, 0.4);
}
.leaflet-progress-spinner {
width: 100%;
margin: 0 0 4px;
text-align: center;
}
.leaflet-progress-spinner-canvas {
position: static !important;
}
.leaflet-progress-label {
text-align: center;
}
.leaflet-slideshow {
background: #FFFFFF;
}
/*Ruler styling*/
.leaflet-left .leaflet-control {
margin: 0px;
}
.loleaflet-ruler {
background-color: #efefef;
height: 20px;
width: 100vw;
margin: 0px;
}
/* The 20px above is 5% of the 400px below. */
@media screen and (max-height: 400px) {
.loleaflet-ruler {
height: 0px;
display: none;
}
}
@media (max-width: 767px),(max-device-height: 767px) {
.loleaflet-ruler {
height: 0px;
display: none;
}
}
.loleaflet-ruler-breakcontainer {
height: 100%;
position: absolute;
}
.loleaflet-ruler-tabstopcontainer {
height: 100%;
position: absolute;
}
.loleaflet-ruler-marginwrapper {
height: 100%;
position: absolute;
width: inherit;
z-index: 11;
}
.loleaflet-ruler-breakwrapper {
position: absolute;
height: 100%;
overflow: hidden;
width: inherit;
z-index: 10;
}
.loleaflet-ruler-tabstopwrapper {
position: absolute;
height: 100%;
overflow: hidden;
width: inherit;
z-index: 10;
}
.loleaflet-ruler-face {
height: 100%;
background-color: white;
}
.loleaflet-ruler-maj {
height: 35%;
display: inline-block;
border-width: 0px .5px;
border-style: solid;
border-color: grey;
font-size: 10px;
text-align: center;
color: grey;
line-height: 7px;
}
/* A triangle pointing up */
.loleaflet-ruler-tabstop {
width: 0;
height: 0;
vertical-align: bottom;
display: inline-block;
/* So that we hardcode this in just one place */
--loleaflet-ruler-tabstop-border: 8;
border-top: calc(var(--loleaflet-ruler-tabstop-border) * 1px) solid transparent;
border-left: calc(var(--loleaflet-ruler-tabstop-border) * 1px) solid transparent;
/* Offset the left border with left margin to make this really take zero horizontal space until the JS code bumps the marginLeft */
margin-left: calc(-1 * var(--loleaflet-ruler-tabstop-border) * 1px);
border-right: calc(var(--loleaflet-ruler-tabstop-border) * 1px) solid transparent;
/* Ditto for the right border, this is left as is */
margin-right: calc(-1 * var(--loleaflet-ruler-tabstop-border) * 1px);
border-bottom: calc(var(--loleaflet-ruler-tabstop-border) * 1px) solid black;
margin-bottom: calc(-1 * var(--loleaflet-ruler-tabstop-border) * 1px / 2);
}
.loleaflet-ruler-margin {
height: 100%;
background-color: #efefef;
}
.loleaflet-ruler-left {
left: 0px;
height: 100%;
float: left;
}
.loleaflet-ruler-right {
left: 0px;
height: 100%;
float: right;
}
.loleaflet-ruler-drag {
height: 100%;
width: 0px;
}
.loleaflet-ruler-drag.loleaflet-ruler-right {
border-left: 3px solid grey;
}
.loleaflet-ruler-drag.loleaflet-ruler-left {
border-right: 3px solid grey;
}
.loleaflet-ruler-left.leaflet-drag-moving {
height: 100vh;
border-right: 2px dotted grey;
}
.loleaflet-ruler-right.leaflet-drag-moving {
height: 100vh;
border-left: 2px dotted grey;
}
.loleaflet-ruler-ltooltip, .loleaflet-ruler-rtooltip {
display: none;
text-align: center;
width: 46px;
height: 20px;
padding: 2px 4px;
line-height: 20px;
position: absolute;
border: 1px solid grey;
background-color: rgba(0,0,0,.4);
border-radius: 2px;
top: 24px;
color: white;
}