feat: caching, optimization, legal pages & footer
- WP Super Cache enabled (PHP mode, gzip, Nginx compatible) - Autoptimize: CSS/HTML minification + deferred JS + Google Fonts optimization - Cookie Notice: GDPR/LOPD banner styled with brand colors (navy/burgundy/gold) - Legal pages: Aviso Legal, Política de Privacidad, Política de Cookies (ES) - MU-plugin: custom footer with legal links + Cloud Host credit - Footer: copyright, legal nav, Hosted & Maintained by Cloud Host (cloudhost.es) - Security: X-Frame-Options, X-Content-Type, Referrer-Policy headers - Security: XML-RPC disabled, REST user enumeration blocked - Performance: emoji scripts removed, post revisions limited to 3
This commit is contained in:
190
wp-content/plugins/wp-super-cache/styling/dashboard.css
Normal file
190
wp-content/plugins/wp-super-cache/styling/dashboard.css
Normal file
@@ -0,0 +1,190 @@
|
||||
/* TODO: Migrate to SCSS after adding build step to WPSC */
|
||||
|
||||
/* TODO: Migrate CSS from wp-cache.php */
|
||||
|
||||
#wpwrap {
|
||||
|
||||
/* Declare JP CSS variables */
|
||||
|
||||
/* TODO: Integrate root-variables.scss from base-styles package */
|
||||
--jp-black: #000;
|
||||
--jp-gray: #dcdcde;
|
||||
--jp-white-off: #f9f9f6;
|
||||
--jp-white: #fff;
|
||||
--font-headline-medium: 48px;
|
||||
--font-headline-small: 36px;
|
||||
--font-title-medium: 24px;
|
||||
--font-body: 16px;
|
||||
--font-body-small: 14px;
|
||||
|
||||
/* Declare commonly used variables */
|
||||
--wpsc-header-font:
|
||||
Corbel,
|
||||
-apple-system,
|
||||
BlinkMacSystemFont,
|
||||
"Segoe UI",
|
||||
Roboto,
|
||||
Oxygen-Sans,
|
||||
Ubuntu,
|
||||
Cantarell,
|
||||
"Helvetica Neue",
|
||||
sans-serif;
|
||||
--max-container-width: 1128px;
|
||||
background-color: var(--jp-white);
|
||||
}
|
||||
|
||||
#wpbody-content {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
#wpsc-dashboard {
|
||||
|
||||
/* Remove default wp-admin spacing */
|
||||
margin-left: -20px;
|
||||
padding-top: 20px;
|
||||
}
|
||||
|
||||
#wpsc-dashboard,
|
||||
#wpsc-dashboard p,
|
||||
#wpsc-dashboard .form-table,
|
||||
#wpsc-dashboard .form-table td,
|
||||
#wpsc-dashboard .form-table th,
|
||||
#wpsc-dashboard .form-table td p {
|
||||
font-size: var(--font-body);
|
||||
}
|
||||
|
||||
#wpsc-callout ul,
|
||||
#wpsc-callout ol,
|
||||
#wpsc-callout > p:last-child {
|
||||
font-size: var(--font-body-small);
|
||||
}
|
||||
|
||||
#wpsc-dashboard > .header,
|
||||
#wpsc-dashboard > .footer,
|
||||
#wpsc-dashboard .wpsc-body-content,
|
||||
#wpsc-dashboard .wpsc-nav {
|
||||
max-width: var(--max-container-width);
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.header {
|
||||
--icon-height: 48px;
|
||||
display: flex;
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
.header .wpsc-icon {
|
||||
width: var(--icon-height);
|
||||
height: var(--icon-height);
|
||||
border-radius: 7px;
|
||||
}
|
||||
|
||||
.header .wpsc-name {
|
||||
color: var(--jp-black);
|
||||
font-family: var(--wpsc-header-font);
|
||||
font-size: var(--font-headline-small);
|
||||
letter-spacing: -0.015em;
|
||||
line-height: var(--icon-height);
|
||||
margin-left: 0.25em;
|
||||
}
|
||||
|
||||
.wpsc-nav {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.wpsc-nav-tab {
|
||||
width: auto;
|
||||
flex: none;
|
||||
border-bottom: 2px solid transparent;
|
||||
border-top: none;
|
||||
text-align: center;
|
||||
margin: 0 16px;
|
||||
}
|
||||
|
||||
.wpsc-nav-tab:hover,
|
||||
.wpsc-nav-tab:focus,
|
||||
.wpsc-nav-tab.wpsc-nav-tab-selected {
|
||||
box-shadow: inset 0 -1px 0 rgb(0, 0, 0);
|
||||
}
|
||||
|
||||
.wpsc-nav-tab a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
box-sizing: border-box;
|
||||
padding: 15px;
|
||||
width: 100%;
|
||||
font-size: 1rem;
|
||||
font-weight: 400;
|
||||
line-height: 24px;
|
||||
color: var(--jp-black);
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.wpsc-nav-container {
|
||||
background: var(--jp-white);
|
||||
}
|
||||
|
||||
.wpsc-body {
|
||||
background: var(--jp-white-off);
|
||||
}
|
||||
|
||||
.wpsc-card {
|
||||
background: var(--jp-white);
|
||||
border-radius: 4px;
|
||||
flex-wrap: wrap;
|
||||
font-size: var(--font-body);
|
||||
line-height: 1.3;
|
||||
margin-bottom: 2em;
|
||||
margin-right: 1em;
|
||||
max-width: 100%;
|
||||
padding: 1rem 1.5rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.footer {
|
||||
--icon-height: 16px;
|
||||
|
||||
display: flex;
|
||||
margin-top: 1em;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.footer .wp-super-cache-version .wpsc-icon {
|
||||
border-radius: 2px;
|
||||
height: var(--icon-height);
|
||||
width: var(--icon-height);
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.footer .wp-super-cache-version .wpsc-name {
|
||||
font-family: var(--wpsc-header-font);
|
||||
letter-spacing: -0.015em;
|
||||
margin-left: 0.25em;
|
||||
line-height: var(--icon-height);
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.footer .automattic-airline {
|
||||
flex: 1;
|
||||
height: 45px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.footer .automattic-airline img {
|
||||
width: 190px;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
#wpsc-notice-boost-migrate {
|
||||
margin-top: 10px;
|
||||
|
||||
a.button.button-primary {
|
||||
background-color: var(--jp-black);
|
||||
color: var(--jp-white);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user