-
Notifications
You must be signed in to change notification settings - Fork 1
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
ENH Prepare theme for adoption as a supported module #9
Merged
emteknetnz
merged 2 commits into
silverstripe:main
from
creative-commoners:pulls/main/adopt-theme
Jan 30, 2025
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** | ||
* Accordion styles | ||
* See also accordion.js | ||
*/ | ||
|
||
.accordion__container { | ||
display: grid; | ||
grid-template-rows: 0fr; | ||
transition: var(--transition-default); | ||
visibility: hidden; | ||
opacity: 0; | ||
} | ||
|
||
.accordion__item.is-active .accordion__container { | ||
grid-template-rows: 1fr; | ||
visibility: visible; | ||
opacity: 100; | ||
} | ||
|
||
[data-accordion-flip] { | ||
transition: var(--transition-default); | ||
} | ||
|
||
.accordion__item.is-active [data-accordion-flip] { | ||
rotate: -180deg; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
/** ---------------------------------------------------------- | ||
* | ||
* This stylesheet includes both generic form styles and | ||
* additional form styles for the User Defined Form Module. | ||
* | ||
** ------------------------------------------------------- */ | ||
|
||
form { | ||
--max-width: 100%; | ||
/* important required to override userform module styling */ | ||
max-width: var(--max-width) !important; | ||
|
||
@media (min-width: 750px) { | ||
--max-width: 500px; | ||
} | ||
|
||
div.field { | ||
margin: 0.667em 0 1em; | ||
} | ||
|
||
fieldset { | ||
border: 0; | ||
} | ||
|
||
label.left { | ||
font-weight: bold; | ||
} | ||
|
||
label.right { | ||
font-size: 0.9em; | ||
} | ||
|
||
input.text, | ||
textarea, | ||
select { | ||
width: 100%; | ||
max-width: var(--max-width); | ||
padding: 0.4em 0.333em; | ||
font-size: 1.5rem; | ||
background-color: var(--color-white); | ||
border: 1px solid var(--color-line-grey); | ||
} | ||
|
||
input[disabled], | ||
textarea[disabled], | ||
select[disabled] { | ||
background-color: var(--color-pale-grey); | ||
border: 1px solid var(--color-line-grey); | ||
} | ||
|
||
textarea { | ||
resize: vertical; | ||
} | ||
|
||
/* pseudo element adds an asterisk to a required fields label */ | ||
input[required] ~ label.left:after, | ||
input[required] ~ legend.left:after, | ||
/* user defined form uses .requiredField css class */ | ||
.requiredField label.left:after, | ||
.requiredField legend.left:after { | ||
color: var(--color-error-dark); | ||
content: "*"; | ||
font-size: 0.8em; | ||
font-weight: normal; | ||
padding-left: 0.333em; | ||
} | ||
|
||
/* Radio and Checkbox */ | ||
.checkbox label.right, | ||
.radio label.right { | ||
float: left; | ||
} | ||
|
||
/* Buttons */ | ||
a.btn, | ||
button, | ||
input[type="submit"], | ||
input[type="reset"], | ||
.Actions .action { | ||
display: inline-block; | ||
border-radius: 4px; | ||
padding: 0.333em 0.833em; | ||
margin-top: 0.556em; | ||
margin-bottom: 0.556em; | ||
border: none; | ||
|
||
&:not([disabled]) { | ||
cursor: pointer; | ||
} | ||
} | ||
|
||
/* Messages */ | ||
.message { | ||
margin: 0.556em 0; | ||
display: block; | ||
max-width: var(--max-width); | ||
clear: left; | ||
} | ||
|
||
.message, | ||
.error-container { | ||
padding: 0.278em 0.556em; | ||
background-color: var(--color-warning-light); | ||
border: 1px solid var(--color-warning-dark); | ||
border-radius: 3px; | ||
|
||
&.good { | ||
background-color: var(--color-good-light); | ||
border-color: var(--color-good-dark); | ||
} | ||
|
||
&.bad, | ||
&.required, | ||
&.error, | ||
&.error-container { | ||
background-color: var(--color-error-light); | ||
border-color: var(--color-error-dark); | ||
} | ||
} | ||
|
||
/* invalid fields */ | ||
input:invalid, | ||
textarea:invalid { | ||
border-radius: 1px; | ||
box-shadow: 0px 0px 0.5px 1px var(--color-error); | ||
} | ||
|
||
/* user forms heading field */ | ||
.FormHeading { | ||
clear: both; | ||
padding-top: 0.68em; | ||
} | ||
} | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Was overriding the
height
andwidth
attributes from WYSIWYG