Bug 1453529 - Update box model diagram in dark theme with new darker colors. r=jdescottes

This commit is contained in:
Gabriel Luong 2018-04-30 11:22:09 -04:00
Родитель 8298d017b1
Коммит 895e5c6a92
1 изменённых файлов: 38 добавлений и 12 удалений

Просмотреть файл

@ -2,17 +2,27 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/ */ * file, You can obtain one at http://mozilla.org/MPL/2.0/ */
/** :root {
* This is the stylesheet of the Box Model view implemented in the layout panel. --marginbox-color: #FDFFDF;
*/ --borderbox-color: var(--grey-50);
--paddingbox-color: #E3DCFF;
--contentbox-color: #CFF0FB;
--marginbox-border-color: #D8E60A;
--contentbox-border-color: #54A9FF;
--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 { .boxmodel-container {
--marginbox-color: #fdffdf;
--borderbox-color: var(--grey-50);
--paddingbox-color: #e3dcff;
--contentbox-color: #cff0fb;
--marginbox-border-color: #d8e60a;
--contentbox-border-color: #54A9FF;
overflow: auto; overflow: auto;
padding-bottom: 4px; padding-bottom: 4px;
max-width: 600px; max-width: 600px;
@ -60,8 +70,14 @@
} }
.theme-dark .boxmodel-margin, .theme-dark .boxmodel-margin,
.theme-dark .boxmodel-border,
.theme-dark .boxmodel-padding,
.theme-dark .boxmodel-size { .theme-dark .boxmodel-size {
color: var(--grey-60); color: var(--grey-10);
}
.theme-dark .boxmodel-position {
color: var(--grey-30);
} }
/* Regions are 3 nested elements with wide borders and outlines */ /* Regions are 3 nested elements with wide borders and outlines */
@ -241,14 +257,14 @@
.boxmodel-position.boxmodel-top, .boxmodel-position.boxmodel-top,
.boxmodel-position.boxmodel-bottom { .boxmodel-position.boxmodel-bottom {
border-left: 1px solid var(--grey-50); border-left: 1px solid var(--position-border-color);
left: calc(50% - 2px); left: calc(50% - 2px);
padding-left: 1px; padding-left: 1px;
} }
.boxmodel-position.boxmodel-right, .boxmodel-position.boxmodel-right,
.boxmodel-position.boxmodel-left { .boxmodel-position.boxmodel-left {
border-top: 1px solid var(--grey-50); border-top: 1px solid var(--position-border-color);
line-height: 15px; line-height: 15px;
top: calc(50% - 1px); top: calc(50% - 1px);
width: 30px; width: 30px;
@ -304,6 +320,16 @@
margin: 0px 0px; margin: 0px 0px;
} }
.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);
}
/* Editable fields */ /* Editable fields */
.boxmodel-editable { .boxmodel-editable {