File size: 2,713 Bytes
a294e14
 
d443c93
a294e14
9186425
 
 
 
 
 
 
3f59dbe
9186425
 
 
 
3290e22
9186425
 
 
 
a294e14
 
 
 
9186425
c06298e
 
9186425
c06298e
9186425
c06298e
9186425
 
c06298e
9186425
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18ed09e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
.gradio-container {
    max-width: unset !important;
    padding: 0 !important;
}

/* 解决container=False时的错误填充 */
div.form {
    background: none !important;
}
div.no-container {
    padding: 10px 0 0 0 !important;
    background: none !important;
}

/* gradio的页脚信息 */
footer {
    display: none !important;
    margin-top: .2em !important;
    font-size: 85%;
}

.api-docs-wrap {
    margin-top: 64px;
}

/* 覆盖 gradio 丑陋的复制按钮样式 */
.message .code_wrap button[title="copy"] {
    border-radius: 5px !important;
    transition: background-color .2s ease;
    color: white;
}
.message .code_wrap button[title="copy"]:hover {
    background-color: #333232;
}
.message .code_wrap button .check {
    color: #fff !important;
    background: var(--neutral-950) !important;
}




/* Override Slider Styles (for webkit browsers like Safari and Chrome)
 * 好希望这份提案能早日实现 https://github.com/w3c/csswg-drafts/issues/4410
 * 进度滑块在各个平台还是太不统一了
**/

input[type="range"] {
    /* -webkit-appearance: none; */
    appearance: none;
    height: 4px;
    background: var(--input-background-fill);
    border-radius: 5px;
    background-image: linear-gradient(var(--primary-500),var(--primary-500));
    background-size: 0% 100%;
    background-repeat: no-repeat;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: solid 0.5px #ddd;
    background-color: white;
    cursor: ew-resize;
    box-shadow: var(--input-shadow);
    transition: background-color .1s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--neutral-50);
}
input[type=range]::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    box-shadow: none;
    border: none;
    background: transparent;
}


#chuanhu-chatbot>.wrapper>.wrap::-webkit-scrollbar {
    height: 1rem;
    width: 4px;
}

#chuanhu-chatbot>.wrapper>.wrap::-webkit-scrollbar-track {
    background-color: transparent;
    border-radius:9999px
}

#chuanhu-chatbot>.wrapper>.wrap::-webkit-scrollbar-thumb {
    background-color: rgba(231, 231, 231, 0.8);
    /* border-color: rgba(255, 255, 255, var(--tw-border-opacity)); */
    border: none;
    border-radius: 9999px;
    /* border-width:1px */
}

#chuanhu-chatbot>.wrapper>.wrap::-webkit-scrollbar-thumb:hover {
    --tw-bg-opacity: 1;
    background-color:rgb(195, 195, 195);
}

.dark #chuanhu-chatbot>.wrapper>.wrap::-webkit-scrollbar-thumb {
    background-color: rgba(56, 56, 56, 0.5);
}

.dark #chuanhu-chatbot>.wrapper>.wrap::-webkit-scrollbar-thumb:hover {
    background-color: rgba(56, 56, 56, 0.8);
}