Compare commits

...

4 Commits

Author SHA1 Message Date
9ab551f335 style changes to tweets and tables 2022-01-16 21:35:21 +00:00
30e2b890cf 1.0.1 2021-07-30 21:12:37 +01:00
dfabac5c2f Add styles for figcaption 2021-07-30 21:12:14 +01:00
292b660138 use ems for media queries 2021-07-30 21:03:03 +01:00
4 changed files with 22 additions and 13 deletions

View File

@@ -104,6 +104,7 @@
.content .twitter-tweet { .content .twitter-tweet {
width: auto !important; width: auto !important;
margin: 0 auto;
} }
.content .wp-caption { .content .wp-caption {
@@ -127,8 +128,7 @@
@media (--viewport-md) { @media (--viewport-md) {
.content .twitter-tweet, .content .twitter-tweet,
.content .wp-caption { .content .wp-caption {
margin: 0 0 var(--space-md); padding: var(--space-sm) var(--space-md);
padding: var(--space-md);
} }
} }
@@ -147,6 +147,19 @@
font-size: 0.8rem; font-size: 0.8rem;
} }
.content .wp-block-table {
display: flex;
flex-direction: column;
align-items: center;
}
.content figcaption {
font-size: var(--size-body-extra-small);
font-style: italic;
text-align: center;
color: var(--color-dark-blue);
}
.content table { .content table {
border-collapse: collapse; border-collapse: collapse;
table-layout: fixed; table-layout: fixed;
@@ -165,12 +178,8 @@
} }
} }
.content th,
.content tr,
.content td { .content td {
border-width: 0 0 1px; border: 1px solid var(--color-dark-blue);
border-style: solid;
border-color: var(--color-dark-blue);
padding: var(--space-xs); padding: var(--space-xs);
} }

View File

@@ -71,8 +71,8 @@
--bullet-size: 0.45rem; --bullet-size: 0.45rem;
} }
@custom-media --viewport-sm (min-width: 30rem); @custom-media --viewport-sm (min-width: 30em);
@custom-media --viewport-md (min-width: 40rem); @custom-media --viewport-md (min-width: 40em);
@custom-media --viewport-lg (min-width: 60rem); @custom-media --viewport-lg (min-width: 60em);
@custom-media --viewport-xl (min-width: 75rem); @custom-media --viewport-xl (min-width: 75em);
@custom-media --viewport-wordpress-admin-bar (min-width: 783px); @custom-media --viewport-wordpress-admin-bar (min-width: 783px);

2
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{ {
"name": "windycoys", "name": "windycoys",
"version": "1.0.0", "version": "1.0.1",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@@ -1,6 +1,6 @@
{ {
"name": "windycoys", "name": "windycoys",
"version": "1.0.0", "version": "1.0.1",
"description": "Wordpress theme for windycoys.com", "description": "Wordpress theme for windycoys.com",
"author": "Dan Head <me@danielhead.com>", "author": "Dan Head <me@danielhead.com>",
"license": "MIT", "license": "MIT",