Skip to content

Commit 4b8d438

Browse files
committed
Remove jQuery I (sox.features.js)
1 parent 018b7ed commit 4b8d438

File tree

3 files changed

+875
-906
lines changed

3 files changed

+875
-906
lines changed

sox.css

Lines changed: 54 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@
467467
/*flagPercentageBar -- for the percentage bar itself*/
468468

469469
#sox-flagPercentProgressBar {
470-
background: #ccc;
470+
background: var(--black-025);
471471
height: 10px;
472472
width: 250px;
473473
margin: 6px 10px 10px 0;
@@ -487,17 +487,7 @@
487487
}
488488

489489
.sox-flagPercentProgressBar-container {
490-
background-color: #fafafb
491-
}
492-
493-
/*titleEditDiff -- for the toggle button*/
494-
495-
.sox-better-title-toggle {
496-
float: left;
497-
margin-right: 10px;
498-
cursor: pointer;
499-
width: 25px;
500-
height: 25px;
490+
background-color: var(--black-025);
501491
}
502492

503493
/*sox-copyCode -- for the button and textarea (completely hide it)*/
@@ -659,6 +649,11 @@
659649
font-size: smaller;
660650
}
661651

652+
.sox-last-seen {
653+
position: relative;
654+
bottom: 2.5px;
655+
}
656+
662657
/* markEmployees -- for the SE icon */
663658
.sox-markEmployees-logo {
664659
margin-left: 5px;
@@ -707,10 +702,6 @@
707702
}
708703

709704
/* stickyVoteButtons -- for the vote buttons on the left of the post */
710-
.sox-stickyVoteButtons {
711-
z-index: 1;
712-
}
713-
714705
.sox-stickyVoteButtons > .js-voting-container {
715706
position: -webkit-sticky;
716707
position: sticky;
@@ -719,3 +710,50 @@
719710
.sox-stickyVoteButtons .s-popover {
720711
width: max-content;
721712
}
713+
714+
/* displayName -- for the CSS of the username */
715+
.sox-displayName {
716+
color: color(--white);
717+
padding-right: 12px;
718+
font-size: 13px;
719+
}
720+
721+
/* flagPercentages -- for the percentages */
722+
.sox-percentage-span {
723+
margin-left: 5px;
724+
color: #999;
725+
font-size: 12px;
726+
}
727+
728+
/* topAnswers -- for the scores of the answers */
729+
#sox-top-answers {
730+
padding-bottom: 10px;
731+
border-bottom: 1px solid #eaebec;
732+
}
733+
734+
/* warnNotLoggedIn -- for the div warning the user */
735+
#loggedInReminder {
736+
position: fixed;
737+
right: 0;
738+
bottom: 50px;
739+
background-color: rgba(200, 200, 200, 1);
740+
width: 200px;
741+
text-align: center;
742+
padding: 5px;
743+
color: black;
744+
font-weight: bold;
745+
}
746+
747+
/* disableVoteButtons -- for the CSS of the disabled voting buttons */
748+
.sox-disabled-button {
749+
cursor: default;
750+
opacity: 0.5;
751+
pointer-events: none;
752+
}
753+
754+
/* addTagsToHNQs -- for the tags' span */
755+
.sox-addTagsToHNQs-span {
756+
color: grey;
757+
display: block;
758+
margin-bottom: 10px;
759+
}

sox.features.info.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"extended_description": "Changes the favourite tag question highlighting to be a more subtle, coloured left-border",
5050
"meta": "https://meta.stackexchange.com/q/238591",
5151
"match": "",
52-
"exclude": "*://chat.*.com/*,*://*/questions/*,*://*/questions/ask",
52+
"exclude": "*://chat.*.com/*,*://*/questions/ask",
5353
"feature_packs": ["major_ui", "key_feature", "power_user"]
5454
}, {
5555
"name": "isQuestionHot",
@@ -456,7 +456,7 @@
456456
"desc": "Change 'share' link to format of [post-name](url)",
457457
"extended_description": "When you click 'share' under a post, this will convert the URL given to a markdown-friendly version, with the post name as the link text. This feature also automatically copies the converted string to your clipboard",
458458
"meta": "https://meta.stackexchange.com/q/126544",
459-
"match": "*://*/questions/*,*://*/review*",
459+
"match": "*://*/questions/*",
460460
"exclude": "SE1.0,*://*/questions/ask,*://*/questions/tagged*,*://*/questions/greatest-hits*"
461461
}, {
462462
"name": "sortByBountyAmount",
@@ -501,7 +501,7 @@
501501
"name": "showMetaReviewCount",
502502
"desc": "Add how many reviews are available on Meta to the main site review page",
503503
"meta": "",
504-
"match": "*://*/review",
504+
"match": "*://*/review$",
505505
"exclude": "*://meta.*.com/*"
506506
}, {
507507
"name": "copyCode",
@@ -544,4 +544,3 @@
544544
}]
545545
}
546546
}
547-

0 commit comments

Comments
 (0)