-
Notifications
You must be signed in to change notification settings - Fork 24
refactor: styles #258
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
Merged
Merged
refactor: styles #258
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
d4d4461
refactor: css (organize, rename, add inbox)
wesleyboar 6b244d8
refactor: js (rename)
wesleyboar 1382ab8
refactor: extra to import
wesleyboar b84b362
Merge branch 'main' into refactor/css-and-js
wesleyboar a10b209
chore: whitespace, delete excess word
wesleyboar 6afdea0
docs(css): reword README & add README
wesleyboar 6b98ce0
refactor(js): match CSS setup
wesleyboar c32012a
Merge branches 'refactor/css-and-js' and 'refactor/css-and-js' of git…
wesleyboar 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,5 +1,4 @@ | ||
| # DesignSafe User Guide Styles | ||
|
|
||
| Styles specific to DS-User-Guide should be in this directory. | ||
|
|
||
| Styles for all TACC-themed docs belong in https://github.com/TACC/mkdocs-tacc. | ||
| 1. Create your CSS file in appropriate folder, or add CSS `inbox.css` if unsure. | ||
| 2. For each file you add, `@import` it in `_import.css` in respective folder. |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,11 @@ | ||
| /* DESIGNSAFE-CI/DS-USER-GUIDE */ | ||
| /* To add CSS unique to DesignSafe/DS-User-Guide */ | ||
|
|
||
| @import url('definition-lists.css'); | ||
| @import url('hide-extra-space.css'); | ||
| @import url('hide-some-anchor-links.css'); | ||
| @import url('horizontal-rule.css'); | ||
| @import url('mimic-designsafe-logo.css'); | ||
| @import url('subtitle-via-attribute.css'); | ||
| @import url('titles-long-and-short.css'); | ||
| @import url('unindent-details-in-lists.css'); |
This file contains hidden or 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,9 @@ | ||
| /* To style definition lists */ | ||
| /* https://python-markdown.github.io/extensions/definition_lists/ */ | ||
| /* TODO: Consider moving to Core-Styles and demo-ing in Mkdocs-TACC */ | ||
| dt { | ||
| font-weight: bold; | ||
| } | ||
| dd { | ||
| margin-bottom: 1em; | ||
| } |
This file contains hidden or 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,17 @@ | ||
| /* To hide unused space at bottom of overview pages */ | ||
| /* https://github.com/TACC/TACC-Docs/blob/a9d01e1/docs/css/core/tacc-docs.css#L568-L574 */ | ||
| [data-page-name$="usecases/overview.md"] footer { | ||
| display: none; /* undo theme.css */ | ||
| } | ||
| [data-page-name$="usecases/overview.md"] .wy-nav-content { | ||
| padding-bottom: 0; /* undo theme.css */ | ||
| } | ||
|
|
||
| /* To hide extra spacing caused by paragraph side-effect of nested <details> */ | ||
| details li > p { | ||
| margin: 0; | ||
| } | ||
| /* To hide extra spacing caused by core-styles space on all <details> */ | ||
| li > details { | ||
| margin: 0; | ||
| } |
This file contains hidden or 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,4 @@ | ||
| /* To hide anchor link for deeper headings */ | ||
| :is(h4, h5, h6) .headerlink { | ||
| display: none; | ||
| } |
This file contains hidden or 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,4 @@ | ||
| /* A custom horizontal rule to use between large documents */ | ||
| hr.spacer { | ||
| margin-block: 20rem 5rem; | ||
| } |
This file contains hidden or 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,15 @@ | ||
| /* To write "DESIGNSAFE" like its logo */ | ||
| /* FAQ: To use, write `# <u><b>Design</b>Safe</u>` */ | ||
| :where(h1, h2, h3, h4, h5, h6) > u { | ||
| text-transform: uppercase; | ||
| text-decoration: none; | ||
| font-weight: var(--medium); | ||
| color: #565656; | ||
|
|
||
| /* To use DesignSafe logo font */ | ||
| font-family: Futura; /* WARNING: requires user have this font installed */ | ||
| } | ||
| :where(h1, h2, h3, h4, h5, h6) > u > b { | ||
| color: #cb463f; | ||
| font-weight: var(--black); | ||
| } |
This file contains hidden or 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,17 @@ | ||
| /* To add subtitle after headings */ | ||
| [data-subtitle]::after { | ||
| content: ' ' attr(data-subtitle); | ||
| } | ||
| [data-subtitle]:not( | ||
| /* headings only distinguished by weight */ | ||
| h5, h6 | ||
| )::after { | ||
| font-weight: normal; | ||
| } | ||
| [data-subtitle]:is( | ||
| /* headings that need subtitle below */ | ||
| h1 | ||
| )::after { | ||
| text-transform: none; | ||
| font-size: var(--global-font-size--xx-large); | ||
| } |
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.
Uh oh!
There was an error while loading. Please reload this page.