-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
Box--overlay
styles + remove styleguide.css from docs (#1754)
* Remove styleguide.css * Move Box--overlay from dotcom * Lint * Create orange-crabs-provide.md
- Loading branch information
Showing
5 changed files
with
46 additions
and
2 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@primer/css": minor | ||
--- | ||
|
||
Add `Box--overlay` styles |
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,40 @@ | ||
.Box--overlay { | ||
width: 448px; | ||
margin-right: auto; | ||
margin-left: auto; | ||
background-color: var(--color-canvas-default); | ||
background-clip: padding-box; | ||
border-color: var(--color-border-default); | ||
// stylelint-disable-next-line primer/box-shadow | ||
box-shadow: 0 0 18px rgba(0, 0, 0, 0.4); | ||
|
||
.Box-header { | ||
margin: 0; | ||
border-width: 0; | ||
border-bottom-width: $border-width; | ||
border-top-left-radius: $border-radius; | ||
border-top-right-radius: $border-radius; | ||
} | ||
} | ||
|
||
.Box-overlay--narrow { | ||
width: 320px; | ||
} | ||
|
||
.Box-overlay--wide { | ||
width: 640px; | ||
} | ||
|
||
.Box-body { | ||
&.scrollable-overlay { | ||
max-height: 400px; | ||
overflow-y: scroll; | ||
} | ||
|
||
.help { | ||
padding-top: $spacer-2; | ||
margin: 0; | ||
color: var(--color-fg-muted); | ||
text-align: center; | ||
} | ||
} |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
@import '../support/index.scss'; | ||
@import './box.scss'; | ||
@import './box-overlay.scss'; |