Skip to content

Commit 8947bd5

Browse files
committed
chore: give avatars some background
Fix #22
1 parent 566e611 commit 8947bd5

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

crates/rostra-web-ui/assets/style.css

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
--link-color: oklch(33.68% 0.1567 257.82);
33
--link-hover-color: oklch(33.68% 0.1567 351.52);
44
--layout-break-width: 768px;
5+
6+
--border-radius-std: 4px;
57
}
68

79
@media (prefers-color-scheme: dark) {
@@ -140,7 +142,7 @@ blockquote {
140142
pre,
141143
code {
142144
background-color: var(--color-pre-bg);
143-
border-radius: 4px;
145+
border-radius: var(--border-radius-std);
144146
padding: 4px 6px;
145147
font-size: 1rem;
146148
font-family: monospace;
@@ -153,7 +155,7 @@ button {
153155
background: none;
154156
background-color: var(--color-button-bg);
155157
border: solid 1px;
156-
border-radius: 5px;
158+
border-radius: var(--border-radius-std);
157159
border-color: var(--color-button-border);
158160
appearance: none;
159161
-webkit-appearance: none;
@@ -188,7 +190,7 @@ input[type="search"] {
188190
color: var(--color-text-default);
189191
background: none;
190192
border: solid 1px;
191-
border-radius: 5px;
193+
border-radius: var(--border-radius-std);
192194
border-color: var(--color-button-border);
193195
appearance: none;
194196
-webkit-appearance: none;
@@ -262,6 +264,12 @@ img {
262264
width: 32pt;
263265
height: 32pt;
264266
display: inline-block;
267+
268+
background-color: whitesmoke;
269+
border-radius: var(--border-radius-std);
270+
border: 1px solid var(--color-button-border);
271+
padding: 1pt;
272+
265273
}
266274

267275
[disabled]>.u-buttonIcon {
@@ -622,7 +630,7 @@ emoji-picker {
622630
padding: 5pt;
623631
height: 10rem;
624632
border: 1px solid var(--color-timeline-item-border);
625-
border-radius: 4pt;
633+
border-radius: var(--border-radius-std);
626634
}
627635

628636
.m-newPostForm__footer {
@@ -651,7 +659,7 @@ emoji-picker {
651659

652660
.m-addFolloweeForm__content {
653661
border: 1px solid var(--color-timeline-item-border);
654-
border-radius: 4pt;
662+
border-radius: var(--border-radius-std);
655663
flex-grow: 1;
656664
/* width: 100%; */
657665
/* min-width: 100%; */
@@ -689,7 +697,7 @@ emoji-picker {
689697
.o-unlockScreen__form {
690698
padding: clamp(0px, 2.5vw, 2rem) clamp(0px, 5vw, 4rem);
691699
border: solid 1px;
692-
border-radius: 5px;
700+
border-radius: var(--border-radius-std);
693701

694702
display: flex;
695703
flex-direction: column;

0 commit comments

Comments
 (0)