Skip to content

Commit 88aea26

Browse files
authored
Update admin styles to resolve some postbox style issues. (#87)
(cherry picked from commit 6ce64f8)
1 parent 94a40c8 commit 88aea26

1 file changed

Lines changed: 27 additions & 30 deletions

File tree

src/assets/css/admin.css

Lines changed: 27 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
background-color: #fff;
1313
box-sizing: border-box;
1414
float: none !important;
15-
padding: .9rem 1.5rem 1rem;
15+
padding: .9rem 1.5rem 2.5rem;
1616
position: relative !important;
1717
width: 100% !important;
1818
}
@@ -30,18 +30,16 @@
3030

3131
/************ NOTICES *************/
3232
div.notice:not(.Dwnload_WP_Settings_Api__notices > div.notice) {
33-
opacity: 0;
3433
transition: opacity 0.5s ease-in-out;
3534
visibility: hidden;
3635
}
3736

3837
.Dwnload_WP_Settings_Api__container .Dwnload_WP_Settings_Api__notices {
39-
background-color: #fff;
38+
background: #f0f0f1 linear-gradient(180deg, rgba(240, 240, 241, 0.7) 85%, rgba(255, 255, 255, 1) 100%);
4039
padding: 10px 20px;
4140
}
4241

4342
.Dwnload_WP_Settings_Api__notices > div.notice {
44-
margin: 0;
4543
opacity: 1;
4644
visibility: visible;
4745
}
@@ -50,13 +48,6 @@ div.notice:not(.Dwnload_WP_Settings_Api__notices > div.notice) {
5048
display: none;
5149
}
5250

53-
.Dwnload_WP_Settings_Api__notices div.error,
54-
.Dwnload_WP_Settings_Api__notices div.updated {
55-
background-color: transparent;
56-
margin: 0;
57-
border-right: 0;
58-
}
59-
6051
/************ STICKY *************/
6152
.Dwnload_WP_Settings_Api__sticky {
6253
background: #f3f3f3;
@@ -71,6 +62,10 @@ div.notice:not(.Dwnload_WP_Settings_Api__notices > div.notice) {
7162
padding: .5rem calc(.8rem + 20px);
7263
}
7364

65+
.Dwnload_WP_Settings_Api__sticky .wrap .alignright input:disabled {
66+
visibility: hidden;
67+
}
68+
7469
.is-sticky > .Dwnload_WP_Settings_Api__sticky {
7570
bottom: 0;
7671
border-top: 1px solid #dedede;
@@ -105,36 +100,49 @@ div.notice:not(.Dwnload_WP_Settings_Api__notices > div.notice) {
105100
text-decoration: underline;
106101
}
107102

108-
/*******SIDEBAR/MAIN *************/
103+
/****** SIDEBAR/MAIN *************/
109104
.Dwnload_WP_Settings_Api__container .Dwnload_WP_Settings_Api__sidebar,
110105
.Dwnload_WP_Settings_Api__container .Dwnload_WP_Settings_Api__body {
111106
min-height: 950px;
112107
}
113108

114109
/************ SIDEBAR ************/
115110
.Dwnload_WP_Settings_Api__sidebar {
116-
border-left: 1px solid #dedede;
117-
border-bottom: 1px solid #dedede;
118111
float: left;
119112
margin-left: 20px;
120113
padding-bottom: 1.5rem;
121114
width: calc(222px - 1.15rem);
122115
}
123116

124-
#wpbody-content .Dwnload_WP_Settings_Api__menu > .metabox-holder {
125-
padding-top: 10px;
117+
.Dwnload_WP_Settings_Api__sidebar li {
118+
list-style: none;
119+
}
120+
121+
.Dwnload_WP_Settings_Api__sidebar .postbox {
122+
border: 1px solid #bdbdbd;
123+
box-shadow: 3px 3px 1px #cacaca7a;
124+
margin: 0 10px 2px 0;
125+
min-width: calc(100% - 34px);
126+
transition: all 400ms;
127+
}
128+
.Dwnload_WP_Settings_Api__sidebar .postbox:hover {
129+
border: 1px solid #bdbdbd;
130+
box-shadow: 3px 3px 2px #cacaca;
126131
}
127132

128-
#wpbody-content .Dwnload_WP_Settings_Api__menu > .metabox-holder ~ .metabox-holder {
129-
padding-top: 0;
133+
/******* SIDEBAR MENU ************/
134+
#wpbody-content .Dwnload_WP_Settings_Api__menu > .metabox-holder {
135+
padding-top: 12px;
130136
}
131137

132138
.Dwnload_WP_Settings_Api__menu {
133139
border-top: 1px solid #dedede;
134140
margin-top: 0;
135141
}
136142

137-
.Dwnload_WP_Settings_Api__menu li {
143+
.Dwnload_WP_Settings_Api__menu > li {
144+
border-left: 1px solid #dedede;
145+
border-bottom: 1px solid #dedede;
138146
margin-bottom: 2px;
139147
}
140148

@@ -158,17 +166,6 @@ div.notice:not(.Dwnload_WP_Settings_Api__notices > div.notice) {
158166
font-weight: bold;
159167
}
160168

161-
.Dwnload_WP_Settings_Api__sidebar li {
162-
list-style: none;
163-
}
164-
165-
.Dwnload_WP_Settings_Api__sidebar .postbox {
166-
border-right: none;
167-
border-left: none;
168-
margin-bottom: 1px;
169-
min-width: 100%;
170-
}
171-
172169
/************ MAIN ***************/
173170
.Dwnload_WP_Settings_Api__body {
174171
background: none repeat scroll 0 0 #fcfcfc;

0 commit comments

Comments
 (0)