Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit b547e30

Browse files
committed
- changes class name for minimal effects to minEffects
- hides nsfw content when effects are set to minimal - when you look at your own nsfw page or product, and your account is set to hide nsfw material, the warning modal now shows up so you can unhide your own content - fixes un-updated border on the page navigation menu when effects are set to minimal - Closes #1651
1 parent 067b06a commit b547e30

File tree

7 files changed

+92
-88
lines changed

7 files changed

+92
-88
lines changed

css/obBase.css

Lines changed: 76 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -6131,18 +6131,18 @@ input[type="checkbox"].fieldItem:checked + label .togLabelOff {
61316131

61326132
/* turn off animations and transitions with this style */
61336133

6134-
#ov1.notFancy,
6135-
#ov1.notFancy *,
6136-
#ov1.notFancy #userPage,
6137-
#ov1.notFancy #userPage *,
6138-
#ov1.notFancy #obContainer,
6139-
#ov1.notFancy #obContainer *,
6140-
#ov1.notFancy #overlay,
6141-
#ov1.notFancy #sideBar,
6142-
#ov1.notFancy #pageNav,
6143-
#ov1.notFancy #modalHolder,
6144-
#ov1.notFancy #messageModal,
6145-
#ov1.notFancy #statusBar {
6134+
#ov1.minEffects,
6135+
#ov1.minEffects *,
6136+
#ov1.minEffects #userPage,
6137+
#ov1.minEffects #userPage *,
6138+
#ov1.minEffects #obContainer,
6139+
#ov1.minEffects #obContainer *,
6140+
#ov1.minEffects #overlay,
6141+
#ov1.minEffects #sideBar,
6142+
#ov1.minEffects #pageNav,
6143+
#ov1.minEffects #modalHolder,
6144+
#ov1.minEffects #messageModal,
6145+
#ov1.minEffects #statusBar {
61466146
transition: none !important;
61476147
-webkit-filter: none !important;
61486148
opacity: 1 !important;
@@ -6152,139 +6152,143 @@ input[type="checkbox"].fieldItem:checked + label .togLabelOff {
61526152
text-shadow: none !important;
61536153
}
61546154

6155-
#ov1.notFancy #pageNav .popMenu.popMenu-navBar.popMenu-opened {
6155+
#ov1.minEffects #pageNav .popMenu-navBarSubMenu {
61566156
border-left: 1px solid #444;
61576157
border-right: 1px solid #444;
61586158
border-bottom: 1px solid #444;
61596159
}
61606160

6161-
#ov1.notFancy .fadeOut,
6162-
#ov1.notFancy .statusBar.fadeOut,
6163-
#ov1.notFancy #pageNav .statusBar.fadeOut,
6164-
#ov1.notFancy #userPage .fadeOut,
6165-
#ov1.notFancy #userPage #pageNav .fadeOut,
6166-
#ov1.notFancy #userPage #pageNav .statusBar.fadeOut,
6167-
#ov1.notFancy #userPage #obContainer #content .statusBar.fadeOut {
6161+
#ov1.minEffects .fadeOut,
6162+
#ov1.minEffects .statusBar.fadeOut,
6163+
#ov1.minEffects #pageNav .statusBar.fadeOut,
6164+
#ov1.minEffects #userPage .fadeOut,
6165+
#ov1.minEffects #userPage #pageNav .fadeOut,
6166+
#ov1.minEffects #userPage #pageNav .statusBar.fadeOut,
6167+
#ov1.minEffects #userPage #obContainer #content .statusBar.fadeOut {
61686168
opacity: 0 !important;
61696169
}
61706170

6171-
#ov1.notFancy #sideBar .sideBarSlidShow {
6171+
#ov1.minEffects #sideBar .sideBarSlidShow {
61726172
display: none;
61736173
}
61746174

6175-
#ov1.notFancy #sideBar.sideBarSlid .sideBarSlidShow {
6175+
#ov1.minEffects #sideBar.sideBarSlid .sideBarSlidShow {
61766176
display: block;
61776177
}
61786178

6179-
#ov1.notFancy #sideBar .chatConversation textarea,
6180-
#ov1.notFancy #sideBar .chatConversation textarea::-webkit-input-placeholder,
6181-
#ov1.notFancy #sideBar .chatConversation input,
6182-
#ov1.notFancy #sideBar .chatConversation input::-webkit-input-placeholder {
6179+
#ov1.minEffects #sideBar .chatConversation textarea,
6180+
#ov1.minEffects #sideBar .chatConversation textarea::-webkit-input-placeholder,
6181+
#ov1.minEffects #sideBar .chatConversation input,
6182+
#ov1.minEffects #sideBar .chatConversation input::-webkit-input-placeholder {
61836183
color: #fff;
61846184
}
61856185

6186-
#ov1.notFancy .gridItemControls {
6186+
#ov1.minEffects .gridItemControls {
61876187
display: none;
61886188
}
61896189

6190-
#ov1.notFancy .gridItemControls .btn-gridItemControl:hover,
6191-
#ov1.notFancy .userPage-subViews .gridItem:hover .gridItemControls,
6192-
#ov1.notFancy .homeView .gridItem:hover .gridItemControls {
6190+
#ov1.minEffects .gridItemControls .btn-gridItemControl:hover,
6191+
#ov1.minEffects .userPage-subViews .gridItem:hover .gridItemControls,
6192+
#ov1.minEffects .homeView .gridItem:hover .gridItemControls {
61936193
display: block;
61946194
}
61956195

6196-
#ov1.notFancy .btn .postConfirm {
6196+
#ov1.minEffects .btn .postConfirm {
61976197
display: none;
61986198
}
61996199

6200-
#ov1.notFancy .confirm.btn .preConfirm {
6200+
#ov1.minEffects .confirm.btn .preConfirm {
62016201
display: none;
62026202
}
62036203

6204-
#ov1.notFancy .confirm.btn .postConfirm {
6204+
#ov1.minEffects .confirm.btn .postConfirm {
62056205
display: inline-block;
62066206
}
62076207

6208-
#ov1.notFancy #userPage #obContainer #content .labelWrap.fade {
6208+
#ov1.minEffects #userPage #obContainer #content .labelWrap.fade {
62096209
opacity: 0 !important;
62106210
}
62116211

6212-
#ov1.notFancy #userPage #obContainer #content .labelWrap.fadeIn {
6212+
#ov1.minEffects #userPage #obContainer #content .labelWrap.fadeIn {
62136213
opacity: 1;
62146214
}
62156215

6216-
#ov1.notFancy #obContainer .taggle_placeholder,
6217-
#ov1.notFancy #userPage #obContainer .taggle_placeholder {
6216+
#ov1.minEffects #obContainer .taggle_placeholder,
6217+
#ov1.minEffects #userPage #obContainer .taggle_placeholder {
62186218
display: none !important;
62196219
}
62206220

6221-
#ov1.notFancy #obContainer .unfilled,
6222-
#ov1.notFancy #userPage .unfilled {
6221+
#ov1.minEffects #obContainer .unfilled,
6222+
#ov1.minEffects #userPage .unfilled {
62236223
opacity: 0.35 !important;
62246224
}
62256225

6226-
#ov1.notFancy .notFancyDarkBackground,
6227-
#ov1.notFancy #obContainer .notFancyDarkBackground {
6226+
#ov1.minEffects .minEffectsDarkBackground,
6227+
#ov1.minEffects #obContainer .minEffectsDarkBackground {
62286228
background: #262626 !important;
62296229
}
62306230

6231-
#ov1.notFancy .addressFormOpened .buyWizardMap .blurMore {
6231+
#ov1.minEffects .addressFormOpened .buyWizardMap .blurMore {
62326232
display: none;
62336233
}
62346234

6235-
#ov1.notFancy .user-page-header-slim {
6235+
#ov1.minEffects .user-page-header-slim {
62366236
display: none;
62376237
}
62386238

6239-
#ov1.notFancy .user-page-header-slim.scrolledIntoView {
6239+
#ov1.minEffects .user-page-header-slim.scrolledIntoView {
62406240
display: block;
62416241
}
62426242

6243-
#ov1.notFancy .disabled,
6244-
#ov1.notFancy #userPage .disabled,
6245-
#ov1.notFancy #obContainer .disabled,
6246-
#ov1.notFancy #overlay .disabled,
6247-
#ov1.notFancy #sideBar .disabled,
6248-
#ov1.notFancy #pageNav .disabled,
6249-
#ov1.notFancy #modalHolder .disabled,
6250-
#ov1.notFancy #messageModal .disabled,
6251-
#ov1.notFancy #statusBar .disabled {
6243+
#ov1.minEffects .disabled,
6244+
#ov1.minEffects #userPage .disabled,
6245+
#ov1.minEffects #obContainer .disabled,
6246+
#ov1.minEffects #overlay .disabled,
6247+
#ov1.minEffects #sideBar .disabled,
6248+
#ov1.minEffects #pageNav .disabled,
6249+
#ov1.minEffects #modalHolder .disabled,
6250+
#ov1.minEffects #messageModal .disabled,
6251+
#ov1.minEffects #statusBar .disabled {
62526252
opacity: 0.2 !important;
62536253
}
62546254

6255-
#ov1.notFancy .disabled2,
6256-
#ov1.notFancy #userPage .disabled2,
6257-
#ov1.notFancy #obContainer .disabled2,
6258-
#ov1.notFancy #overlay .disabled2,
6259-
#ov1.notFancy #sideBar .disabled2,
6260-
#ov1.notFancy #pageNav .disabled2,
6261-
#ov1.notFancy #modalHolder .disabled2,
6262-
#ov1.notFancy #messageModal .disabled2,
6263-
#ov1.notFancy #statusBar .disabled2 {
6255+
#ov1.minEffects .disabled2,
6256+
#ov1.minEffects #userPage .disabled2,
6257+
#ov1.minEffects #obContainer .disabled2,
6258+
#ov1.minEffects #overlay .disabled2,
6259+
#ov1.minEffects #sideBar .disabled2,
6260+
#ov1.minEffects #pageNav .disabled2,
6261+
#ov1.minEffects #modalHolder .disabled2,
6262+
#ov1.minEffects #messageModal .disabled2,
6263+
#ov1.minEffects #statusBar .disabled2 {
62646264
opacity: 0.7 !important;
62656265
}
62666266

6267+
#ov1.minEffects .nsfw {
6268+
background: #000 !important;
6269+
}
6270+
62676271
/* add a shadow and a glow, so modal close buttons are still barely visible if the user picks a bad color */
62686272
#ov1 .js-closeIndexModal [class *= "ion-"]:before,
62696273
#ov1 #userPage .js-closeIndexModal [class *= "ion-"]:before,
62706274
#ov1 #obContainer .js-closeIndexModal [class *= "ion-"]:before,
62716275
#ov1 #modalHolder .js-closeIndexModal [class *= "ion-"]:before,
62726276
#ov1 #messageModal .js-closeIndexModal [class *= "ion-"]:before,
6273-
#ov1.notFancy .js-closeIndexModal [class *= "ion-"]:before,
6274-
#ov1.notFancy #userPage .js-closeIndexModal [class *= "ion-"]:before,
6275-
#ov1.notFancy #obContainer .js-closeIndexModal [class *= "ion-"]:before,
6276-
#ov1.notFancy #modalHolder .js-closeIndexModal [class *= "ion-"]:before,
6277-
#ov1.notFancy #messageModal .js-closeIndexModal [class *= "ion-"]:before,
6277+
#ov1.minEffects .js-closeIndexModal [class *= "ion-"]:before,
6278+
#ov1.minEffects #userPage .js-closeIndexModal [class *= "ion-"]:before,
6279+
#ov1.minEffects #obContainer .js-closeIndexModal [class *= "ion-"]:before,
6280+
#ov1.minEffects #modalHolder .js-closeIndexModal [class *= "ion-"]:before,
6281+
#ov1.minEffects #messageModal .js-closeIndexModal [class *= "ion-"]:before,
62786282
#ov1 .js-modal-close [class *= "ion-"]:before,
62796283
#ov1 #userPage .js-modal-close [class *= "ion-"]:before,
62806284
#ov1 #obContainer .js-modal-close [class *= "ion-"]:before,
62816285
#ov1 #modalHolder .js-modal-close [class *= "ion-"]:before,
62826286
#ov1 #messageModal .js-modal-close [class *= "ion-"]:before,
6283-
#ov1.notFancy .js-modal-close [class *= "ion-"]:before,
6284-
#ov1.notFancy #userPage .js-modal-close [class *= "ion-"]:before,
6285-
#ov1.notFancy #obContainer .js-modal-close [class *= "ion-"]:before,
6286-
#ov1.notFancy #modalHolder .js-modal-close [class *= "ion-"]:before,
6287-
#ov1.notFancy #messageModal .js-modal-close [class *= "ion-"]:before,
6287+
#ov1.minEffects .js-modal-close [class *= "ion-"]:before,
6288+
#ov1.minEffects #userPage .js-modal-close [class *= "ion-"]:before,
6289+
#ov1.minEffects #obContainer .js-modal-close [class *= "ion-"]:before,
6290+
#ov1.minEffects #modalHolder .js-modal-close [class *= "ion-"]:before,
6291+
#ov1.minEffects #messageModal .js-modal-close [class *= "ion-"]:before,
62886292
#ov1 #modalHolder .js-closeBuyWizardModal [class *= "ion-"]:before {
62896293
text-shadow: 0 0 1px rgba(0,0,0,1), 0 0 2px rgba(255,255,255, 1) !important;
62906294
}

js/start.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,8 @@ $(window).bind('hashchange', function(){
256256
});
257257

258258
//set fancy styles class
259-
if (localStorage.getItem('notFancy') == "true"){
260-
$html.addClass('notFancy');
259+
if (localStorage.getItem('minEffects') == "true"){
260+
$html.addClass('minEffects');
261261
}
262262

263263
//prevent dragging a file to the window from loading that file

js/templates/settings.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,9 +1181,9 @@ <h3 class="padding15 margin0 fontWeight500"><%= polyglot.t('Advanced') %></h3>
11811181
<div class="fieldItem flexRow">
11821182
<div class="flexRow">
11831183
<div class="flexCol-4">
1184-
<input type="radio" class="fieldItem" id="fancyStylesYes" name="notFancy" value="true" />
1184+
<input type="radio" class="fieldItem" id="fancyStylesYes" name="minEffects" value="true" />
11851185
<label for="fancyStylesYes" class="radioLabel"><%= polyglot.t('Yes') %></label>
1186-
<input type="radio" class="fieldItem" id="fancyStylesNo" name="notFancy" value="false" checked/>
1186+
<input type="radio" class="fieldItem" id="fancyStylesNo" name="minEffects" value="false" checked/>
11871187
<label for="fancyStylesNo" class="radioLabel"><%= polyglot.t('No') %></label>
11881188
</div>
11891189
<div class="flexCol-8">

js/templates/transactionModal.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ <h2 class="ion-android-close clickable"></h2>
1818
<h3 class="txt-bright"><%= polyglot.t('CheckExchanges') %> </h3>
1919
</div>
2020
</div>
21-
<div class="colorWhiteForce positionBottom width100 padding12 notFancyDarkBackground">
21+
<div class="colorWhiteForce positionBottom width100 padding12 minEffectsDarkBackground">
2222
<div class="fontSize16">Order #<%- ob.orderID %></div>
2323
<div class="fontSize14 textOpacity75 marginTop2">
2424
<%= polyglot.t('transactions.OrderStatus'+ob.status) %>

js/templates/userPage.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ <h1 class="page-userNameLarge floatLeft fancy-heading fontSize20 colorWhiteForce
6262
</div>
6363

6464
<div class="shadow-inner1 user-page-header js-userPageHeader">
65-
<div class="rowItem positionBottom width100 padding0 paddingLeft20 notFancyDarkBackground">
65+
<div class="rowItem positionBottom width100 padding0 paddingLeft20 minEffectsDarkBackground">
6666
<div class="table">
6767
<div>
6868
<div class="thumbnail thumbnail-large js-userPageAvatar"

js/views/settingsVw.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ module.exports = pageVw.extend({
5757
'click #moderatorNo': 'hideModeratorFeeHolder',
5858
'click .js-shutDownServer': 'shutdownServer',
5959
'keyup #moderatorFeeInput': 'keypressFeeInput',
60-
'click #advancedForm input[name="notFancy"]': 'toggleFancyStyles',
60+
'click #advancedForm input[name="minEffects"]': 'toggleFancyStyles',
6161
'click #advancedForm input[name="useTestnet"]': 'toggleTestnet',
6262
'change #advancedForm input[name="appBarStyle"]': 'changeAppBarStyle',
6363
'blur input': 'validateInput',
@@ -437,14 +437,14 @@ module.exports = pageVw.extend({
437437
notifications = user.notifications,
438438
moderatorStatus = this.model.get('page').profile.moderator,
439439
vendorStatus = this.model.get('page').profile.vendor,
440-
fancyStatus = window.localStorage.getItem('notFancy'),
440+
fancyStatus = window.localStorage.getItem('minEffects'),
441441
smtp_notifications = user.smtp_notifications == 1;
442442

443443
this.$("#pageForm").find("input[name=nsfw]").val([String(pageNSFW)]);
444444
generalForm.find("input[name=nsfw][value=" + localStorage.getItem('NSFWFilter') + "]").prop('checked', true);
445445
generalForm.find("input[name=notifications][value=" + notifications + "]").prop('checked', true);
446446
this.$("#storeForm").find("input[name=vendor][value=" + vendorStatus + "]").prop('checked', true);
447-
advancedForm.find("input[name=notFancy][value=" + fancyStatus + "]").prop('checked', true);
447+
advancedForm.find("input[name=minEffects][value=" + fancyStatus + "]").prop('checked', true);
448448
advancedForm.find("input[name=additionalPaymentData][value=" + localStorage.getItem('AdditionalPaymentData') + "]").prop('checked', true);
449449
advancedForm.find("input[name=smtp_notifications][value=" + smtp_notifications + "]").prop('checked', true);
450450
advancedForm.find("input[name=smtp_notifications][value=" + smtp_notifications + "]").prop('checked', true);
@@ -1113,12 +1113,12 @@ module.exports = pageVw.extend({
11131113
toggleFancyStyles: function(){
11141114
var $html = $('html');
11151115

1116-
if ($('#advancedForm').find('input[name="notFancy"]').prop('checked')){
1117-
$html.addClass('notFancy');
1118-
localStorage.setItem('notFancy', "true");
1116+
if ($('#advancedForm').find('input[name="minEffects"]').prop('checked')){
1117+
$html.addClass('minEffects');
1118+
localStorage.setItem('minEffects', "true");
11191119
} else {
1120-
$html.removeClass('notFancy');
1121-
localStorage.setItem('notFancy', "false");
1120+
$html.removeClass('minEffects');
1121+
localStorage.setItem('minEffects', "false");
11221122
}
11231123
},
11241124

js/views/userPageVw.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,11 +390,11 @@ UserPageVw = pageVw.extend({
390390
self.$backToTop = self.$('.backToTop');
391391

392392
//check if user is blocked
393-
if(!self.options.ownPage && isBlocked) {
393+
if (!self.options.ownPage && isBlocked) {
394394
self.hideThisUser("blocked");
395395
}
396396

397-
if(!self.options.ownPage && !self.skipNSFWmodal && self.model.get('page').profile.nsfw && !self.showNSFW){
397+
if (!self.skipNSFWmodal && self.model.get('page').profile.nsfw && !self.showNSFW){
398398
self.hideThisUser("nsfw");
399399
}
400400

0 commit comments

Comments
 (0)