mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Some CSS refactoring and removing unnecessary styling.
This commit is contained in:
@@ -25,22 +25,27 @@ html /deep/ paper-button::shadow .button-content ::content a {
|
||||
-ms-flex: 1 1 auto;
|
||||
}
|
||||
|
||||
/* paper-icon-button */
|
||||
paper-icon-button[disabled] {
|
||||
color: rgba(255, 255, 255, 0.30);
|
||||
}
|
||||
|
||||
/* paper-item */
|
||||
html /deep/ paper-item, html /deep/ core-menu > paper-item {
|
||||
color: rgba(0, 0, 0, 0.87);
|
||||
height: 48px;
|
||||
line-height: 48px;
|
||||
}
|
||||
html /deep/ paper-item:first-child {
|
||||
margin-top: 8px;
|
||||
}
|
||||
html /deep/ paper-item:last-child {
|
||||
margin-bottom: 8px;
|
||||
html /deep/ paper-item[disabled] {
|
||||
color: rgba(0, 0, 0, 0.26);
|
||||
}
|
||||
html /deep/ paper-item core-icon {
|
||||
margin-right: 32px;
|
||||
color: rgba(0, 0, 0, 0.54);
|
||||
}
|
||||
html /deep/ paper-item[disabled] > core-icon {
|
||||
color: rgba(0, 0, 0, 0.26);
|
||||
}
|
||||
html /deep/ paper-item::shadow .button-content {
|
||||
padding: 0 16px;
|
||||
}
|
||||
@@ -80,11 +85,11 @@ html /deep/ input {
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
/* core-menu */
|
||||
html /deep/ core-menu {
|
||||
margin: 0;
|
||||
/* paper-dropdown */
|
||||
html /deep/ paper-dropdown > core-menu {
|
||||
margin: 8px 0;
|
||||
}
|
||||
html /deep/ core-menu .core-selected {
|
||||
html /deep/ paper-dropdown .core-selected {
|
||||
background-color: inherit;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,19 +1,8 @@
|
||||
/* These styles override Polymer's own internal styling for certain elements to
|
||||
suit LOOT's needs. */
|
||||
|
||||
/* Change color of disabled menu items to match Material Design spec. These are
|
||||
treated as LOOT-specific overrides because vanilla paper-item doesn't
|
||||
recognise the disabled attribute (at least it isn't documented). */
|
||||
html /deep/ paper-item[disabled] {
|
||||
color: rgba(0, 0, 0, 0.26);
|
||||
pointer-events: none;
|
||||
}
|
||||
html /deep/ paper-item[disabled] > core-icon {
|
||||
color: rgba(0, 0, 0, 0.26);
|
||||
}
|
||||
/* Change color of disabled icon buttons to match Material Design spec. */
|
||||
/* Transition icon button colour over same time period that plugin cards flip. */
|
||||
paper-icon-button[disabled] {
|
||||
color: rgba(255, 255, 255, 0.30);
|
||||
transition: color 0.6s;
|
||||
}
|
||||
/* This override change the positioning of the progress dialog to adapt to content changes. */
|
||||
|
||||
Reference in New Issue
Block a user