Convert all outlines to borders

Because Safari ain't respecting border-radius with outlines
This commit is contained in:
Lim Chee Aun 2022-12-11 00:52:04 +08:00
parent f89ae6cdcd
commit 5aa9649935
6 changed files with 35 additions and 28 deletions

View file

@ -396,7 +396,7 @@ button.carousel-dot.active {
padding: 16px; padding: 16px;
box-shadow: 0 0 32px var(--bg-color); box-shadow: 0 0 32px var(--bg-color);
z-index: 1; z-index: 1;
outline: 1px solid var(--bg-color); border: 1px solid var(--bg-color);
opacity: .75; opacity: .75;
} }
@ -423,7 +423,7 @@ button.carousel-dot.active {
padding: 16px; padding: 16px;
box-shadow: 0 -1px 32px var(--divider-color); box-shadow: 0 -1px 32px var(--divider-color);
animation: slide-up 0.2s ease-out; animation: slide-up 0.2s ease-out;
outline: 1px solid var(--outline-color); border: 1px solid var(--outline-color);
} }
/* TAG */ /* TAG */

View file

@ -5,7 +5,7 @@
border-radius: 50%; border-radius: 50%;
overflow: hidden; overflow: hidden;
background-color: var(--bg-faded-color); background-color: var(--bg-faded-color);
outline: 1px solid var(--outline-color); border: 1px solid var(--outline-color);
flex-shrink: 0; flex-shrink: 0;
} }

View file

@ -67,8 +67,6 @@
border-radius: 8px; border-radius: 8px;
padding: 4px 12px; padding: 4px 12px;
background-image: linear-gradient(var(--bg-color) 75%, transparent); background-image: linear-gradient(var(--bg-color) 75%, transparent);
/* outline: 1px solid var(--outline-color); */
/* box-shadow: 0 0 12px var(--divider-color); */
position: relative; position: relative;
z-index: 1; z-index: 1;
} }
@ -96,13 +94,14 @@
background-color: var(--bg-faded-color); background-color: var(--bg-faded-color);
padding: 0 8px; padding: 0 8px;
border-radius: 8px; border-radius: 8px;
min-height: 2.5em; min-height: 2.4em;
line-height: 2.5em; line-height: 2.4em;
min-width: 2.5em; min-width: 2.6em;
text-align: center; text-align: center;
overflow: hidden; overflow: hidden;
position: relative; position: relative;
white-space: nowrap; white-space: nowrap;
border: 2px solid transparent;
} }
#compose-container .toolbar-button > * { #compose-container .toolbar-button > * {
vertical-align: middle; vertical-align: middle;
@ -119,6 +118,7 @@
position: absolute; position: absolute;
left: 0; left: 0;
height: 100%; height: 100%;
margin: 0;
} }
#compose-container .toolbar-button input[type="file"] { #compose-container .toolbar-button input[type="file"] {
/* Move this out of the way, to fix cursor: pointer bug */ /* Move this out of the way, to fix cursor: pointer bug */
@ -127,7 +127,6 @@
#compose-container .toolbar-button select { #compose-container .toolbar-button select {
background-color: transparent; background-color: transparent;
border: 0; border: 0;
outline: 0;
padding: 0 0 0 8px; padding: 0 0 0 8px;
} }
#compose-container .toolbar-button:not(.show-field) select { #compose-container .toolbar-button:not(.show-field) select {
@ -135,7 +134,7 @@
left: auto !important; left: auto !important;
} }
#compose-container .toolbar-button:hover { #compose-container .toolbar-button:hover {
outline: 2px solid var(--divider-color); border-color: var(--divider-color);
} }
#compose-container .toolbar-button:active { #compose-container .toolbar-button:active {
filter: brightness(0.8); filter: brightness(0.8);
@ -151,7 +150,7 @@
margin: 0 0 0 -8px; margin: 0 0 0 -8px;
padding: 0; padding: 0;
list-style: none; list-style: none;
outline: 1px solid var(--outline-color); border: 1px solid var(--outline-color);
/* box-shadow: 0 0 12px var(--outline-color); */ /* box-shadow: 0 0 12px var(--outline-color); */
border-radius: 8px; border-radius: 8px;
overflow: hidden; overflow: hidden;
@ -208,7 +207,7 @@
object-fit: contain; object-fit: contain;
background-color: var(--img-bg-color); background-color: var(--img-bg-color);
border-radius: 8px; border-radius: 8px;
outline: 1px solid var(--outline-color); border: 1px solid var(--outline-color);
} }
#compose-container .media-attachment textarea { #compose-container .media-attachment textarea {
height: 80px; height: 80px;

View file

@ -107,7 +107,7 @@
.status .content-container.has-spoiler .spoiler { .status .content-container.has-spoiler .spoiler {
margin: 8px 0; margin: 8px 0;
font-size: 90%; font-size: 90%;
outline: 1px dashed var(--button-bg-color); border: 1px dashed var(--button-bg-color);
display: flex; display: flex;
gap: 8px; gap: 8px;
align-items: center; align-items: center;
@ -122,7 +122,7 @@
opacity: .5; opacity: .5;
} }
.status .content-container.show-spoiler .spoiler { .status .content-container.show-spoiler .spoiler {
outline-style: dotted; border-style: dotted;
} }
.status .content-container.show-spoiler .spoiler ~ * { .status .content-container.show-spoiler .spoiler ~ * {
filter: none; filter: none;
@ -174,10 +174,10 @@
border-radius: 8px; border-radius: 8px;
overflow: hidden; overflow: hidden;
max-height: 160px; max-height: 160px;
outline: 1px solid var(--outline-color); border: 1px solid var(--outline-color);
} }
.status .media:hover { .status .media:hover {
outline-color: var(--outline-hover-color); border-color: var(--outline-hover-color);
} }
.status .media.block { .status .media.block {
flex-basis: 100%; flex-basis: 100%;
@ -237,7 +237,7 @@
object-fit: cover; object-fit: cover;
} }
.status .media-audio { .status .media-audio {
outline: 0; border: 0;
} }
.status .media-audio audio { .status .media-audio audio {
width: 100%; width: 100%;
@ -249,7 +249,7 @@
display: flex; display: flex;
margin-top: 8px; margin-top: 8px;
border-radius: 8px; border-radius: 8px;
outline: 1px solid var(--outline-color); border: 1px solid var(--outline-color);
overflow: hidden; overflow: hidden;
gap: 8px; gap: 8px;
color: inherit; color: inherit;
@ -263,7 +263,7 @@
min-height: 120px; min-height: 120px;
max-height: 160px; max-height: 160px;
object-fit: cover; object-fit: cover;
outline: 1px solid var(--outline-color); border: 1px solid var(--outline-color);
} }
.card:hover .image { .card:hover .image {
animation: position-object 5s ease-in-out 1s infinite; animation: position-object 5s ease-in-out 1s infinite;
@ -289,6 +289,14 @@
font-size: smaller; font-size: smaller;
opacity: 0.75; opacity: 0.75;
margin: 0; margin: 0;
text-overflow: ellipsis;
overflow: hidden;
display: -webkit-box;
display: box;
-webkit-box-orient: vertical;
box-orient: vertical;
-webkit-line-clamp: 2;
line-clamp: 2;
} }
.card .meta.domain { .card .meta.domain {
opacity: 1; opacity: 1;
@ -299,7 +307,7 @@ a.card {
transition: opacity 0.2s ease-in-out; transition: opacity 0.2s ease-in-out;
} }
a.card:hover { a.card:hover {
outline: 1px solid var(--outline-hover-color); border: 1px solid var(--outline-hover-color);
} }
.card.video { .card.video {
max-width: 320px; max-width: 320px;
@ -320,7 +328,7 @@ a.card:hover {
justify-content: space-between; justify-content: space-between;
background-image: linear-gradient(to right, var(--link-faded-color), var(--link-faded-color) var(--percentage), transparent var(--percentage), transparent); background-image: linear-gradient(to right, var(--link-faded-color), var(--link-faded-color) var(--percentage), transparent var(--percentage), transparent);
border-radius: 8px; border-radius: 8px;
outline: 1px solid rgba(128, 128, 128, .1); border: 1px solid rgba(128, 128, 128, .1);
align-items: center; align-items: center;
} }
.poll-label { .poll-label {
@ -376,18 +384,18 @@ a.card:hover {
} }
.status .actions > button.plain.reblog-button.reblogged { .status .actions > button.plain.reblog-button.reblogged {
color: var(--reblog-color); color: var(--reblog-color);
outline: 1.5px solid var(--reblog-color); border: 1.5px solid var(--reblog-color);
} }
.status .actions > button.plain.favourite-button:hover { .status .actions > button.plain.favourite-button:hover {
color: var(--favourite-color); color: var(--favourite-color);
} }
.status .actions > button.plain.favourite-button.favourited { .status .actions > button.plain.favourite-button.favourited {
color: var(--favourite-color); color: var(--favourite-color);
outline: 1.5px solid var(--favourite-color); border: 1.5px solid var(--favourite-color);
} }
.status .actions > button.plain.bookmark-button.bookmarked { .status .actions > button.plain.bookmark-button.bookmarked {
color: var(--link-color); color: var(--link-color);
outline: 1.5px solid var(--link-color); border: 1.5px solid var(--link-color);
} }
/* ENHANCED CONTENT */ /* ENHANCED CONTENT */
@ -399,7 +407,7 @@ a.card:hover {
overflow: auto; overflow: auto;
width: 100%; width: 100%;
font-size: 90%; font-size: 90%;
outline: 1px solid var(--outline-color); border: 1px solid var(--outline-color);
background: linear-gradient(to bottom right, var( background: linear-gradient(to bottom right, var(
--bg-faded-color --bg-faded-color
), transparent 160px); ), transparent 160px);

View file

@ -127,7 +127,7 @@ button > * {
:is(button, .button).light { :is(button, .button).light {
background-color: var(--bg-faded-color); background-color: var(--bg-faded-color);
color: var(--text-color); color: var(--text-color);
outline: 1px solid var(--outline-color); border: 1px solid var(--outline-color);
} }
:is(button, .button).block { :is(button, .button).block {

View file

@ -43,8 +43,8 @@
opacity: 1; opacity: 1;
} }
#settings-container ul li .current.is-current + .avatar { #settings-container ul li .current.is-current + .avatar {
outline-color: var(--green-color); border-color: var(--green-color);
outline-width: 2px; border-width: 2px;
} }
#settings-container ul li > div { #settings-container ul li > div {
flex-grow: 1; flex-grow: 1;