2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
2015-06-16 18:04:27 +03:00
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/ */
|
2012-03-12 17:39:56 +04:00
|
|
|
|
2018-04-30 18:22:09 +03:00
|
|
|
:root {
|
|
|
|
--marginbox-color: #FDFFDF;
|
2018-03-14 07:27:15 +03:00
|
|
|
--borderbox-color: var(--grey-50);
|
2018-04-30 18:22:09 +03:00
|
|
|
--paddingbox-color: #E3DCFF;
|
|
|
|
--contentbox-color: #CFF0FB;
|
|
|
|
--marginbox-border-color: #D8E60A;
|
2018-03-14 07:27:15 +03:00
|
|
|
--contentbox-border-color: #54A9FF;
|
2018-04-30 18:22:09 +03:00
|
|
|
--position-border-color: var(--grey-50);
|
|
|
|
}
|
|
|
|
|
|
|
|
:root.theme-dark {
|
|
|
|
--marginbox-color: #73764A;
|
|
|
|
--borderbox-color: var(--grey-70);
|
|
|
|
--paddingbox-color: #6657A6;
|
|
|
|
--contentbox-color: #407AA4;
|
|
|
|
--marginbox-border-color: #BDCA00;
|
|
|
|
--contentbox-border-color: #00B8FF;
|
|
|
|
--position-border-color: var(--grey-40);
|
|
|
|
}
|
|
|
|
|
|
|
|
.boxmodel-container {
|
2017-03-01 01:18:28 +03:00
|
|
|
overflow: auto;
|
2017-03-29 23:31:46 +03:00
|
|
|
padding-bottom: 4px;
|
2017-04-24 19:42:06 +03:00
|
|
|
max-width: 600px;
|
|
|
|
margin: 0 auto;
|
2015-06-16 18:04:27 +03:00
|
|
|
}
|
|
|
|
|
2016-07-19 11:30:13 +03:00
|
|
|
/* Header */
|
2015-06-16 18:04:27 +03:00
|
|
|
|
2017-01-29 01:11:04 +03:00
|
|
|
.boxmodel-header,
|
|
|
|
.boxmodel-info {
|
2016-07-19 11:30:13 +03:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2018-04-30 18:24:04 +03:00
|
|
|
padding: 4px 19px;
|
2015-06-16 18:04:27 +03:00
|
|
|
}
|
|
|
|
|
2017-01-29 01:11:04 +03:00
|
|
|
.layout-geometry-editor::before {
|
2016-07-19 11:30:13 +03:00
|
|
|
background: url(images/geometry-editor.svg) no-repeat center center / 16px 16px;
|
2015-06-16 18:04:27 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Main: contains the box-model regions */
|
|
|
|
|
2017-01-29 01:11:04 +03:00
|
|
|
.boxmodel-main {
|
2016-07-19 11:30:13 +03:00
|
|
|
position: relative;
|
2016-09-16 23:53:22 +03:00
|
|
|
color: var(--theme-selection-color);
|
2015-06-16 18:04:27 +03:00
|
|
|
/* Make sure there is some space between the window's edges and the regions */
|
2017-04-06 18:24:38 +03:00
|
|
|
margin: 14px auto;
|
2015-06-16 18:04:27 +03:00
|
|
|
width: calc(100% - 2 * 14px);
|
2017-03-01 01:18:28 +03:00
|
|
|
min-width: 240px;
|
2017-04-06 18:24:38 +03:00
|
|
|
/* The view will grow bigger as the window gets resized, until 400px */
|
|
|
|
max-width: 400px;
|
2017-03-01 01:18:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.boxmodel-box {
|
|
|
|
margin: 25px;
|
2014-12-05 00:11:00 +03:00
|
|
|
}
|
|
|
|
|
2018-03-14 08:46:03 +03:00
|
|
|
.boxmodel-size {
|
2018-03-14 07:27:15 +03:00
|
|
|
color: var(--grey-90);
|
|
|
|
}
|
|
|
|
|
|
|
|
.boxmodel-position,
|
|
|
|
.boxmodel-margin,
|
|
|
|
.boxmodel-padding {
|
|
|
|
color: var(--grey-50);
|
2016-09-16 23:53:22 +03:00
|
|
|
}
|
|
|
|
|
2017-09-12 21:43:04 +03:00
|
|
|
.theme-dark .boxmodel-margin,
|
2018-04-30 18:22:09 +03:00
|
|
|
.theme-dark .boxmodel-border,
|
|
|
|
.theme-dark .boxmodel-padding,
|
2017-09-12 21:43:04 +03:00
|
|
|
.theme-dark .boxmodel-size {
|
2018-04-30 18:22:09 +03:00
|
|
|
color: var(--grey-10);
|
|
|
|
}
|
|
|
|
|
|
|
|
.theme-dark .boxmodel-position {
|
|
|
|
color: var(--grey-30);
|
2017-09-12 21:43:04 +03:00
|
|
|
}
|
|
|
|
|
2015-06-16 18:04:27 +03:00
|
|
|
/* Regions are 3 nested elements with wide borders and outlines */
|
|
|
|
|
2017-03-15 09:58:53 +03:00
|
|
|
.boxmodel-contents {
|
2016-09-16 23:53:22 +03:00
|
|
|
height: 18px;
|
2018-03-14 07:27:15 +03:00
|
|
|
outline: dashed 1px var(--contentbox-border-color);
|
2016-09-16 23:53:22 +03:00
|
|
|
}
|
|
|
|
|
2018-03-14 07:27:15 +03:00
|
|
|
.boxmodel-margins {
|
|
|
|
border-width: 22px;
|
2018-03-14 07:27:15 +03:00
|
|
|
border-style: solid;
|
2018-03-14 07:27:15 +03:00
|
|
|
outline: dashed 1px var(--marginbox-border-color);
|
2018-03-14 07:27:15 +03:00
|
|
|
}
|
|
|
|
|
2018-03-14 07:27:15 +03:00
|
|
|
.boxmodel-borders {
|
|
|
|
border-width: 5px;
|
|
|
|
border-style: solid;
|
|
|
|
}
|
|
|
|
|
|
|
|
.boxmodel-paddings {
|
|
|
|
border-width: 27px;
|
|
|
|
border-style: solid;
|
2012-03-12 17:39:56 +04:00
|
|
|
}
|
|
|
|
|
2015-06-16 18:04:27 +03:00
|
|
|
/* Regions colors */
|
|
|
|
|
2017-01-29 01:11:04 +03:00
|
|
|
.boxmodel-margins {
|
2018-03-14 07:27:15 +03:00
|
|
|
border-color: var(--marginbox-color);
|
2015-06-16 18:04:27 +03:00
|
|
|
}
|
|
|
|
|
2017-01-29 01:11:04 +03:00
|
|
|
.boxmodel-borders {
|
2018-03-14 07:27:15 +03:00
|
|
|
border-color: var(--borderbox-color);
|
2015-06-16 18:04:27 +03:00
|
|
|
}
|
|
|
|
|
2017-01-29 01:11:04 +03:00
|
|
|
.boxmodel-paddings {
|
2018-03-14 07:27:15 +03:00
|
|
|
border-color: var(--paddingbox-color);
|
2015-06-16 18:04:27 +03:00
|
|
|
}
|
|
|
|
|
2017-03-15 09:58:53 +03:00
|
|
|
.boxmodel-contents {
|
2018-03-14 07:27:15 +03:00
|
|
|
background-color: var(--contentbox-color);
|
2015-06-16 18:04:27 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Editable region sizes are contained in absolutely positioned <p> */
|
|
|
|
|
2017-03-15 09:58:53 +03:00
|
|
|
.boxmodel-main > p,
|
|
|
|
.boxmodel-size {
|
2015-06-16 18:04:27 +03:00
|
|
|
position: absolute;
|
|
|
|
pointer-events: none;
|
|
|
|
margin: 0;
|
|
|
|
text-align: center;
|
2019-08-14 17:50:42 +03:00
|
|
|
direction: ltr;
|
2015-06-16 18:04:27 +03:00
|
|
|
}
|
|
|
|
|
2017-01-29 01:11:04 +03:00
|
|
|
.boxmodel-main > p > span,
|
2017-03-15 09:58:53 +03:00
|
|
|
.boxmodel-main > p > input,
|
2017-03-29 23:31:46 +03:00
|
|
|
.boxmodel-content,
|
|
|
|
.boxmodel-size > span {
|
2015-06-16 18:04:27 +03:00
|
|
|
vertical-align: middle;
|
|
|
|
pointer-events: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Coordinates for the region sizes */
|
|
|
|
|
2016-09-13 23:35:16 +03:00
|
|
|
.boxmodel-top,
|
|
|
|
.boxmodel-bottom {
|
2016-09-16 23:53:22 +03:00
|
|
|
width: calc(100% - 2px);
|
2015-06-16 18:04:27 +03:00
|
|
|
text-align: center;
|
2019-09-16 17:03:32 +03:00
|
|
|
z-index: 1; /* workaround for bug 1559706 */
|
2015-06-16 18:04:27 +03:00
|
|
|
}
|
|
|
|
|
2016-09-13 23:35:16 +03:00
|
|
|
.boxmodel-padding.boxmodel-top {
|
2018-03-14 07:27:15 +03:00
|
|
|
top: 34px;
|
2015-06-16 18:04:27 +03:00
|
|
|
}
|
|
|
|
|
2016-09-13 23:35:16 +03:00
|
|
|
.boxmodel-padding.boxmodel-bottom {
|
2018-03-14 07:27:15 +03:00
|
|
|
bottom: 35px;
|
2015-06-16 18:04:27 +03:00
|
|
|
}
|
|
|
|
|
2016-09-13 23:35:16 +03:00
|
|
|
.boxmodel-border.boxmodel-top {
|
2018-03-14 07:27:15 +03:00
|
|
|
top: 17px;
|
2015-06-16 18:04:27 +03:00
|
|
|
}
|
|
|
|
|
2016-09-13 23:35:16 +03:00
|
|
|
.boxmodel-border.boxmodel-bottom {
|
2018-03-14 07:27:15 +03:00
|
|
|
bottom: 17px;
|
2015-06-16 18:04:27 +03:00
|
|
|
}
|
|
|
|
|
2016-09-13 23:35:16 +03:00
|
|
|
.boxmodel-margin.boxmodel-top {
|
2018-03-14 07:27:15 +03:00
|
|
|
top: 0px;
|
2015-06-16 18:04:27 +03:00
|
|
|
}
|
|
|
|
|
2016-09-13 23:35:16 +03:00
|
|
|
.boxmodel-margin.boxmodel-bottom {
|
2018-03-14 07:27:15 +03:00
|
|
|
bottom: 1px;
|
2015-06-16 18:04:27 +03:00
|
|
|
}
|
|
|
|
|
2016-09-13 23:35:16 +03:00
|
|
|
.boxmodel-size,
|
2017-03-01 01:18:28 +03:00
|
|
|
.boxmodel-position.boxmodel-left,
|
|
|
|
.boxmodel-position.boxmodel-right,
|
2016-09-13 23:35:16 +03:00
|
|
|
.boxmodel-margin.boxmodel-left,
|
|
|
|
.boxmodel-margin.boxmodel-right,
|
|
|
|
.boxmodel-border.boxmodel-left,
|
|
|
|
.boxmodel-border.boxmodel-right,
|
|
|
|
.boxmodel-padding.boxmodel-left,
|
|
|
|
.boxmodel-padding.boxmodel-right {
|
2016-09-16 23:53:22 +03:00
|
|
|
top: 22px;
|
2016-07-29 22:05:54 +03:00
|
|
|
line-height: 80px;
|
2019-09-16 17:03:32 +03:00
|
|
|
z-index: 1; /* workaround for bug 1559706 */
|
2015-06-16 18:04:27 +03:00
|
|
|
}
|
|
|
|
|
2016-09-13 23:35:16 +03:00
|
|
|
.boxmodel-size {
|
2016-09-16 23:53:22 +03:00
|
|
|
width: calc(100% - 2px);
|
2015-06-16 18:04:27 +03:00
|
|
|
}
|
|
|
|
|
2017-03-01 01:18:28 +03:00
|
|
|
.boxmodel-position.boxmodel-top,
|
|
|
|
.boxmodel-position.boxmodel-bottom,
|
|
|
|
.boxmodel-position.boxmodel-left,
|
|
|
|
.boxmodel-position.boxmodel-right,
|
2016-09-13 23:35:16 +03:00
|
|
|
.boxmodel-margin.boxmodel-right,
|
|
|
|
.boxmodel-margin.boxmodel-left,
|
|
|
|
.boxmodel-border.boxmodel-right,
|
2017-03-15 09:58:53 +03:00
|
|
|
.boxmodel-border.boxmodel-left,
|
2016-09-13 23:35:16 +03:00
|
|
|
.boxmodel-padding.boxmodel-right,
|
|
|
|
.boxmodel-padding.boxmodel-left {
|
2016-09-16 23:53:22 +03:00
|
|
|
width: 21px;
|
2015-06-16 18:04:27 +03:00
|
|
|
}
|
|
|
|
|
2016-09-13 23:35:16 +03:00
|
|
|
.boxmodel-padding.boxmodel-left {
|
2018-03-14 07:27:15 +03:00
|
|
|
left: 56px;
|
2015-06-16 18:04:27 +03:00
|
|
|
}
|
|
|
|
|
2016-09-13 23:35:16 +03:00
|
|
|
.boxmodel-padding.boxmodel-right {
|
2018-03-14 07:27:15 +03:00
|
|
|
right: 56px;
|
2015-06-16 18:04:27 +03:00
|
|
|
}
|
|
|
|
|
2016-09-13 23:35:16 +03:00
|
|
|
.boxmodel-border.boxmodel-left {
|
2018-03-14 07:27:15 +03:00
|
|
|
left: 39px;
|
2015-06-16 18:04:27 +03:00
|
|
|
}
|
|
|
|
|
2016-09-13 23:35:16 +03:00
|
|
|
.boxmodel-border.boxmodel-right {
|
2018-03-14 07:27:15 +03:00
|
|
|
right: 39px;
|
2015-06-16 18:04:27 +03:00
|
|
|
}
|
|
|
|
|
2016-09-13 23:35:16 +03:00
|
|
|
.boxmodel-margin.boxmodel-right {
|
2018-03-14 07:27:15 +03:00
|
|
|
right: 24px;
|
2015-06-16 18:04:27 +03:00
|
|
|
}
|
|
|
|
|
2016-09-13 23:35:16 +03:00
|
|
|
.boxmodel-margin.boxmodel-left {
|
2018-03-14 07:27:15 +03:00
|
|
|
left: 24px;
|
2015-06-16 18:04:27 +03:00
|
|
|
}
|
|
|
|
|
2016-09-13 23:35:16 +03:00
|
|
|
.boxmodel-rotate.boxmodel-left:not(.boxmodel-editing) {
|
2015-06-16 18:04:27 +03:00
|
|
|
transform: rotate(-90deg);
|
2012-03-12 17:39:56 +04:00
|
|
|
}
|
2014-04-04 04:37:26 +04:00
|
|
|
|
2016-09-13 23:35:16 +03:00
|
|
|
.boxmodel-rotate.boxmodel-right:not(.boxmodel-editing) {
|
2015-06-16 18:04:27 +03:00
|
|
|
transform: rotate(90deg);
|
|
|
|
}
|
|
|
|
|
2017-03-01 01:18:28 +03:00
|
|
|
.boxmodel-rotate.boxmodel-left.boxmodel-position:not(.boxmodel-editing) {
|
|
|
|
border-top: none;
|
|
|
|
border-right: 1px solid var(--theme-highlight-purple);
|
|
|
|
width: auto;
|
|
|
|
height: 30px;
|
|
|
|
}
|
|
|
|
|
2017-03-15 09:58:53 +03:00
|
|
|
.boxmodel-size > p {
|
|
|
|
display: inline-block;
|
|
|
|
margin: auto;
|
|
|
|
line-height: 0;
|
|
|
|
}
|
|
|
|
|
2017-03-01 01:18:28 +03:00
|
|
|
.boxmodel-rotate.boxmodel-right.boxmodel-position:not(.boxmodel-editing) {
|
|
|
|
border-top: none;
|
|
|
|
border-left: 1px solid var(--theme-highlight-purple);
|
|
|
|
width: auto;
|
|
|
|
height: 30px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Box Model Positioning: contains top, right, bottom, left */
|
|
|
|
|
|
|
|
.boxmodel-position.boxmodel-top,
|
|
|
|
.boxmodel-position.boxmodel-bottom {
|
2018-04-30 18:22:09 +03:00
|
|
|
border-left: 1px solid var(--position-border-color);
|
2017-03-29 01:51:41 +03:00
|
|
|
left: calc(50% - 2px);
|
2017-03-01 01:18:28 +03:00
|
|
|
padding-left: 1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.boxmodel-position.boxmodel-right,
|
|
|
|
.boxmodel-position.boxmodel-left {
|
2018-04-30 18:22:09 +03:00
|
|
|
border-top: 1px solid var(--position-border-color);
|
2017-03-01 01:18:28 +03:00
|
|
|
line-height: 15px;
|
2017-03-17 00:39:53 +03:00
|
|
|
top: calc(50% - 1px);
|
2017-03-01 01:18:28 +03:00
|
|
|
width: 30px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.boxmodel-position.boxmodel-top {
|
|
|
|
top: -18px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.boxmodel-position.boxmodel-right {
|
|
|
|
right: -9px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.boxmodel-position.boxmodel-bottom {
|
|
|
|
bottom: -18px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.boxmodel-position.boxmodel-left {
|
|
|
|
left: -9px;
|
|
|
|
}
|
|
|
|
|
2016-07-19 11:30:13 +03:00
|
|
|
/* Legend: displayed inside regions */
|
2015-06-16 18:04:27 +03:00
|
|
|
|
2016-09-13 23:35:16 +03:00
|
|
|
.boxmodel-legend {
|
2015-06-16 18:04:27 +03:00
|
|
|
position: absolute;
|
|
|
|
z-index: 1;
|
2019-05-13 17:51:48 +03:00
|
|
|
cursor: default;
|
2015-06-16 18:04:27 +03:00
|
|
|
}
|
|
|
|
|
2016-09-13 23:35:16 +03:00
|
|
|
.boxmodel-legend[data-box="margin"] {
|
2018-03-14 07:27:15 +03:00
|
|
|
margin-left: 9px;
|
|
|
|
margin-top: 4px;
|
|
|
|
color: var(--grey-90);
|
2017-09-12 21:43:04 +03:00
|
|
|
}
|
|
|
|
|
2018-03-14 07:27:15 +03:00
|
|
|
.boxmodel-legend[data-box="position"] {
|
|
|
|
color: var(--grey-90);
|
|
|
|
margin: -18px 13px;
|
2018-03-14 07:27:15 +03:00
|
|
|
}
|
|
|
|
|
2018-03-14 07:27:15 +03:00
|
|
|
.boxmodel-legend[data-box="padding"] {
|
|
|
|
margin-top: 12px;
|
|
|
|
margin-left: 12px;
|
|
|
|
color: var(--grey-90);
|
|
|
|
}
|
|
|
|
|
|
|
|
.boxmodel-legend[data-box="border"] {
|
|
|
|
background-color: var(--borderbox-color);
|
|
|
|
height: 15px;
|
|
|
|
padding-top: 1px;
|
|
|
|
padding-left: 4px;
|
|
|
|
padding-right: 4px;
|
|
|
|
border-radius: 3px;
|
|
|
|
margin: 0px 0px;
|
2017-03-01 01:18:28 +03:00
|
|
|
}
|
|
|
|
|
2018-04-30 18:22:09 +03:00
|
|
|
.theme-dark .boxmodel-legend[data-box="margin"],
|
|
|
|
.theme-dark .boxmodel-legend[data-box="border"],
|
|
|
|
.theme-dark .boxmodel-legend[data-box="padding"] {
|
|
|
|
color: var(--grey-10);
|
|
|
|
}
|
|
|
|
|
|
|
|
.theme-dark .boxmodel-legend[data-box="position"] {
|
|
|
|
color: var(--grey-30);
|
|
|
|
}
|
|
|
|
|
2015-06-16 18:04:27 +03:00
|
|
|
/* Editable fields */
|
|
|
|
|
2016-09-13 23:35:16 +03:00
|
|
|
.boxmodel-editable {
|
2018-03-14 07:27:15 +03:00
|
|
|
position: relative;
|
2015-04-14 09:58:00 +03:00
|
|
|
border: 1px dashed transparent;
|
2019-08-29 13:12:25 +03:00
|
|
|
user-select: none;
|
2018-01-26 19:43:23 +03:00
|
|
|
white-space: nowrap;
|
2019-05-13 17:51:48 +03:00
|
|
|
cursor: pointer;
|
2014-04-04 04:37:26 +04:00
|
|
|
}
|
|
|
|
|
2018-03-14 07:27:15 +03:00
|
|
|
.boxmodel-editable[data-box="border"] {
|
|
|
|
background-color: var(--borderbox-color);
|
|
|
|
border-radius: 3px;
|
|
|
|
padding: 0 2px;
|
|
|
|
}
|
|
|
|
|
2016-09-13 23:35:16 +03:00
|
|
|
.boxmodel-editable:hover {
|
2015-06-16 18:04:27 +03:00
|
|
|
border-bottom-color: hsl(0, 0%, 50%);
|
2014-04-04 04:37:26 +04:00
|
|
|
}
|
|
|
|
|
2019-05-13 17:51:48 +03:00
|
|
|
.boxmodel-editable:focus,
|
|
|
|
.boxmodel-editable:active {
|
|
|
|
border: 1px solid var(--blue-50);
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2019-02-25 18:14:12 +03:00
|
|
|
.boxmodel-editable[data-box="margin"]:hover {
|
|
|
|
background-color: var(--marginbox-border-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.boxmodel-editable[data-box="padding"]:hover {
|
|
|
|
background-color: #c78fc7b3;
|
|
|
|
}
|
|
|
|
|
|
|
|
.boxmodel-editable[data-box="border"]:hover {
|
|
|
|
background-color: #545454;
|
|
|
|
}
|
|
|
|
|
|
|
|
.boxmodel-editable[data-box="content"]:hover {
|
|
|
|
background-color: var(--contentbox-border-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.boxmodel-editable[data-box="margin"]:hover,
|
|
|
|
.boxmodel-editable[data-box="padding"]:hover,
|
|
|
|
.boxmodel-editable[data-box="border"]:hover,
|
|
|
|
.boxmodel-editable[data-box="content"]:hover {
|
|
|
|
border-radius: 3px;
|
|
|
|
}
|
|
|
|
|
2016-09-13 23:35:16 +03:00
|
|
|
.boxmodel-size > span {
|
2015-06-16 18:04:27 +03:00
|
|
|
cursor: default;
|
|
|
|
}
|
2015-06-16 18:10:26 +03:00
|
|
|
|
2016-09-13 23:35:16 +03:00
|
|
|
/* Box Model Info: contains the position and size of the element */
|
2015-06-16 18:10:26 +03:00
|
|
|
|
2017-01-29 01:11:04 +03:00
|
|
|
.boxmodel-element-size {
|
2016-07-19 11:30:13 +03:00
|
|
|
flex: 1;
|
2019-08-14 17:50:42 +03:00
|
|
|
direction: ltr;
|
|
|
|
text-align: match-parent;
|
2015-06-16 18:10:26 +03:00
|
|
|
}
|
2016-03-17 17:59:03 +03:00
|
|
|
|
2017-01-29 01:11:04 +03:00
|
|
|
.boxmodel-position-group {
|
2016-03-17 17:59:03 +03:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
2017-02-08 21:58:50 +03:00
|
|
|
|
2018-08-23 04:07:08 +03:00
|
|
|
/* Tag displayed next to DOM Node previews (used to display reference elements) */
|
2017-04-24 19:42:06 +03:00
|
|
|
|
|
|
|
.boxmodel-container .reference-element {
|
|
|
|
margin-inline-start: 14px;
|
|
|
|
margin-block-start: 4px;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.boxmodel-container .reference-element-type {
|
|
|
|
background: var(--theme-highlight-purple);
|
|
|
|
color: white;
|
|
|
|
padding: 1px 2px;
|
|
|
|
border-radius: 2px;
|
|
|
|
font-size: 9px;
|
|
|
|
margin-inline-end: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.theme-dark .boxmodel-container .reference-element-type {
|
|
|
|
color: black;
|
2017-03-29 01:51:41 +03:00
|
|
|
}
|
|
|
|
|
2017-03-18 05:07:06 +03:00
|
|
|
/* Box Model Main - Offset Parent */
|
|
|
|
|
|
|
|
.boxmodel-offset-parent {
|
|
|
|
position: absolute;
|
|
|
|
top: -20px;
|
|
|
|
right: -10px;
|
|
|
|
color: var(--theme-highlight-purple);
|
|
|
|
}
|