Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
222 changes: 76 additions & 146 deletions packages/playground/website/src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,153 +3,90 @@
@import url('../../../../node_modules/@wordpress/components/build-style/style.css');
@import url('../../../../node_modules/@wordpress/dataviews/build-style/style.css');

/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
/*
Josh's Custom CSS Reset
https://www.joshwcomeau.com/css/custom-css-reset/
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
*,
*::before,
*::after {
box-sizing: border-box;
}

*:not(dialog) {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
display: block;

@media (prefers-reduced-motion: no-preference) {
html {
interpolate-size: allow-keywords;
}
}

body {
line-height: 1;
}
ol,
ul {
list-style: none;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
blockquote,
q {
quotes: none;

img,
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
content: '';
content: none;

input,
button,
textarea,
select {
font: inherit;
}
table {
border-collapse: collapse;
border-spacing: 0;

p,
h1,
h2,
h3,
h4,
h5,
h6 {
overflow-wrap: break-word;
}

html {
overflow: hidden;
p {
text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
text-wrap: balance;
}

/**
* Playground styles
*/

* {
box-sizing: border-box;
}

:root {
--color-gray-200: #ddd;
--color-gray-600: #6a6a6a;
--color-gray-900: #1e1e1e;
--color-alert-red: #cc1818;
--color-white: #fff;
--color-shadow: 0, 0, 0;
--color-success: #4caf50;
--color-success-hover: #45a049;
--color-success-active: #387c3b;
--wp-admin-theme-color: #007cba;
--wp-admin-theme-color--rgb: 0, 124, 186;
--wp-admin-theme-color-darker-10: #006ba1;
--wp-admin-theme-color-darker-10--rgb: 0, 107, 161;
--wp-admin-theme-color-darker-20: #005a87;
--wp-admin-theme-color-darker-20--rgb: 0, 90, 135;
}

html,
Expand All @@ -159,21 +96,13 @@ body {
height: 100%;
/* The same font settings as in wp-admin */
font-size: 13px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
font-family:
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans,
Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
line-height: 1.3;
font-weight: 300;
}

:root {
--wp-admin-theme-color: #007cba;
--wp-admin-theme-color--rgb: 0, 124, 186;
--wp-admin-theme-color-darker-10: #006ba1;
--wp-admin-theme-color-darker-10--rgb: 0, 107, 161;
--wp-admin-theme-color-darker-20: #005a87;
--wp-admin-theme-color-darker-20--rgb: 0, 90, 135;
}

.components-button.is-link {
text-decoration: none !important;
}
Expand Down Expand Up @@ -215,7 +144,7 @@ h4 {
}

.sr-only:not(:focus):not(:active) {
clip: rect(0 0 0 0);
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
height: 1px;
overflow: hidden;
Expand All @@ -235,28 +164,29 @@ h4 {
align-items: center;
}

/* Lazy load button */
#lazy-load-initiator {
display: inline-block;
background-color: #4caf50; /* Change this color to your desired green */
color: white;
background-color: var(--color-success);
color: var(--color-white);
padding: 10px 20px;
text-align: center;
text-decoration: none;
font-size: 34px;
border-radius: 4px;
transition: all 0.3s ease 0s;
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2); /* This creates the shadow effect */
transition: all 0.3s ease;
box-shadow: 0 5px 15px rgba(var(--color-shadow), 0.2);
}

#lazy-load-initiator:hover {
background-color: #45a049; /* A darker shade of green for hover */
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.4); /* Increased shadow on hover */
background-color: var(--color-success-hover);
box-shadow: 0 2px 10px rgba(var(--color-shadow), 0.4);
}

#lazy-load-initiator:active {
background-color: #387c3b; /* An even darker shade of green for active click */
box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.4); /* Less shadow during active click */
transform: translateY(2px); /* Button is pressed down a bit */
background-color: var(--color-success-active);
box-shadow: 0 1px 5px rgba(var(--color-shadow), 0.4);
transform: translateY(2px);
}

.typography p {
Expand Down