Guest User

Booru.org Yotsuba A Theme

a guest
Aug 5th, 2021
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 17.09 KB | None | 0 0
  1. /* Theme based on Yotsuba A, modified from holobooru theme by sHaHaHark */
  2. *, *::before, *::after {margin:0; padding:0; box-sizing: border-box;}
  3. html {font-size:100%;}
  4. .space br {display:none;}
  5.  
  6. body {padding:0 5px; font: 100% Arial, 'Yu Gothic', sans-serif;background:#ffe url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADICAIAAACmkByiAAAAWElEQVR4AaWSwQ3AIAwDbfbfpdt0nKrPUp3QCfHgkfjsCMh47mskmU5HGvbmuuh9dVce8M4it/SfMZglGeZx/ccyu/Vsv4/N29f331AY5Bi3+hdo4A92+wXvCwR9mXztrAAAAABJRU5ErkJggg==") top center repeat-x;color:#380900;line-height:1.33em;}
  7. /*for mobile*/ html,body {text-size-adjust: none;-webkit-text-size-adjust: none;-moz-text-size-adjust: none;-ms-text-size-adjust: none;}
  8. /*special links*/
  9. [href*="uname="] {font-weight:700; color:#117743;}
  10. [href*="page=post&s=add"] {font-size:0;}
  11. a[href*="page=post&s=add"]:before {font-size:16px!important; content:'Upload';}
  12. a { text-decoration:none; color:#00e; transition:0.15s ease-in-out}
  13. .body a, .comment div a {text-decoration: underline; color:#00e;}
  14. /*text*/
  15. [style*="color: #ff0000;"] {color:#cc1105!important;}
  16. h1, h2, h3, h4, h5, h6 {color:maroon; margin:0.5em 0;}
  17. h1 {font-size:1.618em; letter-spacing:-0.04em;}
  18. h2 {font-size:1.333em; letter-spacing:-0.033em;}
  19. h3, h4, h5, h6 {font-size:1.1em; letter-spacing:-0.025em;}
  20. p {margin-bottom:1em;}
  21. small {font-size:0.677em; letter-spacing:0.0333em;}
  22. code {font-size:17px; color:#006ffa;}
  23. /*admin colors*/
  24. [href$="uname=refinder"] {color:#cc1105;}
  25. [href$="uname=refinder"]::after {content:' ## Admin \0000A0\01F340\00FE0E';}
  26. a:hover {color:red;}
  27. [href$="uname=refinder"]:hover {color:#117743;}
  28. .body a:hover, .comment div a:hover {color:#cc1105;}
  29.  
  30. /*upload form*/
  31. [enctype="multipart/form-data"] table tbody tr:first-child td:last-child {display:none;}
  32. [enctype="multipart/form-data"] {max-width:900px; margin:0 auto 8em;}
  33. [enctype="multipart/form-data"] ul {display:none;}
  34.  
  35. /*index*/
  36. #header {display:flex; align-items:center; margin:0 auto 1em; padding:0 20px;}
  37. #header h2 {font-family:Tahoma;}
  38. #header h2 a {padding:11px 10px;}
  39. #header a {color:maroon;}
  40. #header a:hover {color:red;}
  41. #header strong {color:#cc1105;}
  42. #header strong:hover {color:red;}
  43. #navbar {line-height:1.618em; font-family:Verdana; font-size:12px; margin:0 30px;}
  44. ul {list-style:none;}
  45. #navbar li {display:inline; color:maroon;}
  46. #navbar li:first-child::before {content:'[\00a0';}
  47. #navbar li::after {content:'\00a0/';}
  48. #navbar li:nth-child(5) a::after {content:'\00a0& FAQ';}
  49. #navbar li:nth-child(n+9)::after {content:none;}
  50. #navbar li:nth-child(8)::after {content:'\00a0]';}
  51. li#notice {font-weight:bold; color:#cc1105;}
  52.  
  53. /*sidebar and thumbnail container*/
  54. #content {max-width:1200px; margin:1em auto;}
  55. #post-list {
  56.   display:grid;
  57.   grid-template:"side cont" 150px
  58.                 "side cont" 55px
  59.                 "side cont" auto / 290px auto;
  60.   justify-content: center;
  61.   grid-column:2/3;
  62. }
  63. /*sidebar*/
  64. .sidebar {min-width:250px; grid-area:side; height:min-content; border:1px solid #d9bfb7;}
  65. #tag_list {font-size:14px;}
  66. #tag_list>ul>li>a:nth-child(1) {background:none; margin-right: 3px;}
  67. #tag_list>ul>li>a:nth-child(2) {background:none;}
  68. li span a, .col3 a {color:#291510; padding:1px 4px; background-color:#f0e0d6;}
  69. li span a::before, .col3 a::before {content:''; width:100%; height:100%;}
  70. .space {padding:0.5em;}
  71. a[href*="meta:"], a[href*="meta%3A"], a[href*="source_request"], a[href*="tagme"], a[href*="translation_request"], a[href*="translated"], a[href$="s=2003"], a[href$="s=2004"], a[href$="s=2005"], a[href$="s=2006"], a[href$="s=2007"], a[href$="s=2008"], a[href$="s=2009"], a[href$="s=2010"], a[href$="s=2011"], a[href$="s=2012"], a[href$="s=2013"], a[href$="s=2014"], a[href$="s=2015"], a[href$="s=2016"], a[href$="s=2017"], a[href$="s=2018"], a[href$="s=2019"], a[href$="s=2020"], a[href$="s=2021"], a[href$="s=2022"], a[href$="s=2023"], a[href$="s=2024"], a[href$="s=2025"], a[href$="s=2026"], a[href$="s=2027"], a[href$="s=2028"], a[href$="s=2029"], a[href$="s=2030"], a[href$="s=animated"], a[href$="s=gif"], a[href$="s=apng"], a[href$="s=jpeg"], a[href$="s=png"], a[href$="s=lowres"], a[href$="s=highres"], a[href$="s=absurdres"], a[href$="s=incredibly_absurdres"], a[href$="s=huge_filesize"], a[href$="s=tall_image"], a[href$="s=wide_image"] {background-color:#ea9e89;}
  72. a[href*="artist:"], a[href*="_(artist)"], a[href*="artist%3A"], a[href*="_%28artist%29"], a[href*="artist_request"] {background-color: #f46c79;}
  73. a[href*="char:"], a[href*="char%3A"], a[href*="_(cosplay)"], a[href*="_%28cosplay%29"], a[href*="_(character)"], a[href*="_%28character%29"], a[href*="character_request"] {background-color: #48b977;}
  74. a[href*="series:"], a[href*="series%3A"], a[href*="copyright_request"], a[href*="_(series)"], a[href*="_%28series%29"] {background-color: #9b90d5;}
  75. li span a:hover, .col3 a:hover {filter: brightness(125%); color:#4b5b5e;}
  76. li span a[href*="group:"]:hover, .col3 a[href*="group%3A"]:hover {color:#f1fff3;}
  77. /*inputs*/
  78. input[type=text] {padding:6px; background-color:; font-family:Arial; border:1px solid #aaa; border-radius:3px; box-shadow: inset 0 2px 3px rgba(0,0,0,0.2);}
  79. input[type=text]:focus {outline:none;border-color:#ea8;}
  80.  
  81. input#tags, input#stags {background-color:;width:140px;border-radius: 3px 0 0 3px;}
  82. input#tags:focus, input#stags:focus, td input[type=text]:focus {}
  83.  
  84. input[type=submit], #footer a[href$="help/"], a[href*="page=post&s=add"]:before, [onclick*=\000027up\000027\000029], a[onclick*="new_topic"] {padding:6px 6px; border:1px solid #bbbbbb!important; box-shadow:inset 0 1px 0 rgb(255 255 255 / 20%), 0 1px 2px rgb(0 0 0 / 5%); border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25)!important; border-radius:4px; transition:0.15s ease-in-out; background-color:#94766d!important;color:#ddd;font-weight: bold;outline:none;}
  85. [onclick*=\000027up\000027\000029] {margin-right: 3px;padding:3px 6px;}
  86. input[type=submit]:hover, #footer a:hover[href$="help/"], a:hover[href*="page=post&s=add"]:before, a[onclick*=\000027up\000027\000029]:hover, a[onclick*="new_topic"]:hover {background:#695f5c!important; cursor:pointer;color:#ddd;}
  87. input[type=submit]:active, #footer a:active[href$="help/"], a:active[href*="page=post&s=add"]:before, a[onclick*=\000027up\000027\000029]:active, a[onclick*="new_topic"]:active {outline:0; box-shadow:inset 0 2px 4px rgb(0 0 0 / 15%), 0 1px 2px rgb(0 0 0 / 5%); border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);}
  88. #navbar li:nth-child(5) a:hover {filter:brightness(115%);}
  89. #tags ~ input, #stags ~ input {margin-left: -4.5px;width:auto!important;border-radius: 0 3px 3px 0;font-family:Arial;}
  90.  
  91. input[type=radio] {margin-left:1em;}
  92. td input[type=text] {/*background-color:#4a5b4d;*/}
  93. td input[type=submit] {border-radius:3px;}
  94. textarea {padding:6px; border-radius:3px; box-shadow: inset 0 2px 3px rgba(0,0,0,0.2); font-family:Arial, sans-serif; line-height:1.414em; font-size:15px; letter-spacing:0.033em;}
  95. textarea:focus {border-color:#ea8; outline:none;}
  96. #edit_form input[type=submit] {margin-bottom:1.5em;}
  97. #my-tags {word-break:break-all;}
  98. /*tag list*/
  99. #tag_list {padding:0.5em;}
  100. #tag_list ul {word-break:break-all;}
  101. #tag_list li span {color:#a78f8a!important;}
  102.  
  103. /*thumbnails and controls*/
  104. div.content {grid-area:cont; margin:0 .5em .5em .5em; padding:0 .5em .5em .5em;}
  105. #post-list .content > div {
  106.   text-align:center;
  107.   max-width:875px;
  108.   float:none!important;
  109.   display:grid;
  110.   grid-template: "pages" auto
  111.   "foot" auto
  112.   "thumb" auto
  113.   "ignore" auto
  114.   "ads2" auto
  115.   "ads" auto / 100%;
  116. }
  117. #post-list .content > div br {display:none;}
  118. span.thumb {height: 180px;width: 180px;display: inline-block;float: left;text-align: center;vertical-align: middle;}
  119. span.thumb img {box-shadow:0px 0px 2px #888; transition:0.15s ease;}
  120. img[title ~= "animated"] {border:4px solid #1082f3;}
  121. span.thumb img:hover, .col1 img:hover {transform:scale(1.03, 1.03); box-shadow:0 5px 4px #bbb;}
  122. .thumb+script+div+script+#paginator {clear:both;}
  123. #post-list span.thumb {height: 165px;width: 165px;margin: 5px;display: inline-flex;text-align: center;align-items: center;justify-content: center;vertical-align: middle;float:none;}
  124. .divTable {grid-area:ads2; width:auto!important;}
  125. .divTable + div {display:none;}
  126. #post-list .content div:nth-child(3) {grid-area:thumb;}
  127. #post-list .content div:nth-child(6) {grid-area:ignore; margin:1em 0 8em !important;}
  128. #comment_form+script+div, #new_topic+script+div {margin-top:8em!important;}
  129. #paginator {grid-area:pages; background:#f0e0d6; border:1px solid #d9bfb7; border-top:none; border-left:none; padding:2px; margin:0; display:flex; flex-wrap:wrap; justify-content:center;}
  130. #footer {grid-area:foot; margin:0 0 20px; padding:7px; text-align:center; color:#ccc;}
  131. center {grid-area:ads;}
  132.  
  133. div#paginator a, #paginator b {padding: 0 14px;line-height: 34px;border: 1px solid #dddddd; background:#fff;}
  134. #paginator a:hover, #paginator b {color:#ff1163;background-color:#c7eefe;}
  135.  
  136. /*post pages*/
  137. #post-view {margin:0 auto; max-width:1125px;}
  138. #post-view .sidebar {width:250px; float:left; margin-right:1em;}
  139. #image {max-width:100%; margin-right:0!important; margin-bottom:0.5em;}
  140. #right-col > div {
  141.   float:none!important;
  142.   display:grid;
  143.   grid-template:"notes" auto
  144.   "ads2"auto/100%;
  145. }
  146. #right-col > div:nth-child(2) {display:none;}
  147. #right-col > div:nth-child(3) {grid-area:notes;}
  148. div#note-container {position:relative;}
  149. div#post-view div.note-box {position: absolute;border: 1px solid black;width: 150px;height: 150px;cursor: move;background: #EFE;overflow: auto;opacity:0.5;filter:alpha(opacity=50);-moz-opacity:0.5;}
  150. div#post-view div.note-corner {background: black;width: 7px;height: 7px;position: absolute;bottom: 0;right: 0;cursor: se-resize;}
  151. div#post-view div.note-body {background: #EFE;border: 1px solid black;display: none;width: 140px;height: 100px;position: absolute;padding: 5px;cursor: pointer;overflow: auto;}
  152. a[onclick*="addFav"] {font-size:0;}
  153. a[onclick*="addFav"]::after {content:'Favorite';font-weight:bold; color:#cc1105; font-size:16px!important;}
  154. a[onclick*="addFav"]:hover::after {color:red;}
  155. /*form tbody {background-color:#94766d; color:#ddd;}*/
  156. [id^="c"][style$="line;"] {display:table!important; background:#f0e0d6; padding:0 0.5em 1em; margin:2px 0 3px 0;border:1px solid #d9bfb7; border-left:none; border-top:none;}
  157. [id^="c"][style$="line;"] b, .comment-header {color:#888; margin:0.5em 0;}
  158. [id^="c"][style$="line;"] a:nth-child(n+6) {word-break:break-all; text-decoration:underline;}
  159.  
  160. /*comment list*/
  161. #comment-list2 {max-width:1200px; margin:0 auto;}
  162. #comment-list2+div {margin-top:8em!important; float:none!important;}
  163. #comment-list2 .post {
  164.   display:grid;
  165.   grid-template:"pic tags" 150px
  166.   ". coms" auto / 150px auto;
  167.   gap:0.5em;
  168.   margin: 0 auto 3em;
  169.   padding: 0 1em 3em;
  170.   border-bottom: 2px solid #ccc;
  171.   max-width: 1000px;
  172. }
  173. .col1 {grid-area:pic; justify-self:center;}
  174. .col1 img {transition:0.15s ease-in-out;}
  175. .col2 {grid-area:coms;}
  176. .col3 {grid-area:tags; padding:1em; border-radius:5px; border:2px solid #d9bfb7;}
  177. .comment {padding:0.5em;margin:2px 0 3px 0;background-color: #f0e0d6;border:1px solid #d9bfb7; border-left:none; border-top:none;display:table;}
  178. .post-info li {display:inline-block;margin-right:1em;}
  179.  
  180. /*alias*/
  181. .highlightable+br+br+form {max-width:1200px; margin:0 auto;}
  182.  
  183. /*forum (and tables)*/
  184. form[action="?page=forum&s=search"] {max-width:1200px; margin: 0 auto;}
  185. table {border-collapse: collapse; overflow: hidden; border:1px solid #d9bfb7;}
  186. table.highlightable, #account-favorites-list {margin:1em auto;max-width:1200px;border-radius:5px;}
  187. th {font-weight: 700;text-align: left;background-color: #94766d;color: #ddd;white-space: nowrap;}
  188. th, tr, td {padding: 0.2em 0.5em;}
  189. .highlightable tr, #account-favorites-list table {color:#1d2d54;}
  190. .highlightable > tbody > tr:nth-child(even), #account-favorites-list table > tbody > tr:nth-child(even) {background:#f0e0d6;}
  191. .highlightable > tbody > tr:nth-child(odd), #account-favorites-list table > tbody > tr:nth-child(odd) {background:#f5ece5;}
  192. table.highlightable a {text-decoration:underline;}
  193. table.highlightable > tbody > tr:hover, #account-favorites-list table > tbody > tr:hover {background-color:#ea8; color:#1d2d54;}
  194. span.locked-topic {color:#cc1105;font-weight: 700;text-transform: uppercase;font-size: 0.9em;letter-spacing: 0.05em;}
  195.  
  196. /*threads*/
  197. #forum {padding: 1em; margin:5px;}
  198. #forum .post:first-child {background:inherit; border:none; display:block;margin-bottom:10px;}
  199. #forum .post {position:relative; display:table; background-color: #f0e0d6;border:1px solid #d9bfb7; border-left:none; border-top:none; padding-top:5px; margin:2px 0 3px 0;}
  200. .post::before {content:'>>'; position:absolute; left:-20px; top:0px; color:#e0bfb7;}
  201. .post:first-child::before {content:none;}
  202. .post+.paginator {margin-top:20px;}
  203. .date span {font-size:14px;}
  204.  
  205. div.author {float:left; margin:0 20px 0 15px;}
  206. h6.author {margin:0; display:inline;}
  207. .author + .content {margin:0; padding:0;}
  208. .content .body {padding:7px 10px 0px 15px; font-size:13px; line-height:18px;}
  209. .response-title:empty + .body {margin-top:20px;}
  210. .response-title {color:#cc1105;font-size:14px;letter-spacing: -0.033em; padding:0 15px; margin:0;}
  211. .body b {color:#cc1105;}
  212. div.quote {padding:10px; margin-top:8px; display:table; color:#6e8c1e; border:1px solid #d9bfb7;}
  213. div.quote b {color:#296225;}
  214. div.quote div.quote {border:none; border-left:2px solid #d9bfb7;}
  215. span.spoiler {background:#232b25; color:#232b25; cursor:text; padding:0.2em}
  216. span.spoiler:hover {color:#729120;}
  217. .post .footer {margin-top:5px; font-size:10px;}
  218. .post .footer a {font-family:verdana; color:#333; border:1px solid rgba(0, 0, 0, 0.1); line-height:11px; padding:0px 3px 1px; margin:0 2px;}
  219. .post .footer a:hover {border:1px solid rgba(0, 0, 0, 0.4); color:#000;}
  220. .post:first-child .footer {background:none;}
  221.  
  222. /*my account and others*/
  223. #user-index {margin:0 auto 8em; padding:1em; border:2px solid #d9bfb7; border-radius: 5px;}
  224.  
  225. /*account options*/
  226. .option {max-width:900px; margin:0 auto;}
  227. label {font-weight:700;}
  228. .option table {width:100%;}
  229. .option td {vertical-align: top;}
  230. .option textarea {width:400px; height:100px;}
  231. .option input[type=submit] {padding: 10px 50px;font-size: 1.168em;text-transform: uppercase;letter-spacing: 0.05em;}
  232.  
  233. /*homepage*/
  234. #static-index {text-align:center; margin:3em auto; max-width:1200px; padding:1em;}
  235. #static-index h1 {font-size:2.618em!important;font-family:Tahoma;}
  236. #static-index h1 a {color:maroon;}
  237. #static-index p::after {content:'Theme based on Yotsuba A, modified from holobooru theme by sHaHaHark'; display:block; font-family:verdana; color:#a78f8a; font-size:10px;}
  238. #links a {margin-left:1em;}
  239. #links a:first-of-type {margin-left:0;}
  240. #static-index div:last-of-type {font-size:100%!important; margin-top: 2em;}
  241.  
  242. /*help*/
  243. .help {max-width:650px; margin:0 auto; padding:2em; background-color: #f0e0d6;border:1px solid #d9bfb7; border-left:none; border-top:none;}
  244. dl, dd {margin-bottom:1em;}
  245. dl {background:#ffe; border:1px solid #d9bfb7; padding: 1em; max-width: 250px;}
  246. dt:nth-child(5) {color:#a78f8a;}
  247.  
  248. /*MEDIA QUERIES*/
  249. @media screen and (max-width: 744px) {
  250.   #post-list .sidebar, #post-view .sidebar {height:125px;  display:flex;}
  251.   #post-view .sidebar {float:none;width:auto;margin:0 0 1em;}
  252.   #post-view #tag_list {flex-grow: 100;padding: 0 0.5em 0.5em;overflow: auto;}
  253.   #post-view #tag_list li:last-child {display:none;}
  254.   .sidebar+b{margin-left:1.5em;}
  255.   input#tags, input#stags {width:125px; border-radius: 3px 3px 0 0;}
  256.   #tags ~ input, #stags ~ input {width: 125px!important; margin-top: -1px!important; margin-left: 0px; border-radius:0 0 3px 3px;}
  257.   #right-col {margin:0; padding:0;}
  258.   #right-col > div {float:none!important;margin:1em 0 0 0!important;}
  259.   #image {margin:0 0 1em 0!important; width:100%;}
  260.   #comment_form + script + div {margin-top:8em!important;}
  261.  
  262.   #post-list {
  263.     grid-template-areas:"side side"
  264.     "cont cont"
  265.     "cont cont";
  266.   }
  267.   #post-list #tag_list {flex-grow:100; padding-top: 0; max-height: 200px; overflow: auto;}
  268.   .sidebar .space {width:135px; padding-top:0;}
  269.   #post-list .sidebar div:nth-child(2) {display:none;}
  270.   .space form {text-align:center;}
  271.  
  272.   div.author {padding:0.5em 0;}
  273.   .author + .content {padding:0.5em 0; margin:0;}
  274. }
  275. @media screen and (max-width:601px) { #header {display:block; margin:0 0 1em; padding:0.5em;} #navbar {margin:0;} }
  276. @media screen and (max-width: 501px) {
  277.   body{margin:0;}
  278.   #right-col {margin:0; padding:0;}
  279.   #right-col > div .divTable+div+div {margin:0 0.5em;}
  280.   #forum{padding:0;}
  281.   .body {line-height:1.5em;}
  282.   .body a {break-word:break-all;}
  283.   #user-index {margin: 0 0.5em 8em;}
  284. }
  285. @media screen and (max-width: 401px) {
  286.   #post-list {
  287.     grid-template-areas:"side side"
  288.     "side side"
  289.     "cont cont";
  290.   }
  291.   #post-list .sidebar, #post-view .sidebar {flex-direction:column; height:180px;}
  292.   .sidebar .space {width:auto;}
  293.   .space form {text-align:left;}
  294.   span.thumb {height:150px; width:150px;}
  295.   div.content {margin:0; padding:0;}
  296.   #right-col {margin-top:1em;}
  297.  
  298.   input#tags, input#stags {width:140px;border-radius: 3px 0 0 3px;}
  299.  
  300.   #tags ~ input, #stags ~ input {margin-left: -4.5px; width:auto!important;color:#fff;font-weight: bold;padding:6px;border: none !important;border-radius: 0 3px 3px 0;}
  301. }
Add Comment
Please, Sign In to add comment