BITKit/Packages/Runtime~/Unity/UX/Common/Common.uss

182 lines
4.3 KiB
Plaintext
Raw Normal View History

2023-08-23 01:59:26 +08:00
Button {
}
.flex-row {
flex-direction: row;
}
.flex-center {
margin-left: auto;
margin-right: auto;
margin-top: auto;
margin-bottom: auto;
}
.root {
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
-unity-background-scale-mode: scale-and-crop;
}
.flex-horizontal {
flex-direction: row;
align-items: center;
}
.unity-scroll-view.unity-scroll-view--vertical.unity-scroll-view--scroll.unity-base-dropdown__container-inner {
border-left-width: 0;
border-right-width: 0;
border-top-width: 0;
border-bottom-width: 0;
}
.pa-8 {
padding-left: 8px;
padding-right: 8px;
padding-top: 8px;
padding-bottom: 8px;
}
.pa-16 {
padding-left: 16px;
padding-right: 16px;
padding-top: 16px;
padding-bottom: 16px;
}
.pa-32 {
padding-left: 32px;
padding-right: 32px;
padding-top: 32px;
padding-bottom: 32px;
-unity-font-definition: initial;
-unity-font: url('project://database/Assets/BITKit/Unity/Art/Fonts/TTF/SourceHanMono/SourceHanMono-Regular.ttc?fileID=12800000&guid=170bacfb8afc52a468d956884ff0be08&type=3#SourceHanMono-Regular');
}
.pa-64 {
padding-left: 64px;
padding-right: 64px;
padding-top: 64px;
padding-bottom: 64px;
}
.r-8 {
border-top-left-radius: 8px;
border-bottom-left-radius: 8px;
border-top-right-radius: 8px;
border-bottom-right-radius: 8px;
}
.clear {
background-color: rgba(0, 0, 0, 0);
}
.theme-dark Button {
background-color: rgba(0, 0, 0, 0.78);
border-top-left-radius: 0;
border-bottom-left-radius: 0;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
-unity-font-definition: initial;
-unity-font: url('project://database/Assets/BITKit/Unity/Art/Fonts/TTF/SourceHanMono/SourceHanMono-Regular.ttc?fileID=12800000&guid=170bacfb8afc52a468d956884ff0be08&type=3#SourceHanMono-Regular');
padding-left: 6px;
padding-right: 6px;
padding-top: 6px;
padding-bottom: 6px;
}
.theme-dark Button:hover {
color: rgb(70, 70, 70);
}
.theme-light Button {
background-color: rgb(247, 247, 247);
border-top-left-radius: 8px;
border-bottom-left-radius: 8px;
border-top-right-radius: 8px;
border-bottom-right-radius: 8px;
}
.theme-dark DropdownField {
}
.theme-dark DropdownField > VisualElement {
background-color: rgba(0, 0, 0, 0.5);
padding-left: 12px;
padding-right: 6px;
padding-top: 6px;
padding-bottom: 6px;
}
.unity-text-element {
color: rgb(234, 234, 234);
-unity-font-definition: url('project://database/Assets/BITKit/Unity/Art/Fonts/SDF/SourceHanMono-Regular%20SDF.asset?fileID=11400000&guid=b3753d022dd4b4545b0e5f3f6e9a997f&type=2#SourceHanMono-Regular SDF');
}
.theme-light .unity-text-element {
color: rgb(31, 31, 31);
-unity-font: url('project://database/Assets/BITKit/Unity/Art/Fonts/TTF/SourceHanMono/SourceHanMono-Medium.ttc?fileID=12800000&guid=c8058440fb1ea26488e022a5ee5b3b35&type=3#SourceHanMono-Medium');
}
.theme-dark DropdownField > VisualElement > VisualElement {
-unity-background-image-tint-color: rgb(128, 128, 128);
}
.theme-dark DropdownField:hover > VisualElement {
background-color: rgb(0, 0, 0);
}
.theme-dark DropdownField:hover > VisualElement .unity-text-element {
color: rgb(48, 48, 48);
}
.unity-base-dropdown__item > .unity-base-dropdown__label {
color: rgb(29, 29, 29);
}
.theme-dark .container {
background-color: rgba(0, 0, 0, 0.5);
}
Button.theme-text {
margin-left: 0;
margin-right: 0;
margin-top: 0;
margin-bottom: 0;
padding-left: 4px;
padding-right: 4px;
padding-top: 4px;
padding-bottom: 4px;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-left-width: 0;
border-right-width: 0;
border-top-width: 0;
border-bottom-width: 0;
}
Label.theme-header {
border-bottom-width: 1px;
border-left-color: rgb(255, 255, 255);
border-right-color: rgb(255, 255, 255);
border-top-color: rgb(255, 255, 255);
border-bottom-color: rgb(255, 255, 255);
}
Button:hover > #context-label {
color: rgb(31, 31, 31);
}
Button:hover > #icon-image {
-unity-background-image-tint-color: rgb(31, 31, 31);
}
.theme-dark Foldout #unity-checkmark {
-unity-background-image-tint-color: rgb(210, 210, 210);
}