wovenstarlight

System Window CSS

Sep 18th, 2020 (edited)
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 4.97 KB | None | 0 0
  1. /* Companion paste to my HTML for the System Window AO3 work skin. Be sure to credit @wovenstarlight when using this.
  2. Notable features are annotated in comments, so that you can modify them if you'd like.
  3. Feel free to adapt this skin for your own fandom. However, if you borrow any of the HTML/CSS for this, YOU MUST CREDIT ME.
  4.  
  5. HOW TO USE:
  6. - Go to the following link: https://archiveofourown.org/skins/new?skin_type=WorkSkin
  7. - Enter a recognizable name in the Title field, such as "System Windows".
  8. - Copy everything after the line "Have fun!" and paste it in the "CSS" field, then hit save.
  9. - 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 system windows similar to the preview.
  10.  
  11. THIS WORK SKIN ONLY WORKS IN COMBINATION WITH ITS COMPANION HTML, AVAILABLE HERE: https://pastebin.com/nPdr50bc
  12.  
  13. Have fun! */
  14.  
  15. /* All windows */
  16. #workskin .window {
  17.   background: #004b79cc; /* The background. Slightly transparent to mimic what a real window might look like. */
  18.   color: #eaeaea; /* The regular text color */
  19.   width: 80%;
  20.   margin: 1.5em auto;
  21.   border: 0.2em #c9ffff ridge;
  22.   box-shadow: 0 0 1em 0.4em #84eaeabf; /* The glow around the border. Make it a slightly different shade from the border to make it stand out */
  23.   max-width: 750px;
  24.   font-family: Trebuchet MS, sans-serif;
  25. }
  26.  
  27. #workskin .window p {
  28.   margin: 0;
  29.   text-shadow: 0px 1px 4px #250833bf;
  30. }
  31.  
  32. /* Menu bar. If you don't want any title such as "Message Window", don't assign any class to the first <p> element, leaving it empty. */
  33. #workskin .window > p:first-child {
  34.   padding: 0.6em 1em;
  35.   border-bottom: 0.2em #c9ffff ridge;
  36.   margin: 0;
  37.   min-height: 23px;
  38.   font-variant: small-caps;
  39.   background: #002f4dcc;
  40. }
  41. #workskin .window > p:first-child {
  42.   background: linear-gradient(#054c6780 2%,#002f4dcc 50%,#00071680 90%);
  43. }
  44.  
  45. /* Headings for the various types of windows */
  46. #workskin .announce::before {
  47.   content: "Announcement Window";
  48. }
  49.  
  50. #workskin .message::before {
  51.   content: "Message Window";
  52. }
  53.  
  54. #workskin .status::before {
  55.   content: "Status Window";
  56. }
  57.  
  58. #workskin .reward::before {
  59.   content: "Reward Window";
  60. }
  61.  
  62. #workskin .info::before {
  63.   content: "Information Window";
  64. }
  65.  
  66. #workskin .inventory::before {
  67.   content: "Inventory";
  68. }
  69.  
  70. #workskin .itemwin::before {
  71.   content: "Item Window";
  72. }
  73.  
  74. /* "Glitched" versions of the window headers. Use if you want to fake a system error */
  75. #workskin .announceglitch::before {
  76.   content: "An̴̺͛no̶̤͝unçemẹ̵͍́́nt Wĭn̷͖͐doш";
  77. }
  78.  
  79. #workskin .messageglitch::before {
  80.   content: "Mešsâ̸̛̤g̵e Wind¤w";
  81. }
  82.  
  83. #workskin .statusglitch::before {
  84.   content: "§tatu̴s Wi̵ndow̷͚͑";
  85. }
  86.  
  87. #workskin .rewardglitch::before {
  88.   content: "R̸e̴warɗ Win̷d̶͈̥̎ow";
  89. }
  90.  
  91. #workskin .infoglitch::before {
  92.   content: "Info̸͛r̸̝̋mat̵̤̆io̶n W̷i̴ndoຝ";
  93. }
  94.  
  95. #workskin .inventoryglitch::before {
  96.   content: "I⊓ven̸t̷o̶ry";
  97. }
  98.  
  99. #workskin .itemwinglitch::before {
  100.   content: "Iτem̴̟̑͜ Winɗow";
  101. }
  102.  
  103. /* The minimize/resize/close buttons in the menu bar */
  104. #workskin .window > p:first-child::after {
  105.   content: "—\00A0\00A0\00A0\00A0✖";
  106.   float: right;
  107.   cursor: pointer;
  108. }
  109.  
  110. /* Aligning and centering the actual window content; this is the text that'll display in the main body */
  111. #workskin .windowcontent,
  112. #workskin .items {
  113.   text-align: center;
  114.   box-shadow: 0 7px 15px -3px inset #00225875;
  115. }
  116.  
  117. #workskin .windowcontent {
  118.   padding: 1em;
  119. }
  120.  
  121. /* For headings */
  122. #workskin .wintitle {
  123.   font-size: 110%;
  124.   font-weight: bold;
  125.   color: #88ffd8;
  126. }
  127.  
  128. /* Styling the stats in the Status Window */
  129. #workskin .stat p {
  130.   display: inline-block;
  131.   min-width: 5em;
  132.   padding: 0.1em 3%;
  133.   background: rgba(255,255,255,0.2);
  134.   margin: 0.2em 0;
  135. }
  136.  
  137. #workskin .stat p:nth-child(2n) {
  138.   background: rgba(255, 255, 255, 0.3);
  139. }
  140.  
  141. /* The individual items in the Inventory and Item Windows. Equivalent of .windowcontent */
  142. #workskin .items {
  143.   padding: 0.5em;
  144. }
  145.  
  146. #workskin .items > p:not(:last-of-type) {
  147.   border-bottom: 0.2em #c9ffff ridge;
  148. }
  149.  
  150. #workskin .items > p {
  151.   margin: 0;
  152.   padding: 0.4em;
  153.   transition: 0.3s;
  154. }
  155.  
  156. #workskin .items > p:hover {
  157.   background: #2badb333; /* Background color when items are hovered over */
  158.   color: #88ffd8; /* Font color when items are hovered over */
  159. }
  160.  
  161. /* The highlighting for skill ranks and item counts */
  162. #workskin .skillrank,
  163. #workskin .itemcount {
  164.   font-size: 80%;
  165.   font-style: italic;
  166.   color: #5ff; /* Font color- bright blue to stand out against the background and body text */
  167. }
  168.  
  169. #workskin .itemcount {
  170.   padding: 0 0.3em;
  171. }
  172.  
  173. /* For hiding elements that are needed when creator's style is disabled */
  174. #workskin .hide {
  175.   display: none;
  176. }
Add Comment
Please, Sign In to add comment