-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcraft4-cp.scss
128 lines (119 loc) · 2.6 KB
/
craft4-cp.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
/**
* Sass theme for Craft CMS 4 control panel
*
* 1. Set brand logo.
* 1. Set brand color.
* 2. Fine-tune theme colors (1-5).
* 3. Additional adjustments as you see fit!
*/
// Set brand logo
$logo: url('/path/to/logo.png');
// Main brand color
$brand-color: #01406D;
// Automatically generate a CP theme
$theme-1: lighten($brand-color, 71%);
$theme-2: lighten($brand-color, 68%);
$theme-3: $brand-color;
$theme-4: darken($brand-color, 6%);
$theme-5: darken($brand-color, 11%);
// ========================================================================= //
// Login page
body.login {
color: $theme-1 !important;
background: $theme-3;
h1 {
background-image: $logo !important;
background-position: center center !important;
background-repeat: no-repeat;
background-size: contain;
text-indent: -9999px;
width: 100%;
height: 120px;
display: block;
border-radius: 4px;
}
.btn.submit {
color: $theme-1 !important;
background-color: $theme-4 !important;
&:not(.disabled):not(.inactive) {
&:hover,
&.hover {
background-color: $theme-5 !important;
}
&:active,
&.active {
background-color: $theme-5 !important;
}
}
}
#password-fields,
#forgot-password,
#remember-password {
color: $theme-1 !important;
}
#poweredby {
opacity: 1;
path {
fill: $theme-1;
}
}
}
// Sidebar
#global-sidebar {
background: $theme-3;
a {
color: $theme-1 !important;
}
> a,
:not(.has-subnav) > a {
&:hover,
&.active,
&:active {
background-color: $theme-4 !important;
}
}
:not(.has-subnav) > a.sel {
color: $theme-5 !important;
background-color: $theme-5 !important;
}
#system-info {
margin-top: 6px;
margin-right: 8px;
height: 60px;
flex: 0 0 74px;
background-color: $theme-3 !important;
background-image: $logo !important;
background-position: center center !important;
background-size: 60% auto !important;
background-repeat: no-repeat;
text-indent: -9999px;
#site-icon,
#system-name {
display: none;
h2:after {
background-image: none;
}
}
}
}
// Buttons
.btn.submit {
color: $theme-1 !important;
background-color: $theme-3 !important;
&:not(.disabled):not(.inactive):not(.loading) {
&:hover,
&.hover,
&:focus {
background-color: $theme-4 !important;
}
&:active,
&.active,
&[aria-expanded=true] {
background-color: $theme-5 !important;
}
}
}
// // Hide the ever-present Utilities badge
// li#nav-utilities a .badge {
// display: none;
// }