mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Administration: Update design of the Dashboard welcome panel.
Tone down the brightness of the dashboard panel by using a white background behind the main text, and use the highlight color from each color scheme for the main background. This also introduces a `$scheme-name` SCSS variable to allow overrides for specific color schemes. Props critterverse, sabernhardt, joedolson, audrasjb. See #54489. git-svn-id: https://develop.svn.wordpress.org/trunk@52562 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -781,3 +781,17 @@ div#wp-responsive-toggle a:before {
|
||||
color: $link;
|
||||
}
|
||||
}
|
||||
|
||||
/* Welcome Panel */
|
||||
|
||||
.welcome-panel {
|
||||
background-color: $highlight-color;
|
||||
}
|
||||
|
||||
[class*="welcome-panel-icon"] {
|
||||
@if ( $scheme-name == "light" ) {
|
||||
background-color: $icon-color;
|
||||
} @else {
|
||||
background-color: $base-color;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// assign default value to all undefined variables
|
||||
|
||||
$scheme-name: "default" !default;
|
||||
|
||||
// core variables
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
$scheme-name: "blue";
|
||||
$base-color: #52accc;
|
||||
$icon-color: #e5f8ff;
|
||||
$highlight-color: #096484;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
$scheme-name: "coffee";
|
||||
$base-color: #59524c;
|
||||
$highlight-color: #c7a589;
|
||||
$notification-color: #9ea476;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
$scheme-name: "ectoplasm";
|
||||
$base-color: #523f6d;
|
||||
$icon-color: #ece6f6;
|
||||
$highlight-color: #a3b745;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
$scheme-name: "light";
|
||||
$base-color: #e5e5e5;
|
||||
$icon-color: #999;
|
||||
$text-color: #333;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
$scheme-name: "midnight";
|
||||
$base-color: #363b3f;
|
||||
$highlight-color: #e14d43;
|
||||
$notification-color: #69a8bb;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
$scheme-name: "modern";
|
||||
$base-color: #1e1e1e;
|
||||
$highlight-color: #3858e9;
|
||||
$menu-submenu-focus-text: #33f078;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
$scheme-name: "ocean";
|
||||
$base-color: #738e96;
|
||||
$icon-color: #f2fcff;
|
||||
$highlight-color: #9ebaa0;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
$scheme-name: "sunrise";
|
||||
$base-color: #cf4944;
|
||||
$highlight-color: #dd823b;
|
||||
$notification-color: #ccaf0b;
|
||||
|
||||
@@ -115,10 +115,9 @@
|
||||
position: relative;
|
||||
overflow: auto;
|
||||
margin: 16px 0;
|
||||
background: #3858e9 url(../images/about-texture.png) center repeat;
|
||||
background: #2271b1 url(../images/about-texture.png) center repeat;
|
||||
background-size: 500px 500px;
|
||||
background-blend-mode: overlay;
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
line-height: 1.3;
|
||||
}
|
||||
@@ -148,11 +147,6 @@
|
||||
font-size: 20px;
|
||||
font-weight: 400;
|
||||
line-height: 1.4;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.welcome-panel a {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.welcome-panel p {
|
||||
@@ -160,6 +154,27 @@
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
.welcome-panel-header {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.welcome-panel-header a {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.welcome-panel-header a:focus,
|
||||
.welcome-panel-header a:hover {
|
||||
color: #f5e6ab;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.welcome-panel-header a:focus,
|
||||
.welcome-panel .welcome-panel-close:focus {
|
||||
outline-color: currentColor;
|
||||
outline-offset: 1px;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.welcome-panel-header p {
|
||||
margin: 0.5em 0 0;
|
||||
font-size: 20px;
|
||||
@@ -186,6 +201,10 @@
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.welcome-panel .welcome-panel-close {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.welcome-panel .welcome-panel-close:hover,
|
||||
.welcome-panel .welcome-panel-close:focus,
|
||||
.welcome-panel .welcome-panel-close:hover::before,
|
||||
@@ -230,13 +249,13 @@
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 32px;
|
||||
align-self: flex-end;
|
||||
background: #3858e9;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
[class*="welcome-panel-icon"] {
|
||||
height: 60px;
|
||||
width: 60px;
|
||||
background-color: #1d35b4;
|
||||
background-color: #1d2327;
|
||||
background-position: center;
|
||||
background-size: 24px 24px;
|
||||
background-repeat: no-repeat;
|
||||
|
||||
Reference in New Issue
Block a user