Update 'toot.css'

Better selectors...
main
Micke Nordin 2 years ago
parent cf5c65bb0d
commit 58f4bec40b

@ -1,24 +1,20 @@
a[href="/publish"] { #mastodon > div > div > div.columns-area__panels > div.columns-area__panels__pane.columns-area__panels__pane--compositional > div > div > form > div.compose-form__publish > div > button {
visibility: hidden; visibility: hidden;
} }
a[href="/publish"]:after { #mastodon > div > div > div.columns-area__panels > div.columns-area__panels__pane.columns-area__panels__pane--compositional > div > div > form > div.compose-form__publish > div > button:after {
content: 'TOOT!'; content: 'TOOT!';
visibility: visible; visibility: visible;
text-rendering: optimizelegibility;
font-feature-settings: "kern"; font-feature-settings: "kern";
text-size-adjust: none; text-size-adjust: none;
-webkit-tap-highlight-color: rgba(0,0,0,0); -webkit-tap-highlight-color: rgba(0,0,0,0);
margin: 0; pointer-events: auto;
font: inherit;
vertical-align: baseline;
background-color: #595aff; background-color: #595aff;
border: 10px; border: 10px;
border-radius: 4px; border-radius: 4px;
box-sizing: border-box; box-sizing: border-box;
color: #fff; color: #fff;
cursor: pointer; cursor: pointer;
display: inline-block;
font-family: inherit; font-family: inherit;
font-size: 15px; font-size: 15px;
font-weight: 500; font-weight: 500;
@ -31,27 +27,31 @@ a[href="/publish"]:after {
text-decoration: none; text-decoration: none;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
width: auto; display: block;
flex: 0 0 auto; width: 100%;
} }
.button.button--block { a[href="/publish"] {
visibility: hidden; visibility: hidden;
} }
.button.button--block:after { a[href="/publish"]:after {
content: 'TOOT!'; content: 'TOOT!';
visibility: visible; visibility: visible;
text-rendering: optimizelegibility;
font-feature-settings: "kern"; font-feature-settings: "kern";
text-size-adjust: none; text-size-adjust: none;
-webkit-tap-highlight-color: rgba(0,0,0,0); -webkit-tap-highlight-color: rgba(0,0,0,0);
pointer-events: auto; margin: 0;
font: inherit;
vertical-align: baseline;
background-color: #595aff; background-color: #595aff;
border: 10px; border: 10px;
border-radius: 4px; border-radius: 4px;
box-sizing: border-box; box-sizing: border-box;
color: #fff; color: #fff;
cursor: pointer; cursor: pointer;
display: inline-block;
font-family: inherit; font-family: inherit;
font-size: 15px; font-size: 15px;
font-weight: 500; font-weight: 500;
@ -64,6 +64,6 @@ a[href="/publish"]:after {
text-decoration: none; text-decoration: none;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
display: block; width: auto;
width: 100%; flex: 0 0 auto;
} }
Loading…
Cancel
Save