Advertisement
wovenstarlight

Discord Chat Workskin CSS

Sep 18th, 2020 (edited)
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 12.16 KB | None | 0 0
  1. /* NO LONGER BEING UPDATED. PLEASE SEE THE GITHUB GIST FOR NEW NEW UPDATES: https://gist.github.com/wovenstarlight/1c00c15ca299b9c70914e65206c8d096
  2.  
  3. Companion paste to my HTML for the Discord AO3 work skin. Be sure to credit @wovenstarlight when using this.
  4. Notable features are annotated in comments, so that you can modify them if you'd like. (I would recommend only modifying the "role color" color attributes, or renaming them from "role#" to something more easily remembered.)
  5.  
  6. HOW TO USE:
  7. - Go to the following link: https://archiveofourown.org/skins/new?skin_type=WorkSkin
  8. - Enter a recognizable name in the Title field, such as "Discord Display".
  9. - Copy everything after the line "Have fun!" and paste it in the "CSS" field, then hit save.
  10. - Edit the work you want to use this skin in. If it's a multi-chapter work, you'll want to edit the entire work, not just a single chapter. Scroll down to the "Associations" section; in the last option, "Select Work Skin", pick the name that you saved this work skin under. Save the work. You will now be able to add in this skin's associated HTML and create Discord windows similar to the preview.
  11.  
  12. For instructions on how to make CUSTOM ROLES, check the very last class in this paste, titled YOUR_ROLE_HERE.
  13.  
  14. THIS WORK SKIN ONLY WORKS IN COMBINATION WITH ITS COMPANION HTML, AVAILABLE HERE: https://pastebin.com/BCUAvjGw
  15.  
  16. Have fun! */
  17.  
  18. /* The overall discord module */
  19. #workskin .discord {
  20.   max-width: 710px;
  21.   margin: auto;
  22.   padding-bottom: 1.286em;
  23.   font-family: "Whitney", Helvetica Neue, "Lucida Grande", "Lucida Sans Unicode", "GNU Unifont", Verdana, Helvetica, Arial, sans-serif;
  24.   border-radius: 8px;
  25.   position: relative;
  26. }
  27.  
  28. /* Background colors for dark and light mode */
  29. #workskin .darkmode {
  30.   background: #36393f;
  31.   color: #dcddde;
  32. }
  33.  
  34. #workskin .lightmode {
  35.   background: #fff;
  36.   color: #2e3338;
  37. }
  38.  
  39. /* Aligning the text messages */
  40. #workskin .discord > div:not(.channel) {
  41.   padding-left: 16px;
  42.   padding-right: 4.5%;
  43. }
  44.  
  45. /* Sizing the icons */
  46. #workskin .discord > div p > img:first-child {
  47.   width: 40px;
  48.   height: 40px;
  49.   border-radius: 100%;
  50. }
  51.  
  52. /* Aligning the individual text messages */
  53. #workskin .discord > .message > p:not(:first-child) {
  54.   margin-top: -4.4em;
  55.   margin-left: 56px;
  56. }
  57.  
  58. /* Making large images in text messages display correctly */
  59. #workskin .discord > .message > p:not(:first-child) img.large {
  60.   width: 400px;
  61. }
  62.  
  63. /* Making usernames underline like links when hovered */
  64. #workskin .discord .name:hover {
  65.     text-decoration: underline;
  66. }
  67.  
  68. /* Alignment and color for system messages */
  69. #workskin .discord .system {
  70.   margin: 0 0 1em;
  71. }
  72.  
  73. #workskin .darkmode .system {
  74.   color: #8e9297;
  75. }
  76. #workskin .lightmode .system {
  77.   color: #6a7480;
  78. }
  79.  
  80. #workskin .discord .system p {
  81.   margin-top: -1.4em;
  82.   margin-left: 56px;
  83. }
  84.  
  85. /* System message: Welcome */
  86. #workskin .discord .system.welcome::before {
  87.   content: '➜';
  88.   color: #43b581;
  89.   font-size: 1.4em;
  90.   top: 2.5px;
  91.   position: relative;
  92.   width: 40px;
  93.   text-align: center;
  94.   display: block;
  95. }
  96.  
  97. /* System message: Pinned message */
  98. #workskin .discord .system.pin::before {
  99.   content: "";
  100.   height: 16px;
  101.   width: 40px;
  102.   display: block;
  103.   background-size: 16px 16px;
  104.   background-repeat: no-repeat;
  105.   background-position: center;
  106. }
  107.  
  108. #workskin .darkmode .system.pin::before {
  109.   background-image: url(https://i.imgur.com/i5GVWY2.png);
  110. }
  111.  
  112. #workskin .lightmode .system.pin::before {
  113.   background-image: url(https://i.imgur.com/wNgXtE5.png);
  114. }
  115.  
  116. /* Colors for dark and light mode; channel headers, default usernames, timestamps, typing bar placeholder */
  117. #workskin .darkmode .name,
  118. #workskin .darkmode .channel .channelname {
  119.   color: #fff;
  120.   font-weight: 600;
  121. }
  122. #workskin .lightmode .name,
  123. #workskin .lightmode .channel .channelname {
  124.   color: #060607;
  125.   font-weight: 600;
  126. }
  127.  
  128. #workskin .darkmode .hash,
  129. #workskin .darkmode > div:last-child .placeholder,
  130. #workskin .darkmode .timestamp {
  131.   color: #72767d;
  132. }
  133. #workskin .lightmode .hash,
  134. #workskin .lightmode > div:last-child .placeholder,
  135. #workskin .lightmode .timestamp {
  136.   color: #747f8d;
  137. }
  138.  
  139. /* Alignment and sizing of channel headers and their content */
  140. #workskin .discord .hash {
  141.   font-size: 24px;
  142.   font-weight: normal;
  143.   padding: 0 1.5%;
  144.   top: 3px;
  145.   position: relative;
  146. }
  147.  
  148. #workskin .discord .channel {
  149.   padding: 4px 12px 8px;    
  150. }
  151.  
  152. #workskin .discord .channel > p {
  153.   margin: -3px 0 3px;
  154.   width: 80%;
  155.   white-space: nowrap;
  156.   overflow: hidden;
  157.   text-overflow: ellipsis;
  158. }
  159.  
  160. #workskin .discord .channel .channelname {
  161.   font-size: 16px;
  162. }
  163.  
  164. #workskin .discord .channel .description {
  165.   font-weight: 500;
  166.   font-size: 14px;
  167.   margin-left: 2%;
  168.   padding: 1% 0 1% 2%;
  169.   border-left: solid thin;
  170. }
  171.  
  172. /* Shading for the channel header */
  173. #workskin .darkmode .channel {
  174.   box-shadow: #2c2f33bd 0 2px 1px;
  175. }
  176.  
  177. #workskin .lightmode .channel {
  178.   box-shadow: #2c2f332e 0 2px 1px;
  179. }
  180.  
  181. /* Colors for the channel description and its border */
  182. #workskin .darkmode .channel > p {
  183.   color: #b9bbbe;
  184. }
  185. #workskin .lightmode .channel > p {
  186.   color: #4f5660;
  187. }
  188.  
  189. #workskin .darkmode .channel .description {
  190.   border-left-color: #ffffff0f;
  191. }
  192. #workskin .lightmode .channel .description {
  193.   border-left-color: #06060714;
  194. }
  195.  
  196. /* The three icons to the right of the channel header. Normal */
  197. #workskin .darkmode .channel > p:not(.newpins)::after {
  198.   background-image: url(https://i.imgur.com/2Jo3bI3.png);
  199. }
  200. #workskin .lightmode .channel > p:not(.newpins)::after {
  201.   background-image: url(https://i.imgur.com/L8KR3n0.png);
  202. }
  203.  
  204. /* The three icons to the right of the channel header. When there are new pins */
  205. #workskin .darkmode .channel > p.newpins::after {
  206.   background-image: url(https://i.imgur.com/GClC6WS.png);
  207. }
  208. #workskin .lightmode .channel > p.newpins::after {
  209.   background-image: url(https://i.imgur.com/xtoAXUx.png);
  210. }
  211.  
  212. #workskin .discord .channel > p::after {
  213.   height: 21px;
  214.   width: 101px;
  215.   background-size: 100px auto;
  216.   content: "";
  217.   background-repeat: no-repeat;
  218.   margin: 13px 10px 10px;
  219.   position: absolute;
  220.   right: 0.7em;
  221. }
  222.  
  223. /* Top-of-channel header: hash symbol */
  224. #workskin .discord .channeltop h1:first-child::before {
  225.   height: 68px;
  226.   width: 68px;
  227.   line-height: 1.3;
  228.   content: '#';
  229.   font-size: 1.5em;
  230.   border-radius: 100%;
  231.   display: block;
  232.   font-weight: 400;
  233.   text-align: center;
  234.   margin-bottom: 8px;
  235.   color: #fff;
  236. }
  237. #workskin .darkmode .channeltop h1::before {
  238.   background-color: #4f545c;
  239. }
  240. #workskin .lightmode .channeltop h1::before {
  241.   background-color: #747f8d;
  242. }
  243.  
  244. /* Top-of-channel header: heading */
  245. #workskin .discord .channeltop h1 {
  246.   font-family: "Whitney", Helvetica Neue, "Lucida Grande", "Lucida Sans Unicode", "GNU Unifont", Verdana, Helvetica, Arial, sans-serif;
  247.   font-weight: 700;
  248.   text-align: left;
  249.   font-size: 32px;
  250.   margin-bottom: 8px;
  251. }
  252. #workskin .darkmode .channeltop h1 {
  253.   color: #ffffff;
  254. }
  255. #workskin .lightmode .channeltop h1 {
  256.   color: #060607;
  257. }
  258.  
  259. /* Top-of-channel header: description */
  260. #workskin .discord .channeltop p {
  261.   padding-bottom: 1em;
  262.   margin-top: 0;
  263.   margin-bottom: 0.5em;
  264.   border-bottom: thin solid;
  265. }
  266. #workskin .darkmode .channeltop p {
  267.   border-bottom-color: #ffffff0f;
  268.   color: #b9bbbe;
  269. }
  270. #workskin .lightmode .channeltop p {
  271.   border-bottom-color: #06060714;
  272.   color: #4f5660;
  273. }
  274.  
  275. /* Colors and decoration for links and pings */
  276. #workskin .discord a {
  277.   border: none;
  278. }
  279. #workskin .discord a:hover {
  280.   text-decoration: underline;
  281. }
  282. #workskin .discord a.ping {
  283.   color: #7289da;
  284. }
  285.  
  286. #workskin .darkmode a {
  287.   color: #00b0f4;
  288. }
  289. #workskin .lightmode a {
  290.   color: #0067e0;
  291. }
  292.  
  293. /* Alignment and sizing of message timestamps */
  294. #workskin .discord .timestamp {
  295.   padding-left: 6px;
  296.   font-size: 75%;
  297. }
  298.  
  299. /* The edited message notice */
  300. #workskin .discord .edited {
  301.   font-size: 0.625rem;
  302.   user-select: none; /* For all others */
  303.   -webkit-user-select: none; /* For Safari */
  304.   -ms-user-select: none; /* For IE */
  305. }
  306. #workskin .darkmode .edited {
  307.   color: #72767d;
  308. }
  309. #workskin .lightmode .edited {
  310.   color: #747f8d;
  311. }
  312.  
  313. /* New date divider */
  314. #workskin .discord .dateline {
  315.   margin: 1.5rem 1rem 0;  
  316.   border-top: thin solid;
  317. }
  318.  
  319. #workskin .discord .dateline p {
  320.   padding: 2px 4px;
  321.   font-size: 12px;
  322.   margin: -1em auto -.75em;
  323.   font-weight: 600;
  324.   width: fit-content;
  325. }
  326. #workskin .discord .dateline p {
  327.   width: -webkit-fit-content;
  328. }
  329. #workskin .discord .dateline p {
  330.   width: -moz-fit-content;
  331. }
  332.  
  333. #workskin .darkmode .dateline {
  334.   border-top-color: #ffffff0f;
  335. }
  336. #workskin .darkmode .dateline p {
  337.   color: #72767d;
  338.   background: #36393f;
  339. }
  340.  
  341. #workskin .lightmode .dateline {
  342.   border-top-color: #06060714;
  343. }
  344. #workskin .lightmode .dateline p {
  345.   color: #747f8d;
  346.   background: #fff;
  347. }
  348.  
  349. /* Alignment and colors for typing bar */
  350. #workskin .discord > div:last-child {
  351.   margin: 0 2.5%;
  352.   padding: 11px;
  353.   border-radius: 8px;
  354. }
  355.  
  356. #workskin .darkmode > div:last-child {
  357.   background: #40444b;
  358. }
  359. #workskin .lightmode > div:last-child {
  360.   background: #ebedef;
  361. }
  362.  
  363. /* Aligning the message in the typing bar, and making it unselectable when placeholder displays */
  364. #workskin .discord > div:last-child > p {
  365.   margin: -1.5em 0 0 45px;
  366.   padding: 0;
  367. }
  368.  
  369. #workskin .discord > div:last-child .placeholder {
  370.   user-select: none; /* For all others */
  371.   -webkit-user-select: none; /* For Safari */
  372.   -ms-user-select: none; /* For IE */
  373. }
  374.  
  375. /* The upload files button in the typing bar */
  376. #workskin .discord > div:last-child > p.upload {
  377.   display: inline-block;
  378.   width: 20px;
  379.   height: 20px;
  380.   border-radius: 100%;
  381.   margin: 0 0 0 8px;
  382. }
  383. #workskin .darkmode > div:last-child > p.upload {
  384.   background: #b9bbbe;
  385. }
  386. #workskin .lightmode > div:last-child > p.upload {
  387.   background: #4f5660;
  388. }
  389.  
  390. #workskin .discord > div:last-child > p.upload::after {
  391.   content: '+';
  392.   font-size: 1.35em;
  393.   display: inline-block;
  394.   margin: -11px 0 0 4px;
  395.   font-weight: 600;
  396. }
  397. #workskin .darkmode > div:last-child > p.upload::after {
  398.   color: #40444b;
  399. }
  400. #workskin .lightmode > div:last-child > p.upload::after {
  401.   color: #ebedef;
  402. }
  403.  
  404. /* For when creator style is turned off */
  405. #workskin .hide {
  406.   display: none;
  407. }
  408.  
  409. /* Default discord role colors, light versions (upper row) */
  410. #workskin .discord .role1 {
  411.   color: #1abc9c !important;
  412. }
  413.  
  414. #workskin .discord .role2 {
  415.   color: #2ecc71 !important;
  416. }
  417.  
  418. #workskin .discord .role3 {
  419.   color: #3498db !important;
  420. }
  421.  
  422. #workskin .discord .role4 {
  423.   color: #9b59b6 !important;
  424. }
  425.  
  426. #workskin .discord .role5 {
  427.   color: #e91e63 !important;
  428. }
  429.  
  430. #workskin .discord .role6 {
  431.   color: #f1c40f !important;
  432. }
  433.  
  434. #workskin .discord .role7 {
  435.   color: #e67e22 !important;
  436. }
  437.  
  438. #workskin .discord .role8 {
  439.   color: #e74c3c !important;
  440. }
  441.  
  442. #workskin .discord .role9 {
  443.   color: #95a5a6 !important;
  444. }
  445.  
  446. #workskin .discord .role10 {
  447.   color: #607d8b !important;
  448. }
  449.  
  450. /* Default discord role colors, dark versions (lower row) */
  451. #workskin .discord .role1a {
  452.   color: #11906a !important;
  453. }
  454.  
  455. #workskin .discord .role2a {
  456.   color: #1f8b4c !important;
  457. }
  458.  
  459. #workskin .discord .role3a {
  460.   color: #206694 !important;
  461. }
  462.  
  463. #workskin .discord .role4a {
  464.   color: #71368a !important;
  465. }
  466.  
  467. #workskin .discord .role5a {
  468.   color: #ad1457 !important;
  469. }
  470.  
  471. #workskin .discord .role6a {
  472.   color: #c27c0e !important;
  473. }
  474.  
  475. #workskin .discord .role7a {
  476.   color: #a84300 !important;
  477. }
  478.  
  479. #workskin .discord .role8a {
  480.   color: #992d22 !important;
  481. }
  482.  
  483. #workskin .discord .role9a {
  484.   color: #979c9f !important;
  485. }
  486.  
  487. #workskin .discord .role10a {
  488.   color: #546e7a !important;
  489. }
  490.  
  491. /* CUSTOM ROLE GUIDE
  492. Edit the text YOUR_ROLE_HERE to another name.
  493. For example, a role named "support" would read as follows: #workskin .discord .support
  494. Make sure not to delete the dot before the role name! */
  495. #workskin .discord .YOUR_ROLE_HERE {
  496.   color: #ffffff !important;          /* This color- #ffffff, the hex code for white- can be changed to whatever you'd like.
  497.   color: rgb(255,255,255) !important; <-- You can also do RGB colors, if you'd prefer!
  498.                                       Just replace the hex code in the line above with rgb(#,#,#) instead.
  499.                                       Make sure not the delete the "!important" marker! */
  500. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement