forked from firefox-devtools/profiler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an open/close button for the Sidebar (Merge PR firefox-devtools#1096
) This patch adds an open/close button to control the display of a Sidebar. It's closed by default (and still disabled currently anyway). This also makes the layout more shrinkable, when reducing the browser window's width.
- Loading branch information
Showing
16 changed files
with
481 additions
and
35 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,49 @@ | ||
.photon-button { | ||
/* reset default styles */ | ||
background: none; | ||
border: none; | ||
margin: 0; | ||
padding: 0; | ||
|
||
/* photon styles */ | ||
background-color: var(--grey-90-a10); | ||
padding: 0 8px; | ||
border-radius: 2px; | ||
} | ||
|
||
.photon-button:hover { | ||
background-color: var(--grey-90-a20); | ||
} | ||
|
||
.photon-button:hover:active { | ||
background-color: var(--grey-90-a30); | ||
} | ||
|
||
/* This is a Firefox-specific style because Firefox adds a focusring at a bad | ||
* position. We're adding our own below. */ | ||
.photon-button::-moz-focus-inner { | ||
border: none; | ||
} | ||
|
||
/* Using -moz-focusring to target Firefox only, as a result of the style above */ | ||
.photon-button:-moz-focusring { | ||
outline: 1px dotted black; | ||
|
||
/* This should be eventually the default behavior. | ||
* See https://bugzilla.mozilla.org/show_bug.cgi?id=315209 */ | ||
-moz-outline-radius: 2px; | ||
} | ||
|
||
.photon-button-ghost { | ||
background-color: transparent; | ||
height: 32px; | ||
width: 32px; | ||
} | ||
|
||
.photon-button-ghost:hover { | ||
background-color: var(--grey-90-a10); | ||
} | ||
|
||
.photon-button-ghost:hover:active { | ||
background-color: var(--grey-90-a20); | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
Oops, something went wrong.