Skip to content

Commit

Permalink
#356 added, minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shu8 committed Jul 21, 2018
1 parent 52c2db1 commit f219472
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 33 deletions.
61 changes: 29 additions & 32 deletions sox.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@
color: #9fa6ad;
}

.sox-feature-info, .sox-feature-settings {
.sox-feature-info,
.sox-feature-settings {
background-color: whitesmoke;
border-radius: 9px;
margin-left: 20px;
Expand All @@ -124,19 +125,18 @@
padding: 5px !important;
}

.sox-feature .fa-info, .sox-feature .fa-wrench {
.sox-feature .fa-info,
.sox-feature .fa-wrench {
font-size: 12px;
padding: 0 5px;
}

.sox-feature .fa-info {
float: right;
}

.sox-feature-settings-save {

}

.sox-feature-settings-save {}

/* -------- sox specific features' CSS ------- */

#sox-scrollToTop {
Expand All @@ -150,7 +150,6 @@
cursor: pointer;
}


/*Main centered divs, SE-style:*/

.sox-centered {
Expand All @@ -165,7 +164,6 @@
height: 90%;
}


/*Specifically for quickCommentShortcuts -- the div's too wide! https://github.com/shu8/Stack-Overflow-Optional-Features/issues/36*/

#quickCommentShortcuts.sox-centered {
Expand All @@ -178,10 +176,12 @@
overflow: auto;
}


/*standOutDupeCloseMigrated signs */

.standOutDupeCloseMigrated-duplicate, .standOutDupeCloseMigrated-closed, .standOutDupeCloseMigrated-migrated, .standOutDupeCloseMigrated-onhold {
.standOutDupeCloseMigrated-duplicate,
.standOutDupeCloseMigrated-closed,
.standOutDupeCloseMigrated-migrated,
.standOutDupeCloseMigrated-onhold {
color: #FFF;
padding: 2px;
border-radius: 4px;
Expand All @@ -205,7 +205,6 @@
background: #808080;
}


/*metaNewQuestionAlert for the mod diamond and dialog */

#metaNewQuestionAlertDialog {
Expand All @@ -218,7 +217,6 @@
content: "No new meta questions at this time.";
}


/*addHotText for the 'this question is hot' banner */

.sox-hot {
Expand All @@ -228,7 +226,6 @@
margin-right: 8px;
}


/*quickCommentShortcutsMain: */

.quickCommentShortcutsReminder {
Expand All @@ -243,10 +240,8 @@
overflow: auto;
}


/*fixedTopbar */


/*Ubuntu CSS by @UnicornsAreVeryVeryYummy - http://stackapps.com/users/33746/unicorns-are-very-very-yummy */

.fixedTopbar-links {
Expand Down Expand Up @@ -286,7 +281,6 @@ li.fixedTopbar-siteLink {
z-index: 1000;
}


/*Side by Side Editing (SBS, addSBSBtn, startSBS): https://github.com/szego/SE-Answers_scripts/blob/side-by-side/editing-and-toggling/side-by-side-editing.user.js:*/

#sidebar.sbs-on {
Expand Down Expand Up @@ -337,12 +331,11 @@ li.fixedTopbar-siteLink {
}

.post-editor.sbs-on {
width: 1360px !important;
//width: 1060px !important;
width: 1360px !important; //width: 1060px !important;
}

.sbs-on-left-side {
width: 660px;
width: 660px;
}

.wmd-button-bar.sbs-on {
Expand Down Expand Up @@ -376,7 +369,6 @@ li.fixedTopbar-siteLink {
width: 1335px;
}


/*linkedPostsInline for the displayed post text; https://github.com/shu8/Stack-Overflow-Optional-Features/issues/48 */

.linkedPostsInline-loaded-body-sox {
Expand All @@ -385,18 +377,18 @@ li.fixedTopbar-siteLink {
overflow-wrap: break-word;
width: auto;
padding: 10px;
-webkit-box-shadow: inset 1px 1px 4px 1px rgba(0,0,0,0.5);
-moz-box-shadow: inset 1px 1px 4px 1px rgba(0,0,0,0.5);
box-shadow: inset 1px 1px 4px 1px rgba(0,0,0,0.5);

-webkit-box-shadow: inset 1px 1px 4px 1px rgba(0, 0, 0, 0.5);
-moz-box-shadow: inset 1px 1px 4px 1px rgba(0, 0, 0, 0.5);
box-shadow: inset 1px 1px 4px 1px rgba(0, 0, 0, 0.5);
}

.linkedPostsInline-loaded-body-sox .post-text {
width: auto;
font-size: 90%;
}


/*findAndReplace*/

.findReplaceToolbar {
display: block;
background-color: transparent;
Expand Down Expand Up @@ -426,7 +418,6 @@ li.fixedTopbar-siteLink {
cursor: pointer;
}


/*highlightQuestions -- for the tags*/

.sox-tagged-interesting {
Expand All @@ -444,7 +435,6 @@ li.fixedTopbar-siteLink {
background: black;
}


/*downvotedPostsEditAlert -- for the button and dropdown*/

#downvotedPostsEditAlertButton {
Expand Down Expand Up @@ -482,15 +472,13 @@ li.fixedTopbar-siteLink {
-webkit-text-stroke-width: 3px;
}


/*commentReplies -- for the reply buttons*/

.soxReplyLink {
cursor: pointer;
float: right;
}


/*flagPercentageBar -- for the percentage bar itself*/

#sox-flagPercentProgressBar {
Expand All @@ -511,7 +499,6 @@ li.fixedTopbar-siteLink {
margin-bottom: 5px;
}


/*titleEditDiff -- for the toggle button*/

.sox-better-title-toggle {
Expand All @@ -520,7 +507,6 @@ li.fixedTopbar-siteLink {
cursor: pointer;
}


/*sox-copyCode -- for the button and textarea (completely hide it)*/

.sox-copyCodeButton {
Expand All @@ -543,7 +529,6 @@ li.fixedTopbar-siteLink {
overflow: hidden;
}


/*openLinksInNewTab -- for the external link sign*/

.openLinksInNewTab-externalLink {
Expand All @@ -552,23 +537,27 @@ li.fixedTopbar-siteLink {
}

/*colorAnswerer -- for the username*/

.sox-answerer {
color: rgba(0, 50, 200, 1);
background-color: rgba(220, 220, 220, 1);
padding: 1px 5px !important;
}

/*hotNetworkQuestionsFiltering -- for the questions to hide*/

.sox-hot-network-question-filter-hide {
display: none !important;
}

/*addAuthorNameToInboxNotifications -- for the author span*/

.sox-notification-author {
color: #848d95;
}

/*hotNetworkQuestionsFiltering -- for the tags icon and tags list shown after hovering over it*/

.getQuestionTags {
margin-left: 5px;
}
Expand All @@ -583,3 +572,11 @@ li.fixedTopbar-siteLink {
padding: 2px;
white-space: normal;
}

/* onlyShowCommentActionsOnHover -- the function just adds this CSS to avoid having to do it in JS*/
/* thanks @Makyen <https://meta.stackexchange.com/questions/312794/312800#comment1024746_312794> */

.sox-onlyShowCommentActionsOnHover:not(:hover) .comment-up-off,
.sox-onlyShowCommentActionsOnHover:not(:hover) .comment-flag:not(.flag-on) {
visibility: hidden;
}
1 change: 1 addition & 0 deletions sox.dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@
}

if (version !== lastVersionInstalled) {
GM_setValue('SOX-lastVersionInstalled', version);
var $newVersionDetailsContainer = $('<div/>', {
'class': 'sox-new-version-details'
}),
Expand Down
6 changes: 6 additions & 0 deletions sox.features.info.json
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,12 @@
"meta": "http://meta.stackoverflow.com/q/296582/3541881",
"match": "*://*/questions*,*://*/review*",
"exclude": "SE1.0"
}, {
"name": "onlyShowCommentActionsOnHover",
"desc": "Only show the comment actions (flag/upvote) when hovering over a comment",
"meta": "https://meta.stackexchange.com/q/312794",
"match": "*://*/questions*,*://*/review*",
"exclude": ""
}],
"Editing": [{
"name": "addSBSBtn",
Expand Down
6 changes: 6 additions & 0 deletions sox.features.js
Original file line number Diff line number Diff line change
Expand Up @@ -2589,6 +2589,12 @@

reader.readAsDataURL(blob);
});
},

onlyShowCommentActionsOnHover: function() {
// Description: Only show the comment actions (flag/upvote) when hovering over a comment

$('.comment').addClass('sox-onlyShowCommentActionsOnHover');
}
};
})(window.sox = window.sox || {}, jQuery);
2 changes: 1 addition & 1 deletion sox.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name Stack Overflow Extras (SOX)
// @namespace https://github.com/soscripted/sox
// @version 2.2.27 DEV
// @version 2.2.28 DEV
// @description Extra optional features for Stack Overflow and Stack Exchange sites
// @contributor ᴉʞuǝ (https://stackoverflow.com/users/1454538/, https://github.com/mezmi)
// @contributor ᔕᖺᘎᕊ (https://stackexchange.com/users/4337810/, https://github.com/shu8)
Expand Down

0 comments on commit f219472

Please sign in to comment.