generated from obsidianmd/obsidian-sample-plugin
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathstyles.css
170 lines (144 loc) · 4.68 KB
/
styles.css
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
/*
This CSS file will be included with your plugin, and
available in the app when your plugin is enabled.
If your plugin does not need CSS, delete this file.
*/
/* in your plugin's styles.css or a <style> tag in your view */
.gemini-scribe-chatbox {
display: flex;
flex-direction: column; /* Messages flow vertically */
overflow-y: auto; /* Add scrollbar if needed */
flex-grow: 1;
padding: var(--size-2-1);
background-color: var(--background-primary);
}
.gemini-scribe-message-container {
margin-bottom: var(--size-2-2); /* Space between messages */
}
.gemini-scribe-sender-indicator {
font-weight: bold;
margin-bottom: var(--size-1-2); /* Space between indicator and message */
color: var(--text-muted); /* Use theme's muted text color */
}
.gemini-scribe-message {
user-select: text;
-webkit-user-select: text; /* For older WebKit browsers */
-ms-user-select: text; /* For older Internet Explorer */
padding: var(--size-2-1) var(--size-2-2); /* Padding within message bubbles */
border-radius: var(--radius-s); /* Rounded corners for the bubbles */
box-sizing: border-box;
color: var(--text-normal); /* Use theme's normal text color */
width: 100%;
}
.gemini-scribe-message.user {
background-color: var(--background-secondary); /* Use theme's modifier background color */
}
.gemini-scribe-message.model {
background-color: var(--background-secondary); /* Use theme's primary background color */
}
.gemini-scribe-message.grounding {
background-color: var(--background-secondary); /* Use theme's primary background color */
}
.gemini-scribe-chatbox .gemini-scribe-message .gemini-scribe-copy-button {
background-color: var(--interactive-accent);
border: none;
color: var(--text-on-accent);
padding: var(--size-4-2) var(--size-4-3);
border-radius: var(--radius-s);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
.gemini-scribe-chatbox .gemini-scribe-message .gemini-scribe-copy-button::before {
content: attr(data-icon);
font-family: 'Lucide';
font-size: var(--font-size-m);
margin-right: var(--size-1-2);
}
.gemini-scribe-chatbox .gemini-scribe-message .gemini-scribe-copy-button:hover {
background-color: var(--interactive-accent-hover);
}
/* Style the input area */
.gemini-scribe-input-area {
display: flex;
align-items: flex-start; /* Align items to top */
margin-top: var(--size-2-1); /* Separate input area from chatbox */
margin-bottom: var(--size-2-1);
width: 100%;
}
.gemini-scribe-input-area .gemini-scribe-chat-input {
padding: var(--size-4-2);
border: var(--border-width) solid var(--background-modifier-border);
border-radius: var(--radius-s);
margin-right: var(--size-2-2);
flex-grow: 1;
background-color: var(--background-modifier-form-field);
width: 100%; /* Ensure the input takes the full width of the container */
height: 50px; /* Adjust the height as needed */
font-size: 16px; /* Adjust the font size as needed */
resize: vertical; /* Allow vertical resizing */
overflow: auto; /* Ensure the text wraps inside the box */
white-space: pre-wrap; /* Ensure the text wraps inside the box */
}
/* Optional: Style the placeholder text */
.gemini-scribe-input-area .gemini-scribe-chat-input::placeholder {
color: var(--text-muted); /* Adjust the color as needed */
opacity: 1; /* Ensure the placeholder text is fully opaque */
}
/* Create a container for send button and timer */
.gemini-scribe-send-container .gemini-scribe-send-button:hover {
background-color: var(--interactive-accent-hover);
}
/* Create a container for send button and timer */
.gemini-scribe-send-container {
display: flex;
flex-direction: column;
align-items: center;
margin-left: var(--size-2-2);
}
.gemini-scribe-send-button {
background-color: var(--interactive-accent);
border: none;
color: var(--text-on-accent);
padding: var(--size-4-2) var(--size-4-3);
border-radius: var(--radius-s);
cursor: pointer;
}
.gemini-scribe-send-container .gemini-scribe-send-button {
background-color: var(--interactive-accent);
border: none;
color: var(--text-on-accent);
padding: var(--size-4-2) var(--size-4-3);
border-radius: var(--radius-s);
cursor: pointer;
}
.gemini-scribe-send-container .gemini-scribe-send-button:hover {
background-color: var(--interactive-accent-hover);
}
.gemini-scribe-options-area {
display: flex;
align-items: center;
padding: var(--size-2-1);
margin-bottom: var(--size-2-1);
}
.gemini-scribe-rewrite-checkbox {
margin-right: var(--size-2-2);
}
.gemini-scribe-rewrite-label {
color: var(--text-muted);
display: flex;
align-items: center;
cursor: pointer;
}
.gemini-scribe-timer {
color: var(--text-muted);
font-size: 14px;
margin-top: 5px;
min-width: 4em;
text-align: center;
}
.gemini-ghost-text {
color: var(--text-muted);
opacity: 0.5;
}