-
Notifications
You must be signed in to change notification settings - Fork 64
Theme: Dialog #247
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
Theme: Dialog #247
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
64e1ef0
Initial Dialog theme
bitpshr 6f91f4e
Variables
bitpshr 9280e77
box-sizing
bitpshr bd2f1c8
Fix color variables
bitpshr 88c5416
Minor fixes
bitpshr 2d21c25
Font updates
bitpshr 352c12b
Remove tscommand
bitpshr ef8fcdb
Update size
bitpshr 64ac5b3
PR feedback
bitpshr ed805e1
Fix screen readers
bitpshr 9b92a81
Fix variables
bitpshr 7d05d01
Fix tests
bitpshr cba6baa
Fix tests lint warnings
bitpshr 131ca51
Do not use color variables directly
bitpshr 6332599
New variable format
bitpshr 06a1bdb
Use existing variable for underlay
bitpshr 9494bf2
Use base typography styles on root node
bitpshr fcc9de1
Use icon for Dialog close button
bitpshr 2efcb9e
Fix icon CSS
bitpshr 185ec04
Use fixed positioning
bitpshr 4b88f7f
Rebase
bitpshr 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
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
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,58 +1,67 @@ | ||
| @import './variables.css'; | ||
|
|
||
| .main { | ||
| position: absolute; | ||
| top: 50%; | ||
| left: 50%; | ||
| transform: translate(-50%, -50%); | ||
| background: #FFF; | ||
| width: 450px; | ||
| min-height: var(--min-container-height); | ||
| overflow: hidden; | ||
| max-width: calc(100% - 30px); | ||
| font: var(--base-font); | ||
| box-shadow: var(--subtle-shadow); | ||
| border-radius: var(--rounded-corners); | ||
| .root { | ||
| color: var(--color-text-primary); | ||
| font-size: var(--font-size-base); | ||
| line-height: var(--line-height-base); | ||
| } | ||
|
|
||
| .underlay { | ||
| width: 100%; | ||
| .root, | ||
| .root * { | ||
| box-sizing: border-box; | ||
| } | ||
|
|
||
| .main { | ||
| background: #FFF; | ||
| border: var(--border-width) solid var(--color-border); | ||
| box-shadow: var(--box-shadow-dimensions-large) var(--color-box-shadow-strong); | ||
| display: flex; | ||
| flex-direction: column; | ||
| height: calc(75 * var(--grid-base)); | ||
| left: 50%; | ||
| max-height: 100%; | ||
| max-width: 100%; | ||
| position: fixed; | ||
| top: 0; | ||
| left: 0; | ||
| height: 100%; | ||
| top: 50%; | ||
| transform: translate(-50%, -50%); | ||
| width: calc(80 * var(--grid-base)); | ||
| z-index: 2; | ||
| } | ||
|
|
||
| .underlayVisible { | ||
| background: var(--underlay-bg); | ||
| background-color: var(--color-box-shadow-strong); | ||
| } | ||
|
|
||
| .title { | ||
| border-bottom: var(--border-width) solid var(--color-border); | ||
| box-sizing: border-box; | ||
| flex: 0 0 auto; | ||
| font-size: var(--font-size-title); | ||
| height: calc(7 * var(--grid-base)); | ||
| padding: calc(2 * var(--grid-base)); | ||
| position: relative; | ||
| background-color: var(--title-bar-bg); | ||
| font-size: var(--title-bar-font-size); | ||
| color: var(--title-bar-color); | ||
| padding: var(--container-padding); | ||
| text-align: left; | ||
| } | ||
|
|
||
| .content { | ||
| padding: var(--container-padding); | ||
| flex: 1 1 auto; | ||
| overflow: auto; | ||
| padding: calc(2 * var(--grid-base)); | ||
| } | ||
|
|
||
| .close { | ||
| background: none; | ||
| border: none; | ||
| cursor: pointer; | ||
| font-size: 0; | ||
| padding: var(--grid-base); | ||
| position: absolute; | ||
| right: calc(2 * var(--grid-base)); | ||
| top: 50%; | ||
| transform: translateY(-50%); | ||
| right: 35px; | ||
| cursor: pointer; | ||
| font-size: 0; | ||
| border: none; | ||
| background: none; | ||
| color: var(--title-bar-color); | ||
| } | ||
|
|
||
| .close:after { | ||
| content: '✕'; | ||
| display: block; | ||
| font-size: var(--title-bar-font-size); | ||
| .close i { | ||
| font-size: var(--font-size-title); | ||
| } | ||
|
|
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.
this likely needs a
closeFixedclass too.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.
What styling would need to be in a fixed class? With no theme (base or otherwise) the close button is still visible in the titlebar and clickable, it just has no styling.