Repository navigation
Improvements #212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvements #212
Changes from all commits
ea7da6e
33b43d7
dfda7f9
b2741f2
b334fce
c190c48
8a2b901
f32caa0
4a57569
8bf7c13
dfd0771
f8e1d71
52fba5b
274b2cf
9474b36
5ba481f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,3 +37,11 @@ | |
| .wp-block-theme-banner__image { | ||
| @apply aspect-(--banner-image-ratio) w-(--banner-image-width) max-w-none object-cover md:absolute md:top-0 md:bottom-0 md:left-0 md:h-full! md:min-h-0; | ||
| } | ||
|
|
||
| .wp-block-theme-banner:has( + .wp-block-theme-section.has-background ) { | ||
| @apply mb-0; | ||
|
|
||
| + .wp-block-theme-section.has-background { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Denk dat hier wel bewust was gekozen om het onderwerp van de regel in het bijhorende CSS bestand te stoppen. Als in we stijlen een sectie, dan vind je de CSS in het bestand voor secties. De vraag is wat bepaalt waar CSS staat, het onderwerp of de context. Voor beide valt waarschijnlijk wel iets te zeggen, als het maar consistent is. De regel leest zo wel een beetje raar: 'verwijder de bovenste marge van een sectie blok met een achtergrond dat volgt op een banner blok dat vooraf gaat aan sectie blok met een achtergrond' i.p.v. 'verwijder de bovenste marge van een sectie blok met een achtergrond dat volgt op een banner blok'. Heeft waarschijnlijk ook gevolgen voor hoe specifiek de regel is, hoewel dat in de praktijk waarschijnlijk nooit voor problemen zorgt.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "een banner blok dat vooraf gaat aan sectie blok met een achtergrond" dat gedeelte klopt niet. De situatie die hiermee afgehandeld is, is als volgt: De margin tussen deze blokken wil je weg hebben. Je verhaal over in welk bestand het moet staan, die snap ik wel ja. In dit geval heb ik voor de banner gekozen omdat in eerste instantie de margin van de banner wordt weggehaald en daarna ook die van de sectie. Ik zou het persoonlijk gek vinden om het in 2 losse bestanden te gaan zetten omdat het wel met elkaar te maken heeft.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Dat is alleen het laatste deel van de zin 😉 Snap dat beide marges in deze situaties weg moeten. Mijn punt was alleen dat |
||
| @apply mt-0; | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,7 @@ | |
| "description": "Gebruik dit blok om een kaart te maken met een afbeelding, titel en tekst.", | ||
| "ancestor": [ "core/group" ], | ||
| "supports": { | ||
| "anchor": true, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wybe: note to self wat doet anchor ookalweer |
||
| "html": false, | ||
| "reusable": false, | ||
| "color": { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,7 +17,3 @@ | |
| } | ||
| } | ||
| } | ||
|
|
||
| .wp-block-theme-banner + .wp-block-theme-section.has-background { | ||
| @apply mt-0; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,7 @@ | ||
| .wp-block-social-links { | ||
| @apply pl-0; | ||
| } | ||
|
|
||
| .wp-block-social-link { | ||
| @apply bg-white! text-primary! shadow-lg; | ||
|
|
||
| @variant hocus { | ||
| @apply transform-none! bg-primary! text-white! transition-all; | ||
| } | ||
| } | ||
|
|
||
| .wp-block-social-link-anchor { | ||
| @apply p-[0.25em]!; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -256,3 +256,7 @@ dialog .facetwp-type-date_range { | |
| } | ||
| } | ||
| } | ||
|
|
||
| .fdate-grid .selected { | ||
| @apply bg-primary-50!; | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nee dat willen we niet standaard in brave. Door het wel al als support toe te voegen is het wel makkelijk te gebruiken als een thema het wel nodig heeft.