mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
The menus weren't using the `mat-menu` component correctly which had led to some inconsistent spacing and the need for style overrides. These changes correctly wrap the menu content in `mat-menu-item` which has the added benefit of having keyboard support. I had to keep some of the overrides in order to preserve the dense layout of the menus. I've also cleaned up the component by: * Removing some unnecessary styles. * Switching single-class usages of `ngClass` to `class.` bindings. * Not using `br` tags for spacing. PR Close #45665
110 lines
1.6 KiB
SCSS
110 lines
1.6 KiB
SCSS
:host {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
}
|
|
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.tab-content {
|
|
height: calc(100% - 31px);
|
|
}
|
|
|
|
#nav-buttons {
|
|
display: flex;
|
|
}
|
|
|
|
.inspector-active {
|
|
color: #1a73e8 !important;
|
|
}
|
|
|
|
#app-angular-version {
|
|
align-self: center;
|
|
margin-left: auto;
|
|
margin-right: 8px;
|
|
font-size: 0.8em;
|
|
font-weight: bold;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#version-number {
|
|
color: #1b1aa5;
|
|
cursor: text;
|
|
-moz-user-select: text;
|
|
-khtml-user-select: text;
|
|
-webkit-user-select: text;
|
|
-ms-user-select: text;
|
|
user-select: text;
|
|
}
|
|
|
|
button.mat-icon-button {
|
|
height: 30px;
|
|
width: 30px;
|
|
line-height: 30px;
|
|
margin-right: 0px;
|
|
}
|
|
|
|
mat-icon {
|
|
font-size: 16px;
|
|
|
|
.mat-menu-item & {
|
|
width: 16px;
|
|
height: 16px;
|
|
margin-right: 8px;
|
|
}
|
|
}
|
|
|
|
.mat-tab-link {
|
|
min-width: unset;
|
|
line-height: 30px;
|
|
height: 30px;
|
|
font-size: 13px;
|
|
padding: 0px 10px;
|
|
opacity: 1;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.mat-menu-item {
|
|
font-size: 0.7em;
|
|
font-weight: 500;
|
|
height: 36px;
|
|
line-height: 36px;
|
|
overflow: visible; // Avoids clipping of the button toggle ripple.
|
|
color: #777;
|
|
|
|
::ng-deep .dark-theme & {
|
|
color: white;
|
|
}
|
|
|
|
mat-slide-toggle {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
|
|
:host-context(.dark-theme) {
|
|
#version-number {
|
|
color: #5caace;
|
|
}
|
|
|
|
.inspector-active {
|
|
color: #4688f1 !important;
|
|
}
|
|
}
|
|
|
|
@media only screen and (max-width: 700px) {
|
|
#app-angular-version {
|
|
max-width: 135px;
|
|
}
|
|
}
|
|
|
|
@media only screen and (max-width: 420px) {
|
|
#app-angular-version {
|
|
display: none;
|
|
}
|
|
}
|