Advertisement
Guest User

Times New Roman CSS 4chan

a guest
May 23rd, 2018
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.23 KB | None | 0 0
  1. html {
  2. box-sizing: border-box;
  3. /* font metrics */
  4. --font: "times new roman";
  5. --titlefont: "times new roman";
  6. --codefont: "fira code";
  7. --fullheight: 1.1074218751; /*line without gap*/
  8. --fmcap: 0.662109375;
  9. --asc: 0.8911132813;
  10. --des: 0.2163085938;
  11. --gap: 0.04248046875;
  12. --lineh: 1.4;
  13. --reg: 350;
  14. --light: 650;
  15. --links: 200;
  16. --ind: -0.5639648438em;
  17.  
  18. /* settings */
  19. --lines: 6; /*how many lines fit fully into image height*/
  20. --img: 125px; /*image field height*/
  21. --img2x: 250px;
  22.  
  23. /*
  24. long formula for caps
  25. */
  26. --cap: calc(var(--img) * var(--fmcap) / ((var(--lines) - 1) * var(--lineh) + var(--fmcap)));
  27. /* compute needed values */
  28. --computedFontSize: calc(var(--cap) / var(--fmcap));
  29. --realsize: var(--computedFontSize) * var(--fullheight); /*in case 1em doesn't equal normal line-heght*/
  30.  
  31.  
  32. /*set properties*/
  33. font-family: var(--font);
  34. font-size: var(--computedFontSize);
  35. /* force chosen line-height*/
  36. --realline: calc(var(--lineh) * var(--computedFontSize));
  37. line-height: var(--realline);
  38.  
  39. /*this is up, down and overall leading*/
  40. --ulead: calc((var(--realline) - var(--realsize)) / 2 + var(--computedFontSize) * (var(--asc) - var(--fmcap)));
  41. --dlead: calc((var(--realline) - var(--realsize)) / 2 + var(--computedFontSize) * var(--des));
  42. --lead: calc(var(--realline) - var(--cap));
  43.  
  44. /*thicker ver-s for padding replies*/
  45. --upad: calc(var(--ulead) + var(--realline));
  46. --dpad: calc(var(--dlead) + var(--realline));
  47. --pad: calc(var(--lead) + var(--realline));
  48.  
  49.  
  50. /*DOUBLE SIZE*/
  51. /*--2xsize: calc((var(--realline) + var(--cap)) / var(--fmcap));*/
  52. --2xsize: var(--computedFontSize);
  53. --title: calc((var(--realline) * 2 + var(--cap)) / var(--fmcap));
  54.  
  55. /*width for ~55 symbols*/
  56. --wid: calc(var(--computedFontSize) * 30);
  57. --widblock: calc(var(--computedFontSize) * 20);
  58.  
  59. /*BG color*/
  60. --bgcolor: #f2f2f2;
  61.  
  62. /*this is border radius*/
  63. --rad: calc(var(--pad) / 2);
  64. }
  65.  
  66. /*overwrite Safari buttons etc. sheet*/
  67. input, textarea, keygen, select, button {
  68. -webkit-appearance: none;
  69. font-family: var(--font);
  70. font-size: var(--computedFontSize);
  71. line-height: var(--realline);
  72. }
  73. button {
  74. padding: 0 var(lead);
  75. margin: 0;
  76. background-color: #dedede;
  77. text-shadow: 0 0.5px #fff, 0 1px #fff;
  78. }
  79. /*all the nav links and such*/
  80. div#boardNavDesktop, div#boardNavDesktopFoot, div#boardNavDesktopFoot, span.stylechanger {
  81. font-family: inherit;
  82. font-size: inherit;
  83. line-height: inherit;
  84. }
  85.  
  86. #bannerCnt {
  87. display: none; /*to hell with it*/
  88. border: 3.5px solid #000;
  89. border-left: none;
  90. border-right: none;
  91. margin: 2px auto 5px;
  92. }
  93.  
  94. div.boardBanner>div.boardTitle {
  95. font-family: var(--titlefont);
  96. letter-spacing: 0.025em;
  97. font-size: var(--title);
  98. font-stretch: ultra-condensed;
  99. font-weight: 950;
  100. color: #000;
  101. line-height: calc(var(--realline) * 3);
  102. vertical-align: top;
  103. text-transform: lowercase;
  104. font-variant-caps: all-small-caps;
  105. }
  106.  
  107. div.adg-rects {
  108. display: none;
  109. }
  110.  
  111. #togglePostFormLink {
  112. font-size: inherit;
  113. }
  114.  
  115. thead {
  116. display: none;
  117. }
  118.  
  119. table {
  120. border-spacing: 0;
  121. }
  122.  
  123. .extButton {
  124. height: 19px;
  125. }
  126.  
  127. #blotter td {
  128. vertical-align: baseline;
  129. font-size: inherit;
  130. }
  131.  
  132. #quickReply, #qrepHeader, #qrHeader, #quickReply textarea, #quickReply #recaptcha_response_field {
  133. font-family: var(--font);
  134. font-size: var(--computedFontSize);
  135. line-height: var(--realline);
  136. color: #000;
  137. }
  138.  
  139. .postblock {
  140. border: none;
  141. background: none;
  142. }
  143.  
  144. #qrepHeader, #qrHeader, .panelHeader {
  145. margin: 0;
  146. padding: 0;
  147. height: unset;
  148. font-family: var(--titlefont);
  149. line-height: var(--realline);
  150. text-align: left;
  151. }
  152.  
  153. /* M A I N
  154. P A R T */
  155.  
  156. body {
  157. background: var(--bgcolor);
  158. font-family: inherit;
  159. font-size: inherit;
  160. /*font-stretch: ultra-expanded;*/
  161. font-weight: inherit;
  162. line-height: var(--realline);
  163. padding: 0 5em var(--cap) var(--cap);
  164. margin: 0;
  165. }
  166.  
  167. div.post
  168. {
  169. padding: inherit;
  170. -webkit-hyphens: auto;
  171. overflow: visible;
  172. }
  173.  
  174. div.post.reply {
  175. /*box-shadow: 0 -9px 6px -8px rgba(0,0,0,0.4);*/
  176. }
  177.  
  178. div.op {
  179. display: table;
  180. }
  181.  
  182. div.post.op blockquote.postMessage {
  183. padding: 0;
  184. margin: 0 0 calc(var(--upad) + var(--cap)) 0;
  185. }
  186.  
  187. div.post.reply, div.op {
  188. display: grid;
  189. grid-template-columns: var(--img) var(--wid);
  190. grid-template-rows: max-content max-content auto;
  191. grid-template-areas: ".... info" "... file" "pic text";
  192. grid-gap: 0 var(--realline);
  193. border: none;
  194. color: #000;
  195. background-color: var(--bgcolor);
  196. margin: var(--realline) auto;
  197. padding: 0 0;
  198. overflow: visible; /*to prevent expanded image from clipping*/
  199. }
  200.  
  201. div.post.op {
  202. grid-template-columns: var(--img2x) var(--wid);
  203. margin-top: 0;
  204. }
  205.  
  206. div#quickReply {
  207. width: auto;
  208. }
  209.  
  210. div.post div.postInfo {
  211. grid-area: info;
  212. width: auto;
  213. line-height: var(--realline);
  214. hanging-punctuation: first last;
  215. font-variant-numeric: oldstyle-nums;
  216. }
  217.  
  218. div.post div.postInfo * {
  219. letter-spacing: 0;
  220. }
  221.  
  222. .post-hidden:not(.thread) .postInfo {
  223. padding: 0;
  224. }
  225.  
  226.  
  227. div.post blockquote {
  228. margin: 0;
  229. padding: 0;
  230. grid-area: text;
  231. width: var(--widblock);
  232. font-weight: var(--reg);
  233. font-variant-numeric: oldstyle-nums;
  234. }
  235.  
  236. .post.reply:target, .post.reply.highlight, .preview {
  237. border: none !important;
  238. margin: var(--realline) 0 !important;
  239. padding: 0 !important;
  240. background: #dbd9ff !important;
  241. }
  242.  
  243. .preview, div#quickReply {
  244. box-shadow: var(--realline) var(--realline) 8px -2.5px rgba(0,0,0,0.5), -19px -19px 8px -2.5px rgba(0,0,0,0.5);
  245. }
  246.  
  247. .post.reply:target div.postInfo, .post.reply.highlight div.postInfo, .post.reply.preview div.postInfo {
  248. background: #b9b7dd;
  249. }
  250.  
  251.  
  252.  
  253. blockquote>span.quote {
  254. display: inline-block;
  255. text-indent: var(--ind);
  256. color: #039e4c;
  257. }
  258.  
  259.  
  260. /*top part of post*/
  261.  
  262. div.post div.postInfo {
  263. color: #000;
  264. font-weight: var(--light);
  265. /*white-space: nowrap;*/
  266. }
  267.  
  268. span.subject {
  269. display: block;
  270. font-stretch: condensed;
  271. font-weight: 950;
  272. letter-spacing: 1em;
  273. }
  274.  
  275. div.post div.postInfo, div.backlink
  276. {
  277. width: var(--wid);
  278. padding: 0;
  279. }
  280.  
  281. div.post div.postInfo span.nameBlock span.name {
  282. /*display: none;*/
  283. color: inherit;
  284. font: inherit;
  285. }
  286.  
  287. span.postNum a {
  288. font-weight: var(--light);
  289. }
  290.  
  291. div.backlink {
  292. font-size: inherit !important;
  293. }
  294.  
  295. .quoteLink, .quotelink, .deadlink {
  296. color: #ff0000 !important;
  297. display: inline-block;
  298. font-stretch: condensed;
  299. font-weight: var(--links);
  300. /*font-style: oblique;*/
  301. text-decoration: none;
  302. text-indent: calc(var(--ind) * 2);
  303. }
  304.  
  305. .backlink span {
  306. padding: 0;
  307. margin: 0;
  308. /*transform: rotate(90deg);*/
  309. display: inline-block;
  310. /*width: 1em;*/
  311. }
  312.  
  313. .backlink a {
  314. font-weight: var(--links);
  315. color: navy !important;
  316. text-indent: 0;
  317. }
  318.  
  319. a.postMenuBtn {
  320. float: right;
  321. margin-left: 0;
  322. line-height: inherit;
  323. }
  324.  
  325. div.post div.file {
  326. grid-area: pic;
  327. display: contents;
  328. }
  329. /*fix for hidden posts image and filename displaying*/
  330. div.post-hidden div.file .fileThumb, div.post-hidden div.file div.filetext {
  331. display: none;
  332. }
  333.  
  334. div.fileText {
  335. color: #000;
  336. grid-area: file;
  337. font-weight: var(--light);
  338. }
  339.  
  340. div.post.reply input {
  341. -webkit-appearance: checkbox;
  342. float: right;
  343. }
  344.  
  345. #settingsMenu input {
  346. -webkit-appearance: checkbox;
  347. }
  348.  
  349.  
  350.  
  351.  
  352.  
  353. div.post div.file a.fileThumb {
  354. grid-area: pic;
  355. width: auto;
  356. height: auto;
  357. max-width: 125px;
  358. margin: 0;
  359. }
  360. .post.op img {
  361. margin: 0;
  362. }
  363.  
  364. .post.reply img {
  365. max-width: var(--img);
  366. max-height: var(—img);
  367. margin: var(--ulead) 0 var(--dlead);
  368. }
  369.  
  370. hr {
  371. display: none;
  372. }
  373.  
  374. div.sideArrows {
  375. position: absolute;
  376. color: #000;
  377. }
  378.  
  379. .navLinks {
  380. margin: 0;
  381. padding: 0;
  382. font-stretch: ultra-condensed;
  383. overflow-y: hidden;
  384. font-variant-caps: all-small-caps;
  385. }
  386.  
  387. div.thread-stats {
  388. color: #000;
  389. font-stretch: ultra-expanded;
  390. }
  391.  
  392. .navLinks a, div#ctrl-top a, .open-qr-wrap {
  393. text-transform: uppercase;
  394. line-height: var(--realline);
  395. vertical-align: top;
  396. font-size: var(--computedFontSize);
  397. }
  398.  
  399. .open-qr-wrap {
  400. display: inline;
  401. text-align: left;
  402. width: unset;
  403. position: static;
  404. margin-left: unset;
  405. left: unset;
  406. }
  407.  
  408. .navLinks:not(.navLinksBot) > a:nth-child(1), .navLinksBot > a:nth-child(2)
  409. {
  410. display: none;
  411. }
  412.  
  413.  
  414. div#boardNavDesktopFoot .boardList, div#boardNavDesktopFoot .customBoardList, div#boardNavDesktop .boardList, div#boardNavDesktop .customBoardList, .navLinks
  415. {
  416. /*letter-spacing: -2em;*/
  417. }
  418.  
  419. div#boardNavDesktopFoot .boardList *, div#boardNavDesktopFoot .customBoardList *, div#boardNavDesktop .boardList *, div#boardNavDesktop .customBoardList *, .navLinks *
  420. {
  421. letter-spacing: 0;
  422. }
  423.  
  424. .thread-stats {
  425. font-size: var(--computedFontSize);
  426. }
  427.  
  428. div#boardNavDesktopFoot .boardList a, div#boardNavDesktopFoot .customBoardList a, div#boardNavDesktop .boardList a, div#boardNavDesktop .customBoardList a
  429. {
  430. outline: 1px solid #000;
  431. font-weight: 950;
  432. font-stretch: ultra-expanded;
  433. text-decoration: underline;
  434. background: #ccc;
  435. font-size: var(--2xsize);
  436. }
  437.  
  438. div#footer-links {
  439. margin: 0;
  440. }
  441.  
  442. .dd-menu {
  443. font-size: inherit;
  444. line-height: inherit;
  445. }
  446.  
  447. .thread-stats
  448. {
  449. outline: 1px solid #000;
  450. }
  451.  
  452. span#navbotright a {
  453. outline: 1px solid #000;
  454. }
  455.  
  456. textarea#customCSSBox {
  457. font-family: var(--codefont);
  458. font-size: var(--computedFontSize);
  459. line-height: var(--realline);
  460. overflow: visible;
  461. }
  462.  
  463. .settings-tip {
  464. font-size: inherit;
  465. line-height: inherit;
  466. margin: 0;
  467. }
  468.  
  469. #absbot {
  470. display: none;
  471. }
  472.  
  473. div.post-hidden div.file, div.post-hidden blockquote.postMessage {
  474. display: none;
  475. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement