348 lines
5.8 KiB
SCSS
348 lines
5.8 KiB
SCSS
@import '../variables/colors';
|
|
|
|
/**
|
|
* Export Image dialog styles
|
|
*/
|
|
|
|
.ExportImageView {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.ExportImageView-Header {
|
|
position: absolute;
|
|
z-index: 105;
|
|
top: -35px;
|
|
width: 100%;
|
|
height: 40px;
|
|
transition: all 200ms ease-in-out;
|
|
text-align: center;
|
|
}
|
|
|
|
.ExportImageView-Header--inner {
|
|
position: absolute;
|
|
left: 50%;
|
|
width: 400px;
|
|
margin-left: -200px;
|
|
}
|
|
|
|
.ExportImageView--help {
|
|
position: relative;
|
|
color: rgba(#FFF, 0.4);
|
|
font-size: 13px;
|
|
text-align: center;
|
|
}
|
|
|
|
.ExportImageView-Header .Button {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
-moz-user-select: none;
|
|
-webkit-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.ExportImageView.is-small .ButtonClose {
|
|
top: 30px;
|
|
right: -70px;
|
|
}
|
|
|
|
.ExportImageView-Footer {
|
|
position: absolute;
|
|
z-index: 105;
|
|
bottom: -20px;
|
|
width: 100%;
|
|
text-align: center;
|
|
}
|
|
|
|
.ExportImageView-Footer--inner {
|
|
$width: 360px;
|
|
position: absolute;
|
|
left: 50%;
|
|
width: $width;
|
|
margin-left: -$width / 2;
|
|
|
|
transition: margin 200ms ease-in-out;
|
|
color: #9B9B9B;
|
|
}
|
|
|
|
.ExportImageView-dimensions {
|
|
display: inline-block;
|
|
padding: 3px 5px;
|
|
border-radius: 3px;
|
|
background: rgba(#000, 0.7);
|
|
color: #9B9B9B;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.ExportImageView-dimensions input {
|
|
width: 20px;
|
|
border: none;
|
|
outline: none;
|
|
background: transparent;
|
|
color: #FFF;
|
|
font-weight: normal;
|
|
}
|
|
|
|
.ExportImage-formatList {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
width: 100%;
|
|
}
|
|
|
|
.ExportImage-formatItem {
|
|
margin: 0 20px 0 0;
|
|
}
|
|
|
|
.ExportImageView.is-exportable {
|
|
.CanvasExport {
|
|
border: none;
|
|
}
|
|
|
|
.CanvasExport .ExportHelper.ExportHelper--header,
|
|
.CanvasExport .ExportHelper.ExportHelper--attribution {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.CanvasExport.ui-resizable > div.ui-resizable-handle,
|
|
.ExportImageView-Header,
|
|
.ExportImageView-Footer,
|
|
.ExportHelper--north,
|
|
.ExportHelper--south,
|
|
.ExportHelper--west,
|
|
.ExportHelper--east {
|
|
display: none !important;
|
|
}
|
|
}
|
|
|
|
.ExportHelper {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
background: rgba(#000, 0.6);
|
|
}
|
|
|
|
.ExportHelper.ExportHelper--header {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
padding: 10px;
|
|
transition: opacity 500ms ease-in-out;
|
|
background: rgba(#000, 0.75);
|
|
}
|
|
|
|
.ExportHelper.ExportHelper--attribution {
|
|
position: absolute;
|
|
top: auto;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: auto;
|
|
box-sizing: border-box;
|
|
width: auto;
|
|
padding: 0 5px;
|
|
transition: opacity 500ms ease-in-out;
|
|
background: rgba(#FFF, 0.75);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.ExportHelper.ExportHelper--legend {
|
|
display: inline-block;
|
|
position: absolute;
|
|
top: auto;
|
|
right: 0;
|
|
left: auto;
|
|
box-sizing: border-box;
|
|
width: auto;
|
|
padding: 0 5px;
|
|
}
|
|
|
|
.ExportHelperTitle {
|
|
color: #FFF;
|
|
font-size: 15px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.ExportHelperDescription {
|
|
color: #FFF;
|
|
font-size: 13px;
|
|
line-height: 19px;
|
|
}
|
|
|
|
.Button--advancedExport {
|
|
color: #FFF;
|
|
text-decoration: underline;
|
|
|
|
&:hover {
|
|
color: $cTypography-linkHover;
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
|
|
.Button--micro {
|
|
display: inline-block;
|
|
height: auto;
|
|
padding: 3px 5px;
|
|
border: none;
|
|
border-radius: 3px;
|
|
background: #FFF;
|
|
|
|
&:hover {
|
|
background: #DDD;
|
|
}
|
|
|
|
span {
|
|
color: #666;
|
|
font-size: 12px;
|
|
font-weight: normal;
|
|
text-transform: none;
|
|
}
|
|
}
|
|
|
|
.Button--micro.Button--negative {
|
|
padding: 2px 5px 2px 6px;
|
|
border: 1px solid #FFF;
|
|
border-radius: 5px;
|
|
background: #000;
|
|
|
|
span {
|
|
color: #FFF;
|
|
}
|
|
|
|
&::before {
|
|
content: '\d7';
|
|
position: relative;
|
|
left: -1px;
|
|
}
|
|
}
|
|
$resizeHandlerSize: 8px;
|
|
|
|
.CanvasExport {
|
|
position: absolute;
|
|
border: 1px dashed #FFF;
|
|
|
|
&.draggable {
|
|
z-index: 1000000000;
|
|
cursor: move;
|
|
}
|
|
}
|
|
|
|
.CanvasExport.is-small .ExportImageView-Header {
|
|
opacity: 0;
|
|
}
|
|
|
|
.CanvasExport.is-top .ExportImageView-Header {
|
|
margin-top: 50px; //compensate for header
|
|
}
|
|
|
|
.CanvasExport.is-bottom .ExportImageView-Footer--inner {
|
|
margin-top: -72px; //compensate for footer
|
|
}
|
|
|
|
.CanvasExport.draggable .ExportHelper.ExportHelper--header,
|
|
.CanvasExport.draggable .ExportHelper.ExportHelper--attribution,
|
|
.CanvasExport.draggable .ExportHelper.ExportHelper--legend {
|
|
opacity: 0.2;
|
|
}
|
|
|
|
.CanvasExport {
|
|
.ui-resizable {
|
|
position: relative;
|
|
}
|
|
|
|
.ui-resizable-handle {
|
|
display: block;
|
|
position: absolute;
|
|
z-index: 104;
|
|
width: $resizeHandlerSize;
|
|
height: $resizeHandlerSize; /* Old browsers */ /* FF3.6+ */ /* Chrome,Safari4+ */
|
|
background: linear-gradient(to bottom, rgba(254, 254, 254, 1) 0%, rgba(229, 229, 229, 1) 100%);
|
|
box-shadow: 1px 1px 2px rgba(#000, 0.5);
|
|
}
|
|
|
|
.ui-resizable-disabled .ui-resizable-handle,
|
|
.ui-resizable-autohide .ui-resizable-handle {
|
|
display: none;
|
|
}
|
|
|
|
.ui-resizable-n {
|
|
top: -5px;
|
|
left: 50%;
|
|
margin-left: -4px;
|
|
cursor: ns-resize;
|
|
}
|
|
|
|
.ui-resizable-s {
|
|
bottom: -5px;
|
|
left: 50%;
|
|
margin-left: -4px;
|
|
cursor: ns-resize;
|
|
}
|
|
|
|
.ui-resizable-e {
|
|
top: 50%;
|
|
right: -5px;
|
|
margin-top: -4px;
|
|
cursor: ew-resize;
|
|
}
|
|
|
|
.ui-resizable-w {
|
|
top: 50%;
|
|
left: -5px;
|
|
margin-top: -4px;
|
|
cursor: ew-resize;
|
|
}
|
|
|
|
.ui-resizable-se {
|
|
right: -4px;
|
|
bottom: -4px;
|
|
cursor: nwse-resize;
|
|
}
|
|
|
|
.ui-resizable-sw {
|
|
bottom: -4px;
|
|
left: -4px;
|
|
cursor: nesw-resize;
|
|
}
|
|
|
|
.ui-resizable-nw {
|
|
top: -4px;
|
|
left: -4px;
|
|
cursor: nwse-resize;
|
|
}
|
|
|
|
.ui-resizable-ne {
|
|
top: -4px;
|
|
right: -4px;
|
|
cursor: nesw-resize;
|
|
}
|
|
}
|
|
|
|
.Form-rowData.Form-rowData--export {
|
|
width: 230px;
|
|
color: #666;
|
|
}
|
|
|
|
.Form-rowLabel.Form-rowLabel--export {
|
|
width: 45px;
|
|
}
|
|
|
|
.RadioButton.RadioButton--export {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.FormatChooser-format.is-selected {
|
|
color: #CCC;
|
|
cursor: normal;
|
|
|
|
&:hover {
|
|
background: #FFF;
|
|
color: #CCC;
|
|
cursor: default;
|
|
}
|
|
}
|