Skip to content

Commit

Permalink
CSS fix for list previews in guidance (#1648)
Browse files Browse the repository at this point in the history
* Makes the lists in the formattign prviews match what a Notify template will look like.

* ran prettier on wp.css

* ran make format inside the container

* re-run tailwind

---------

Co-authored-by: Andrew <[email protected]>
Co-authored-by: Philippe Caron <vscode@localhost>
  • Loading branch information
3 people authored Aug 16, 2023
1 parent a07ae8f commit 96f25ad
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/stylesheets/index.css

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions app/assets/stylesheets/tailwind/toolkit/wp.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
--text: theme("colors.white.default");
--interactive: theme("colors.blue.lighter");
}

.wp-block-cover.bg-gray {
--bg: theme("colors.gray.default");
--text: theme("colors.black.default");
Expand All @@ -35,6 +36,7 @@
position: relative;
@apply py-20;
}

.wp-block-cover.flow
.wp-block-cover__inner-container
> :not(template)
Expand All @@ -49,6 +51,7 @@
.wp-block-columns {
flex-direction: column;
}

/* Gives some flow spacing for all columns when stacked */
.wp-block-columns > :not(template) + :not(template) {
@apply mt-gutter;
Expand Down Expand Up @@ -108,6 +111,7 @@
width: calc(100% + theme("spacing.gutter"));
@apply -mx-gutterHalf;
}

.wp-block-columns > :not(template) + :not(template) {
@apply mt-0;
}
Expand All @@ -117,6 +121,7 @@
flex-grow: 0;
@apply px-gutterHalf;
}

.wp-block-column > :not(template) + :not(template) {
@apply mt-gutter;
}
Expand All @@ -125,11 +130,13 @@
.stack-swap .wp-block-column > .wp-block-image:only-child {
@apply block;
}

/* On lg screens: Hide wp-block-image if it isn't the first child */
.stack-swap .wp-block-column * + .wp-block-image {
@apply hidden;
}
}

.has-text-align-center {
@apply text-center mx-auto;
}
Expand All @@ -138,6 +145,7 @@
.wp-block-buttons {
display: flex;
}

.wp-block-buttons > *:not(:last-child) {
@apply mr-gutter;
}
Expand All @@ -159,13 +167,20 @@
@apply mt-0;
}

.wp-block-columns.panel-container .panel-preview ul li + li,
.wp-block-columns.panel-container .panel-preview ol li + li {
@apply p-0;
}

/* Semantic styling for content pages */
.page-content ul {
@apply list list-bullet pl-8;
}

.page-content ul ul {
list-style-type: circle;
}

.page-content ul ul ul {
list-style-type: square;
}
Expand Down Expand Up @@ -195,5 +210,6 @@
.wp .page-content.home p + ul {
margin-top: -0.5rem;
}

/*! purgecss end ignore */
}

0 comments on commit 96f25ad

Please sign in to comment.