BITKit/Src/Unity/UX/MaterialDesign.uss

242 lines
5.7 KiB
Plaintext

.material .container {
padding-left: 32px;
padding-right: 32px;
padding-top: 24px;
padding-bottom: 24px;
border-left-width: 1px;
border-right-width: 1px;
border-top-width: 1px;
border-bottom-width: 1px;
border-left-color: rgba(0, 0, 0, 0.09);
border-right-color: rgba(0, 0, 0, 0.09);
border-top-color: rgba(0, 0, 0, 0.09);
border-bottom-color: rgba(0, 0, 0, 0.09);
border-top-left-radius: 20px;
border-bottom-left-radius: 20px;
border-top-right-radius: 20px;
border-bottom-right-radius: 20px;
margin-left: 8px;
margin-right: 8px;
margin-top: 8px;
margin-bottom: 8px;
}
.material Label {
color: rgb(32, 33, 36);
}
.material Label.title {
color: rgb(32, 33, 36);
font-size: 24px;
}
Label.material.subtitle {
color: rgb(95, 99, 104);
}
Slider.material {
justify-content: center;
}
.material Button {
background-color: rgba(26, 115, 232, 0.13);
border-left-width: 0;
border-right-width: 0;
border-top-width: 0;
border-bottom-width: 0;
color: rgb(26, 115, 232);
transition-duration: 0.32s;
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
min-width: 128px;
}
.material Button:hover {
background-color: rgba(26, 115, 232, 0.25);
transition-duration: 0.32s;
}
.material Button:active {
background-color: rgba(26, 115, 232, 0.39);
transition-duration: 0s;
}
.material Slider #unity-dragger {
border-top-left-radius: 12px;
border-bottom-left-radius: 12px;
border-top-right-radius: 12px;
border-bottom-right-radius: 12px;
height: 24px;
width: 24px;
border-left-width: 0;
border-right-width: 0;
border-top-width: 0;
border-bottom-width: 0;
background-color: rgb(26, 115, 232);
}
.material Slider #unity-drag-container {
flex-direction: row;
align-items: center;
min-width: 128px;
}
.material Slider #unity-tracker {
border-left-width: 0;
border-right-width: 0;
border-top-width: 0;
border-bottom-width: 0;
background-color: rgba(26, 115, 232, 0.25);
border-top-left-radius: 3px;
border-bottom-left-radius: 3px;
border-top-right-radius: 3px;
border-bottom-right-radius: 3px;
}
.material .unity-base-field Label {
color: rgb(95, 99, 104);
-unity-text-align: middle-left;
}
.material #unity-text-input {
background-color: rgba(0, 0, 0, 0.06);
border-left-width: 0;
border-right-width: 0;
border-top-width: 0;
border-bottom-width: 0.1px;
border-left-color: rgba(0, 0, 0, 0.39);
border-right-color: rgba(0, 0, 0, 0.39);
border-top-color: rgba(0, 0, 0, 0.39);
border-bottom-color: rgba(0, 0, 0, 0.39);
}
.material #unity-checkmark {
border-left-color: rgba(0, 0, 0, 0.13);
border-right-color: rgba(0, 0, 0, 0.13);
border-top-color: rgba(0, 0, 0, 0.13);
border-bottom-color: rgba(0, 0, 0, 0.13);
border-top-left-radius: 6px;
border-bottom-left-radius: 6px;
border-top-right-radius: 6px;
border-bottom-right-radius: 6px;
-unity-background-image-tint-color: rgb(26, 115, 232);
}
.material DropdownField > VisualElement {
border-left-width: 0;
border-right-width: 0;
border-top-width: 0;
border-bottom-width: 0;
border-top-left-radius: 8px;
border-bottom-left-radius: 8px;
border-top-right-radius: 8px;
border-bottom-right-radius: 8px;
background-color: rgba(26, 115, 232, 0.13);
}
.material DropdownField > VisualElement > PopupTextElement {
color: rgb(26, 115, 232);
}
.material DropdownField > VisualElement > VisualElement {
-unity-background-image-tint-color: rgb(26, 115, 232);
}
.unity-base-popup-field:active > .unity-base-popup-field_input {
color: rgb(255, 0, 0);
background-color: rgb(255, 0, 0);
font-size: 20px;
}
.material .h2 {
font-size: 30px;
}
.unity-base-dropdown > VisualElement {
border-left-width: 0;
border-right-width: 0;
border-top-width: 0;
border-bottom-width: 0;
}
.unity-base-dropdown__label {
color: rgb(26, 115, 232);
}
.context-menu {
background-color: rgb(255, 255, 255);
border-top-left-radius: 8px;
border-bottom-left-radius: 8px;
border-top-right-radius: 8px;
border-bottom-right-radius: 8px;
padding-left: 0;
padding-right: 0;
padding-top: 4px;
padding-bottom: 0;
position: absolute;
min-width: 256px;
}
.context-menu > Label {
margin-left: 12px;
margin-right: 12px;
font-size: 16px;
}
.context-menu Button {
-unity-text-align: upper-left;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
margin-bottom: 0;
}
.material.light Label {
color: rgb(221, 221, 221);
}
.material.light RadioButton {
}
.material Button:disabled {
background-color: rgba(32, 32, 32, 0.06);
border-left-width: 0;
border-right-width: 0;
border-top-width: 0;
border-bottom-width: 0;
color: rgb(32, 32, 32);
transition-duration: 0.32s;
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
min-width: 128px;
opacity: 0.8;
}
.unity-base-field.variant-text #unity-text-input {
background-color: rgba(0, 0, 0, 0);
border-top-width: 0;
border-right-width: 0;
border-bottom-width: 0;
border-left-width: 0;
}
.material TabBar.variable-square Button {
width: 64px;
height: 64px;
max-width: 64px;
max-height: 64px;
min-width: 64px;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
border-bottom-right-radius: 10px;
border-bottom-left-radius: 10px;
}