-
Notifications
You must be signed in to change notification settings - Fork 92
Try adding simple search + file button styles #235
Changes from all commits
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 | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -35,8 +35,8 @@ body { | |||||||
*/ | ||||||||
|
||||||||
a { | ||||||||
text-decoration-thickness: 1px; | ||||||||
text-underline-offset: 0.25ch; | ||||||||
text-decoration-thickness: 1px; | ||||||||
text-underline-offset: 0.25ch; | ||||||||
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. Changing spaces to tabs. 😉 |
||||||||
} | ||||||||
|
||||||||
a:hover, | ||||||||
|
@@ -47,3 +47,24 @@ a:focus { | |||||||
a:active { | ||||||||
text-decoration: none; | ||||||||
} | ||||||||
|
||||||||
/* | ||||||||
* Search and File Block button styles. | ||||||||
* Necessary until the following issues are resolved in Gutenberg: | ||||||||
* https://github.com/WordPress/gutenberg/issues/36444 | ||||||||
* https://github.com/WordPress/gutenberg/issues/27760 | ||||||||
*/ | ||||||||
|
||||||||
.wp-block-search__button, | ||||||||
.wp-block-file .wp-block-file__button { | ||||||||
background-color: var(--wp--preset--color--primary); | ||||||||
border-radius: 0; | ||||||||
border: none; | ||||||||
color: var(--wp--preset--color--background); | ||||||||
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. What do you think about adding this line:
Suggested change
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. I recall there being a major discussion around this cursor behavior at some point in Core. I think we should leave it to be the default behavior for right now — if that gets changed it should happen in Gutenberg. |
||||||||
font-size: var(--wp--preset--typography--font-size--normal); | ||||||||
padding: calc(.667em + 2px) calc(1.333em + 2px); | ||||||||
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. We could leave this padding line out to keep this even more minimal — it makes this mirror the normal button padding, but I'm a little indifferent about it. 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. I think let's keep it. |
||||||||
} | ||||||||
|
||||||||
.wp-block-file a.wp-block-file__button:hover { | ||||||||
opacity: 1; | ||||||||
} |
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.
This undoes the commit here: #220 (comment)
In my testing, this prevented the stylesheet from loading in the editor.
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.
I can't recreate this but I'm fine with the change, based on the docs for this function.