Iwara UI Fix

An alternate style for 天音's Iwara 1-Click Filter script, also works as a standalone

As of 03/03/2020. See the latest version.

  1. // ==UserScript==
  2. // @name Iwara UI Fix
  3. // @namespace none
  4. // @version 1.4
  5. // @description An alternate style for 天音's Iwara 1-Click Filter script, also works as a standalone
  6. // @author Nothson
  7. // @license CC BY-NC
  8. // @resource https://creativecommons.org/licenses/by-nc/4.0/
  9. // @match https://*.iwara.tv/*
  10. // @grant none
  11. // @run-at document-start
  12. // ==/UserScript==
  13.  
  14. /*
  15. --- Iwara UI Fix by Nothson : https://iwara.tv/users/Nothson ---
  16.  
  17. Mainly for scratching the Iwara's UI/UX itches I have.
  18. I'm not a senior web dev so plz don't scold me if the code below looks messy to you.
  19.  
  20. 3 Mar 2020
  21.  
  22. - Changed the approach to replace the blank images, there were some corner cases that make errors.
  23.  
  24. 2 Mar 2020
  25. - Now, this script has conflicts with Iwara 1-Click Filter version 1.6 and newer
  26. - See the note at the bottom of any Iwara page for the workaround.
  27.  
  28. 1 Mar 2020
  29.  
  30. - Added like percentage
  31. - Polaroid print style for video/image cards
  32. - Repositioned the card stats & icons
  33. - Added flairs, shown on the right of the card stats
  34. - Fire Icon: % like reaches the threshold (based on view count) + 200 views or more
  35. - Star Icon: % like reaches the threshold + 20k views or more
  36. - Lock Icon: Private video
  37. - Grid Icon: Multiple images
  38. - Screen Icon: External player (YouTube, Vimeo, etc.)
  39. - Card transitions on hover + extra transitions for some flairs
  40. - Added block backgrounds on many regions + made paddings and margins consistent
  41. - Fixed video player seek head
  42. - Changed forum post timestamp text color
  43. - Fixed user profile background, user lists (following/followers), and layout
  44. - Perhaps a few more things I did but couldn't remember, idk
  45.  
  46. Expected to run after Erono's Iwara 1-Click Filter Script: https://greasyfork.org/scripts/393957
  47. However, this script works as a standalone UI fix as well
  48. Tested on the latest version of Firefox & Chrome, plus responsive
  49. */
  50.  
  51. window.addEventListener('load', async function() {
  52. if (!window.location.href.match('://i.iwara.tv')) {
  53. let oneClickFilterConflict = document.head.querySelector('#css_custom') || document.head.querySelector('#css_likes');
  54. let baseCSS = document.createElement('style'); // Add original CSS rules from 1-Click Filter
  55. baseCSS.innerHTML = `
  56. /* ads */
  57. /*
  58. .block-extra-content, .extra-content-block {display: none;}
  59. */
  60.  
  61. /* fix page */
  62. body {background-color: #eee;}
  63. section#content > .container {background-color: #eee; padding: 10px;}
  64. .container {width: unset;}
  65. @media (min-width: 1300px) {.container {width: 1300px;}}
  66.  
  67. /* fix overflow */
  68. #block-system-main, .row {margin-left: 0; margin-right: 0;}
  69. .col-sm-3, .col-sm-6, .col-sm-9, .col-xs-6, .col-sm-12 {padding-left: 0; padding-right: 0;}
  70. .view-videos .view-content .views-row, .view-images .view-content .views-row {padding-bottom: 0px;}
  71.  
  72. /* compact page */
  73. .view-content .col-sm-3, .view-content .col-sm-6 {width: 50%; float: left;}
  74. @media (min-width: 768px) {
  75. .view-content .col-sm-3 {width: 25%;}
  76. }
  77.  
  78. /* card style */
  79. .node.node-teaser {background-color: #ffffff; border: 1px solid #ccc; border-radius: 4px; padding: 5px; margin: 4px;}
  80. .node.node-teaser .icon-bg, .node.node-teaser .private-video {width: calc(100% - 10px);}
  81. .node.node-teaser .icon-bg .likes-icon {filter: drop-shadow(0px 0px 2px #000);}
  82. .node.node-teaser h3.title {font-size: 1em; line-height: 1em; height: 3em; margin-bottom: 0px; overflow: hidden;}
  83. .node.node-teaser .username {display: block; white-space: nowrap; overflow: hidden;}
  84. .node.node-teaser .field-item {min-height: 2em;}
  85. .node.node-video .content {margin: 4px;}
  86. .sidebar .block.block-views,
  87. .sidebar .block.block-facetapi,
  88. .sidebar .block.block-mainblocks {background-color: #fafafa; border: 1px solid #ccc; border-radius: 4px; padding: 8px; margin: 4px 4px 8px 4px;}
  89. .sidebar .node.node-sidebar_teaser {background-color: #ffffff; border: 1px solid #ccc; border-radius: 2px; padding: 4px; margin: 2px;}
  90. .sidebar .node.node-sidebar_teaser .icon-bg, .node.node-sidebar_teaser .private-video {width: calc(100% - 8px);}
  91. .sidebar .node.node-sidebar_teaser .icon-bg .likes-icon {filter: drop-shadow(0px 0px 2px #000);}
  92. .item-list ul.pager li {margin: 0; padding: 0;}
  93. .item-list ul.pager li.pager-current,
  94. .item-list ul.pager li.pager-ellipsis,
  95. .item-list ul.pager li > a {background: #fafafa; border: 1px solid #ccc; border-radius: 8px; padding: 4px 16px; margin: 0px; display: inline-block;}
  96.  
  97. /* video style for external link (youtube) */
  98. /*
  99. .node.node-teaser .field-type-video-embed-field {border: 4px solid #c33; background-color: #000;}
  100. .node.node-teaser .field-type-video-embed-field .field-items {overflow: hidden;}
  101. .node.node-teaser .field-type-video-embed-field .field-items .field-item {margin: -4px;}
  102. */
  103.  
  104. /* image style in subscriptions page */
  105. .view-subscriptions .field-type-image {border: 1px solid #ccc; background-color: #fff; padding: 5px;}
  106. .view-subscriptions .field-type-image .field-items {overflow: hidden;}
  107. .view-subscriptions .field-type-image .field-items .field-item {margin: -6px;}
  108.  
  109. /* search and playist */
  110. .node-wide_teaser {background-color: #fafafa; border: 1px solid #ccc; border-radius: 4px; padding: 4px; margin: 4px;}
  111. .node-wide_teaser {width: unset; word-break: break-all; min-height: 170px;}
  112. .node-wide_teaser .col-sm-2 {width: 230px; padding: 4px;}
  113. .node-wide_teaser .col-sm-10 {width: calc(100% - 230px); padding: 4px;}
  114. .node-wide_teaser .field-name-field-video {border: 1px solid #999;}
  115. .node-wide_teaser .field-name-field-video-url {border: 1px solid #999; position: absolute; top: 0px; left: -230px; margin: 4px;}
  116. @media (max-width: 768px) {.node-wide_teaser .field-name-field-video-url {display: none;}}
  117. .node-wide_teaser .field-name-field-images .field-item {display: unset;}
  118. .node-wide_teaser .field-name-field-images .field-item > a > img {width: calc(100%/3 - 8px); border: 1px solid #aaa; padding: 4px; margin: 4px;}
  119. .node-wide_teaser .field-name-field-images .field-item > video {width: calc(100%/1 - 8px); margin: 4px; border: 1px solid #aaa; padding: 4px; height: auto;}
  120. .node-wide_teaser .node-info {padding: 4px;}
  121. .node-wide_teaser .node-info .submitted {display: inline-block; width: 100%;}
  122. .node-wide_teaser .node-info .submitted h1.title {font-size: 28px; position: unset; margin: unset;}
  123. ul.facetapi-facetapi-tagcloud li > a {white-space: normal;}
  124. ul.facetapi-facetapi-tagcloud .element-invisible {display: none;}
  125.  
  126. /* footer */
  127. #wrapper {margin-bottom: unset; padding-bottom: unset;}
  128. footer {height: unset;}
  129. footer .block {width: 25%; float: left;}
  130. footer .block.block-forum {width: 50%;}
  131. footer .copyright {float: unset;}
  132.  
  133. /* video player */
  134. /* expand volume and seekbar height */
  135. .video-js .vjs-volume-bar {margin: 1em 0em;}
  136. .video-js .vjs-volume-bar.vjs-slider-horizontal, .video-js .vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level {height: 1em;}
  137. .video-js .vjs-progress-holder, .video-js .vjs-progress-holder .vjs-load-progress, .video-js .vjs-progress-holder .vjs-play-progress {height: 1em;}
  138. `;
  139. baseCSS.id = 'xtension-base-css';
  140. document.head.appendChild(baseCSS);
  141. let cards = document.querySelectorAll('.node-teaser, .node-sidebar_teaser');
  142. Math.logn = function logn (val, base) {
  143. return Math.log(val) / Math.log(base);
  144. }
  145. function kilo2Number (text) {
  146. if (text.match('k') == null) {
  147. return {value: parseInt(text), isKilo: false};
  148. }
  149. else {
  150. return {value: parseFloat(text.replace('k', '')) * 1000, isKilo: true};
  151. }
  152. }
  153. function getFlair (viewCount, likePercentage, card) {
  154. if (card.querySelector('.private-video')) {
  155. return 'lock';
  156. }
  157. else if ((card.className.match('node-sidebar_teaser') && card.children.length > 2) || card.children.length > 4) {
  158. return 'share';
  159. }
  160. else {
  161. let viewPower = Math.logn(viewCount, 6);
  162. let likeThreshold = 8 - viewPower;
  163. if (viewCount < 200) {
  164. return '';
  165. }
  166. else if (viewCount < 20000) {
  167. return (likePercentage > likeThreshold) ? 'fire' : '';
  168. }
  169. else {
  170. return (likePercentage > likeThreshold) ? 'star' : '';
  171. }
  172. }
  173. }
  174.  
  175. // HTML Mod
  176. cards.forEach(card => {
  177. let icons = card.querySelector('.icon-bg');
  178. if (icons) { // Rearrange stat icons, add like percentage and flairs
  179. if ((card.className.match('node-sidebar_teaser') && card.children.length > 1) || card.children.length > 3) {
  180. card.insertBefore(icons, card.children[2]);
  181. }
  182. else {
  183. card.insertBefore(icons, card.children[1]);
  184. }
  185. if (card.className.match('node-image') && icons.children.length == 3) {
  186. icons.appendChild(icons.children[1]);
  187. icons.appendChild(icons.children[0]);
  188. }
  189. else if (icons.children.length == 2) {
  190. icons.appendChild(icons.children[0]);
  191. }
  192.  
  193. let likeNode = icons.querySelector('.glyphicon-heart');
  194. if (likeNode && !(card.className.match('node-image') && card.className.match('node-sidebar_teaser'))) {
  195. likeNode = likeNode.nextSibling;
  196. let viewNode = icons.querySelector('.glyphicon-eye-open').nextSibling;
  197. let likeTxt = likeNode.wholeText.trim();
  198. let like = kilo2Number(likeTxt);
  199. let viewCount = kilo2Number(viewNode.wholeText.trim());
  200. let likePercentage = (viewCount == 0) ? 0 : parseFloat(like.value / viewCount.value * 100).toFixed(2);
  201. if (!card.className.match('node-sidebar_teaser')) {
  202. likeNode.nodeValue = ' ' + likeTxt;
  203. let likePercentageHTML = document.createElement('div');
  204. likePercentageHTML.className += 'right-icon likes-icon like-percentage';
  205. if (like.isKilo || viewCount.isKilo) {
  206. likePercentageHTML.innerText = '(~' + likePercentage + '%)';
  207. }
  208. else {
  209. likePercentageHTML.innerText = '(' + likePercentage + '%)';
  210. }
  211. likeNode.parentElement.parentElement.appendChild(likePercentageHTML);
  212. }
  213. if (card.className.match('node-video')) {
  214. let flair = getFlair(viewCount.value, likePercentage, card);
  215. if (flair) {
  216. card.className += ' flair-' + flair;
  217. let flairNode = document.createElement('div');
  218. flairNode.setAttribute('class', 'left-icon flair-icon');
  219. flairNode.innerHTML = '<i class="glyphicon glyphicon-' + flair + '" title="Flair"></i>';
  220. icons.appendChild(flairNode);
  221. }
  222. }
  223. }
  224. }
  225. else {
  226. let blankFooter = document.createElement('div');
  227. blankFooter.setAttribute('class', 'icon-bg');
  228. card.appendChild(blankFooter);
  229. }
  230.  
  231. let thumbnail = card.querySelector('a > img');
  232. if (!thumbnail) { // Fix inconsistent height of the cards with no thumbnail
  233. let imgArea = card.firstElementChild;
  234. let title = card.querySelector('h3.title > a');
  235. if (!title) {
  236. title = card.querySelector('.field-item > a');
  237. }
  238. let url = (title) ? title.getAttribute('href') : '';
  239. imgArea.innerHTML = '<div class="field blankimg"><div class="field-items"><div class="field-item"><a' +
  240. (url ? ' href="' + url + '"' : '') +
  241. (title ? ' title="' + title.innerText + '"' : '') +
  242. '>' +
  243. (card.className.match('node-sidebar_teaser') ? '<img width="141" height="84"></img>' : '<img width="220" height="150"></img>') +
  244. '</a></div></div></div>';
  245. }
  246. });
  247.  
  248. let contentInfo = document.querySelector('body.node-type-video .node.node-video .node-info .node-views, body.node-type-image .node.node-image .node-info .node-views');
  249. if (contentInfo) { // Add like percentage for a video/image page
  250. let heartIcon = contentInfo.querySelector('.glyphicon.glyphicon-heart');
  251. if (heartIcon) {
  252. let eyeIcon = contentInfo.querySelector('.glyphicon.glyphicon-eye-open');
  253. let viewCount = parseInt(eyeIcon.nextSibling.nodeValue.replace(',', ''));
  254. let like = parseInt(heartIcon.nextSibling.nodeValue.replace(',', ''));
  255. let likePercentage = (viewCount == 0) ? 0 : parseFloat(like / viewCount * 100).toFixed(4);
  256. heartIcon.nextSibling.nodeValue = ' ' + like + ' (' + likePercentage + '%)';
  257. contentInfo.appendChild(contentInfo.querySelector('.glyphicon.glyphicon-heart'));
  258. contentInfo.appendChild(contentInfo.querySelector('.glyphicon.glyphicon-eye-open').previousSibling);
  259. }
  260. }
  261.  
  262. let copyrightNode = document.querySelector('footer .copyright');
  263. if (copyrightNode) { // Add script credits
  264. let innerHTMLExt = '<br><b>Iwara UI Fix</b> by <u><b><a href="https://iwara.tv/users/nothson">Nothson</a></b></u><br><b>Note:</b> <u><b><a href="https://ecchi.iwara.tv/images/iwara-1-click-filter">Iwara 1-Click Filter</a></b></u>\'s <b>User Style</b> and/or <b>Like Colors</b> are enabled. Disable them in the in-page settings, then refresh to prevent style conflict.';
  265. if (!oneClickFilterConflict) {
  266. innerHTMLExt = '<br><b>Iwara UI Fix</b> by <u><b><a href="https://iwara.tv/users/nothson">Nothson</a></b></u><br><i>Based on CSS rules from <u><b><a href="https://ecchi.iwara.tv/images/iwara-1-click-filter">Iwara 1-Click Filter</a></b></u> (version 1.5) by <u><b><a href="https://iwara.tv/users/erono">Erono</a></b></u></i>.';
  267. }
  268. copyrightNode.innerHTML = copyrightNode.firstChild.nodeValue + innerHTMLExt;
  269. }
  270. let addForumCommentElement = document.querySelectorAll('#forum-comments h2.comment-form, #forum-comments noscript, #forum-comments #comment-form');
  271. if (addForumCommentElement.length > 0) { // Wrap forum's "Add new comment" section in a block
  272. let commentBlock = document.createElement('div');
  273. commentBlock.id = 'add-forum-comment-block';
  274. addForumCommentElement.forEach(elem => {
  275. commentBlock.appendChild(elem);
  276. });
  277. document.getElementById('forum-comments').appendChild(commentBlock);
  278. }
  279. // CSS Override
  280. let styleOverride = document.createElement('style');
  281. styleOverride.id = 'xtension-css';
  282. styleOverride.innerHTML = `
  283. .node.node-teaser,
  284. .node.node-sidebar_teaser,
  285. .node.node-teaser i,
  286. .node.node-sidebar_teaser i,
  287. .node.node-teaser img,
  288. .node.node-sidebar_teaser img {
  289. transition: 0.15s!important;
  290. }
  291.  
  292. /*
  293. .node.node-teaser img,
  294. .node.node-sidebar_teaser img {
  295. filter: contrast(0)!important;
  296. }
  297. */
  298.  
  299. .node.node-teaser h3.title,
  300. .node.node-sidebar_teaser h3.title {
  301. height: auto!important;
  302. white-space: nowrap!important;
  303. text-overflow: ellipsis!important;
  304. }
  305.  
  306. .node.node-teaser:hover,
  307. .node.node-sidebar_teaser:hover {
  308. box-shadow: 3pt 12pt 12pt -6pt #0004;
  309. transform: rotate3d(0.9, -0.1, 0.1, 3deg) scale(1.02);
  310. z-index: 42;
  311. }
  312.  
  313. .node.node-teaser.flair-fire:hover,
  314. .node.node-sidebar_teaser.flair-fire:hover {
  315. transform: rotate3d(0.9, -0.1, 0.1, -4.5deg) scale(1.02);
  316. border-color: #f40a;
  317. }
  318.  
  319. .node.node-teaser.flair-star:hover,
  320. .node.node-sidebar_teaser.flair-star:hover {
  321. transform: rotate3d(-0.9, 0.1, -0.2, 4.5deg) scale(1.04);
  322. filter: drop-shadow(-0.2em -0.2em 2em #ffe8);
  323. outline: 0.32em solid #fe8;
  324. border: 0;
  325. border-radius: 0;
  326. }
  327.  
  328. .views-responsive-grid.views-responsive-grid-horizontal.views-columns-2 > * {
  329. margin-bottom: 0;
  330. }
  331.  
  332. .node.node-teaser .icon-bg,
  333. .node.node-sidebar_teaser .icon-bg {
  334. width: 100%!important;
  335. position: unset;
  336. margin-top: 0.4em;
  337. padding: 0;
  338. }
  339.  
  340. .node.node-sidebar_teaser .icon-bg {
  341. min-height: 1.35em;
  342. }
  343.  
  344. .node:hover .icon-bg {
  345. background: unset!important;
  346. }
  347.  
  348. .node.node-teaser .left-icon,
  349. .node.node-sidebar_teaser .left-icon {
  350. color: inherit;
  351. margin-left: 0.1em;
  352. font-size: 0.8em;
  353. filter: unset!important;
  354.  
  355. }
  356.  
  357. .node.node-teaser .right-icon,
  358. .node.node-sidebar_teaser .right-icon {
  359. float: left!important;
  360. color: inherit;
  361. margin-left: 0.5em;
  362. font-size: 0.8em;
  363. filter: unset!important;
  364. }
  365.  
  366. .node-image.node-sidebar_teaser .right-icon:first-of-type {
  367. margin-left: 0;
  368. }
  369.  
  370. .node.node-teaser .left-icon.multiple-icon,
  371. .node.node-sidebar_teaser .left-icon.multiple-icon {
  372. float: right!important;
  373. color: inherit;
  374. margin-left: 0.5em;
  375. font-size: 0.8em;
  376. filter: unset!important;
  377. }
  378.  
  379. .node.node-teaser .left-icon.flair-icon,
  380. .node.node-sidebar_teaser .left-icon.flair-icon {
  381. float: right!important;
  382. color: inherit;
  383. margin-right: 0.1em;
  384. font-size: 0.8em;
  385. filter: unset!important;
  386. }
  387.  
  388. .node.node-teaser .right-icon.like-percentage,
  389. .node.node-sidebar_teaser .right-icon.like-percentage {
  390. margin-left: 0.3em;
  391. }
  392.  
  393. .node.node-teaser h3.title {
  394. width: 100%;
  395. height: 2em;
  396. }
  397.  
  398. .node.node-teaser.flair-lock:hover [title="Flair"],
  399. .node.node-sidebar_teaser.flair-lock:hover [title="Flair"] {
  400. color: #bbbf;
  401. }
  402.  
  403. .node.node-teaser.flair-fire:hover [title="Flair"],
  404. .node.node-sidebar_teaser.flair-fire:hover [title="Flair"] {
  405. color: #f40f;
  406. filter: drop-shadow(0.12em -0.16em 0 #f806) drop-shadow(-0.12em -0.04em 0.06em #fd08);
  407. }
  408.  
  409. .node.node-teaser.flair-star:hover [title="Flair"] {
  410. color: #fd4f;
  411. transform: rotate(18deg) scale(3.2);
  412. filter: drop-shadow(1pt 0.5pt 0.5pt #0002) drop-shadow(-0.04em -0.04em 0.1em #ffd8) drop-shadow(0.08em 0.08em 0.02em #fb0f);
  413. }
  414.  
  415. .node.node-sidebar_teaser.flair-star:hover [title="Flair"] {
  416. color: #fd4f;
  417. transform: rotate(18deg) scale(2.4);
  418. filter: drop-shadow(1pt 0.5pt 0.5pt #0002) drop-shadow(-0.04em -0.04em 0.1em #ffd8) drop-shadow(0.12em 0.12em 0.01em #fb0f);
  419. }
  420.  
  421. .node.node-video.node-teaser.flair-lock:hover > div > div div > a > img,
  422. .node.node-video.node-sidebar_teaser.flair-lock:hover > div div > div > a > img {
  423. filter: grayscale(1);
  424. }
  425.  
  426. .node.node-video.node-teaser.flair-fire:hover > div > div div > a > img,
  427. .node.node-video.node-sidebar_teaser.flair-fire:hover > div > div div > a > img {
  428. filter: sepia(0.3) contrast(1.25) hue-rotate(-15deg) saturate(1.25);
  429. }
  430.  
  431. .node.node-video.node-teaser.flair-star:hover > div > div div > a > img,
  432. .node.node-video.node-sidebar_teaser.flair-star:hover > div > div div > a > img {
  433. filter: sepia(0.5) brightness(1.1) contrast(1.25) saturate(1.5);
  434. }
  435.  
  436. .node.node-teaser .blankimg,
  437. .node.node-sidebar_teaser .blankimg {
  438. display: block;
  439. border: #ccc 0.5pt dashed;
  440. }
  441.  
  442. .node.node-teaser .blankimg a,
  443. .node.node-sidebar_teaser .blankimg a {
  444. filter: opacity(0);
  445. }
  446.  
  447. .video-js .vjs-play-progress:before {
  448. top: -40%;
  449. color: #fffd;
  450. font-size: 1.8em;
  451. box-shadow: 0 8pt 8pt -4pt #0006;
  452. }
  453.  
  454. .video-js .vjs-volume-level:before {
  455. display: none;
  456. }
  457.  
  458. body.front #wrapper > section > .container,
  459. body.page-node-add form,
  460. body.page-node-edit form,
  461. body.page-user-friends #content > .container,
  462. body.page-user-liked #content > .container,
  463. body.page-subscriptions #content > .container,
  464. body.page-my-content #content > .container,
  465. body.page-messages #content > .container,
  466. body.page-user-edit form,
  467. body.page-comment #content > .container,
  468. body.page-forum #content > .container,
  469. body.node-type-video .node.node-video > .content,
  470. body.node-type-image .node.node-image > .content,
  471. #comments,
  472. #add-forum-comment-block,
  473. .region.region-content .view-id-profile,
  474. .node.node-journal,
  475. [class*="block-views"],
  476. .sidebar .block.block-facetapi,
  477. .sidebar .block.block-mainblocks,
  478. .region.region-sidebar .extra-content-block {
  479. background-color: #fafafa;
  480. border: 1px solid #ccc;
  481. border-radius: 4px!important;
  482. padding: 0.8em!important;
  483. margin: 0.5em 0.5em 1em 0.5em!important;
  484. }
  485.  
  486. body.page-user #content {
  487. background-attachment: fixed;
  488. }
  489.  
  490. body.page-user- #content > .container {
  491. background-color: #eee8;
  492. }
  493.  
  494. body.page-user [class*="block-views"],
  495. body.page-user .sidebar .block.block-views,
  496. #block-mainblocks-user-connect,
  497. body.page-user #comments {
  498. background-color: #fafafad0;
  499. }
  500.  
  501. body.page-node-add form,
  502. body.page-node-edit form {
  503. background-color: #ffffff;
  504. }
  505.  
  506. body.front #wrapper > section > .container,
  507. body.page-user-friends #content > .container,
  508. body.page-user-liked #content > .container,
  509. body.page-subscriptions #content > .container,
  510. body.page-my-content #content > .container,
  511. body.page-messages #content > .container,
  512. body.page-user-edit form,
  513. body.page-comment #content > .container,
  514. body.page-forum #content > .container {
  515. margin-left: auto!important;
  516. margin-right: auto!important;
  517. }
  518.  
  519. body.page-forum #content > .container .panel-group > * {
  520. margin-top: 1em;
  521. }
  522.  
  523. body.node-type-video .node.node-video .node-info .node-views .glyphicon.glyphicon-heart,
  524. body.node-type-image .node.node-image .node-info .node-views .glyphicon.glyphicon-heart {
  525. margin-left: 0.5em;
  526. }
  527.  
  528. .node.node-wide_teaser {
  529. padding: 0.8em!important;
  530. margin: 0.5em 0.5em 1em 0.5em!important;
  531. }
  532.  
  533. .forum-post {
  534. margin: 0.5em 0.5em 1em 0.5em!important;
  535. }
  536.  
  537. .forum-post > .panel-heading > .text-muted {
  538. color: #0008;
  539. }
  540.  
  541. body.node-type-video .node.node-video > .content,
  542. body.node-type-image .node.node-image > .content {
  543. padding: 0!important;
  544. }
  545.  
  546. body.node-type-video .node.node-video > .content > .node-buttons,
  547. body.node-type-image .node.node-image > .content > .node-buttons {
  548. margin-bottom: 0;
  549. }
  550.  
  551. body.node-type-video .node.node-video > .content > .well {
  552. max-width: 100%!important;
  553. margin: 0;
  554. }
  555.  
  556. .node-journal #comments {
  557. border: unset;
  558. }
  559.  
  560. .view-profile.view-display-id-block {
  561. background-color: unset;
  562. padding: unset;
  563. box-shadow: unset;
  564. }
  565.  
  566. #block-views-profile-block {
  567. background-color: #fafafa;
  568. box-shadow: 2pt 8pt 8pt -4pt #0004;
  569. }
  570.  
  571. .region.region-sidebar .view-id-profile .views-responsive-grid > .views-row > div img,
  572. .region.region-content .view-id-profile .views-responsive-grid > .views-row > div img {
  573. border-radius: 50%;
  574. overflow: hidden;
  575. border: #0001 0.2em solid;
  576. }
  577.  
  578. h1 {
  579. padding: 0.25em;
  580. margin: 0;
  581. }
  582.  
  583. #comments > h2.title {
  584. padding: 0.4em;
  585. margin-bottom: 0.8em;
  586. }
  587. #add-forum-comment-block > h2,
  588. .extra-content-block {
  589. padding: 0.6em 0;
  590. }
  591. .region.region-sidebar .extra-content-block {
  592. background-color: #0000;
  593. border: 0;
  594. overflow: hidden;
  595. }
  596. .region.region-sidebar .extra-content-block iframe {
  597. transform: translateX(-8.75pt);
  598. }
  599. .extra-content-block > center + br,
  600. body.node-type-video #block-extra-content-extra-content-block-5,
  601. body.node-type-video #block-extra-content-extra-content-block-8 {
  602. display: none;
  603. }
  604. `;
  605. document.head.appendChild(styleOverride);
  606. }
  607. }, true);