Advertisement
TheKoopaKingdom

Header

Apr 11th, 2016
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 4.25 KB | None | 0 0
  1. <style>
  2. /* The Background */
  3. .TKK-Background
  4. {
  5.     /* Light blue background to match top of footer */
  6.     background-color: #0898f8;
  7.     /* We can't have padding all around, because that would affect the footer image.
  8.     Instead, we'll use a margin for the post. For now, we'll just add padding on the top, because
  9.     increasing the top margin from the post class messes things up. */
  10.     padding-top: 24px;
  11. }
  12.  
  13. /* The Post Box */
  14. .TKK-Post
  15. {
  16.     /* Accounting for the absent padding in the background */
  17.     margin-left: 24px;
  18.     margin-right: 24px;
  19.     /* 24px padding inside the post on the top, bottom, and left
  20.     I give the bottom less because that's where the signature would be */
  21.     padding: 24px 24px 10px 24px;
  22.     /* Border is the same color as the background. Since it blends in, it looks cool */
  23.     border-color: #0898f8;
  24.     /* Be making it dashed and 3px, it's more noticible, which I like */
  25.     border-style: dashed;
  26.     border-width: 3px;
  27.     /* Make it rounded */
  28.     border-radius: 10px;
  29. }
  30.  
  31. /* Colors for:
  32.  - Post Box
  33.  - Spoiler Button
  34.  - Spoiler Contents (This gets 2 entrys)
  35.  */
  36. .TKK-Post, .TKK-Post div.spoiler > button, .TKK-Post div.spoilercontents, .TKK-Post div.spoiled
  37. {
  38.     /* Darker blue background. By using the alpha channel, the more we use this
  39.     over the post, the darker it will get
  40.     These will be marked as important for the spoiler contents, ABXD needs it to be there */
  41.     background-color: rgba(0, 55, 157, 0.70) !important;
  42.     /* I would have used the same shade of blue as the background, but
  43.     it ended up being hard to read. So this is a lighter version of the background */
  44.     color: #4ab7ff !important;
  45. }
  46.  
  47. /* Zeldas */
  48. .TKK-Post a
  49. {
  50.     /* I would've included this with the rest of the colors, but
  51.     that would give links a background */
  52.     color: #4ab7ff;
  53. }
  54.  
  55. /* Border for tables */
  56. .TKK-Post table, .TKK-Post th, .TKK-Post td
  57. {
  58.     padding: 5px;
  59.     border: 1px solid #4ab7ff;
  60. }
  61.  
  62. /* Triggered when mouse is above link */
  63. .TKK-Post a:hover
  64. {
  65.     /* Underline text */
  66.     text-decoration: underline;
  67.     /* Add glow */
  68.     text-shadow: 1px 1px 2px black, 0 0 25px blue, 0 0 5px blue;
  69. }
  70.  
  71. /* Triggered when link is clicked */
  72. .TKK-Post a:active
  73. {
  74.     /* Un-Underline text */
  75.     text-decoration: none;
  76. }
  77.  
  78. /* Quotes (Everything under Posted by) */
  79. .TKK-Post div.quotecontents
  80. {
  81.     /* The default white borders look weird, so this makes them fit in
  82.     with the rest of the layout */
  83.     border-color: #4ab7ff;
  84. }
  85.  
  86. /* The spoiler button */
  87. .TKK-Post div.spoiler > button
  88. {
  89.     /* Invisible border */
  90.     border-color: transparent;
  91.     /* Round the top corners */
  92.     border-radius: 10px 10px 0px 0px;
  93. }
  94.  
  95. /* What's spoiled
  96. Kuribo64: stuff like background and border are effective even when unspoiled,
  97. this doesn't effect other sites
  98. This is representing both div.spoiled and div.spoilercontents, because both are used (the latter is used in ABXD) */
  99. .TKK-Post div.spoilercontents, .TKK-Post div.spoiled
  100. {
  101.     /* Invisible border, important is the same deal */
  102.     border-color: transparent !important;
  103.     /* Round the bottom, and top right corners */
  104.     border-radius: 0px 10px 10px 10px;
  105. }
  106.  
  107. /* Code block */
  108. .TKK-Post div.codeblock
  109. {
  110.     /* Same shades as post */
  111.     background: rgba(0, 55, 157, 0.70);
  112.     color: #4ab7ff;
  113.     /* Spacing */
  114.     margin: 24px;
  115.     /* Indent */
  116.     padding: 24px;
  117.     /* Fancy programming fonts */
  118.     font-family: "Inconsolata", "Lucida Console";
  119.     /* Make it rounded */
  120.     border-radius: 10px;
  121. }
  122.  
  123. /* Footer (Not to be confused with the signature) */
  124. .TKK-Footer
  125. {
  126.     /* Load both images */
  127.     background-image:
  128.     url(http://kuribo64.net/get.php?id=K9FH6ICf2Nrq4ILu),
  129.     url(http://kuribo64.net/get.php?id=Klh6cohy9khkPZ6S);
  130.     /* The first image contains Peach's Castle, and the second one doesn't
  131.     We only want to show Peach's Castle once, so we'll not repeat the first image, and repeat the second one
  132.     Obviously, we don't want to repeat on the y axis */
  133.     background-repeat: no-repeat, repeat-x;
  134.     /* Both images should start at the bottom left */
  135.     background-position: bottom left, bottom left;
  136.     /* Scale the image down to save space */
  137.     background-size: 50%;
  138.     /* For short posts, this footer will be stretched out to make sure there's no empty space */
  139.     min-height: 66px;
  140.     /* I don't know why this works :D */
  141.     padding: 60px;
  142. }
  143. </style>
  144. <div class="TKK-Background">
  145. <div class="TKK-Post">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement