Advertisement
cyhouse

TH misc CSS tweaks

Oct 24th, 2014
583
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.20 KB | None | 0 0
  1. /***************************************************************************
  2.  
  3. TOYHOUSE UTILITY CSS
  4.  
  5. These are small tweaks that are meant to be
  6. used with the default layout, but should
  7. work otherwise...probably...
  8. Feel free to use/incorporate any part of this
  9. in a separate stylesheet, credit optional.
  10.  
  11. Last updated 26/10/14
  12.  
  13. http://toyhou.se/aleator
  14.  
  15. ***************************************************************************/
  16.  
  17. /***************************************************************************
  18.  
  19. = padding and margins
  20.  
  21. Some divs could use a bit more padding
  22. and wider margins
  23.  
  24.  
  25. ***************************************************************************/
  26.  
  27. /* separate main page content from the recent panels */
  28. .profile-characters .profile-characters-content.panel
  29. {
  30. margin-top: 20px;
  31. }
  32.  
  33. /* bring content slightly further away from the sides */
  34. #content
  35. {
  36. padding-left: 30px;
  37. padding-right: 30px;
  38. }
  39.  
  40. /* move the bulletin comment link slightly lower*/
  41. .bulletin-post .text-center
  42. {
  43. padding-top: 30px;
  44. }
  45.  
  46. /* space out the IC switch and hidden stuff for comments
  47. use with comment box tweaks below for better effect */
  48. .forums-ic-switch
  49. {
  50. margin-bottom: 10px;
  51. }
  52. .forums-ic-select
  53. {
  54. padding: 0px;
  55. margin: 0px 20px 10px 20px;
  56. }
  57.  
  58. /***************************************************************************
  59.  
  60. = removing parts
  61.  
  62. Removes various parts of the layout
  63. You can choose only the ones you need;
  64. all of them are disabled by default.
  65. Uncomment to turn it on.
  66.  
  67.  
  68. ***************************************************************************/
  69.  
  70. /* === header === */
  71.  
  72. /* #header { display: none; } */
  73.  
  74. /* === footer === */
  75.  
  76. /* #footer, .profiler { display: none; } */
  77.  
  78. /* === sidebar header ===
  79. The blue thing in the sidebar */
  80.  
  81. /*.side-nav li.header { display: none; } */
  82.  
  83. /* === profile page recent panels === */
  84. /*.profile-characters .profile-characters-content.panel,
  85. .profile-characters .profile-images-content.panel
  86. {
  87. display: none;
  88. }*/
  89.  
  90. /* === character page user link in sidebar === */
  91. /*.side-nav .display-user-tiny,
  92. .side-nav .display-user-tiny a
  93. {
  94. display: none;
  95. }*/
  96.  
  97. /* === character page character stats ===
  98. See below for an alternative to getting
  99. rid of the stats panel
  100. */
  101. /*.character-stats { display: none; } */
  102.  
  103. /***************************************************************************
  104.  
  105. = comment box
  106.  
  107. Rearranges the things in the comment box,
  108. mainly with regards to the IC commenting switch
  109. and the buttons that appear when it's turned on
  110.  
  111. The reasoning is that if you have long character
  112. names and a small window it'll break the
  113. layout and look quite bad, so here I'm
  114. splitting them into different lines and/or
  115. just rearranging them so it's less likely to happen.
  116.  
  117. The left-aligned version is active by default,
  118. comment it out and uncomment the right-aligned version
  119. to use it.
  120.  
  121.  
  122. ***************************************************************************/
  123.  
  124. /*
  125. === left-aligned ===
  126.  
  127. IC switch on the left. Hidden parts appear
  128. on the line underneath the switch.
  129.  
  130. "POST IC" text fits on one line instead of two.
  131.  
  132. */
  133.  
  134. .forums-ic-switch
  135. {
  136. width: 15%;
  137. float: left;
  138. clear: both;
  139. }
  140. .forums-ic-select
  141. {
  142. float: left;
  143. display: inline;
  144. clear: both;
  145. padding-left: 0px;
  146. padding-right: 0px;
  147. }
  148. #character_display,
  149. #character_display img
  150. {
  151. margin-right: 10px;
  152. }
  153.  
  154.  
  155. /*
  156. === right-aligned ===
  157.  
  158. IC switch on the left. Hidden parts appear
  159. on the right side, character name and buttons
  160. split into two lines with the buttons
  161. appearing underneath the character.
  162.  
  163. "POST IC" text fits on one line instead of two.
  164.  
  165. */
  166.  
  167. /*
  168. .forums-ic-switch
  169. {
  170. float: left;
  171. width: 4em;
  172. padding-right: 0px;
  173. padding-left: 0px;
  174.  
  175. }
  176. .forums-ic-select
  177. {
  178. float: right;
  179. width: auto !important;
  180. padding-right: 0px;
  181. text-align: right;
  182. }
  183. .forums-ic-select .button
  184. {
  185. margin-right: 0px;
  186. }
  187.  
  188. #character_display
  189. {
  190. float: right;
  191. clear: both;
  192. margin-bottom: 10px;
  193. }
  194.  
  195. #select_character, #select_image
  196. {
  197. float: right;
  198. }
  199.  
  200. #select_character
  201. {
  202. clear: right;
  203. }
  204. */
  205.  
  206. /***************************************************************************
  207.  
  208. = comment labels
  209.  
  210. This is probably an overly specific thing but
  211. it shifts the edit/delete labels on the
  212. comment box above the box, rather than
  213. stuck in the corner which looks ugly when
  214. the comment content is long enough to go near it
  215. It also makes the caption (posted by ___) break
  216. into multiple lines if the user/character name is long.
  217.  
  218.  
  219. ***************************************************************************/
  220.  
  221. .forum-post-content
  222. {
  223. margin-top: 2px;
  224. }
  225. .forum-post-caption
  226. {
  227. width: 50%;
  228. }
  229. .forum-post .label,
  230. .forum-post .label.alert
  231. {
  232. margin-top: -21px;
  233. }
  234.  
  235. /* This sends the date onto a new line
  236. which looks neater with long names,
  237. but it's also excessively long, I
  238. haven't figured out how to deal with this */
  239. /*
  240. .forum-post-caption abbr
  241. {
  242. display: block;
  243. }
  244. */
  245.  
  246. /***************************************************************************
  247.  
  248. = character labels/details
  249.  
  250. Tidies up the labels.
  251. - Breaks character names into multiple lines
  252. if they're too long, instead of stretching
  253. into someone else's territory.
  254. (Side effect: label now stretches the width of
  255. the thumbnail even if the name is short)
  256. - Separates short character/user names into two lines.
  257. - Splits the edit icon onto another line.
  258. - Splits the count icons onto multiple lines
  259. if they're too long.
  260. - Centres everything below the character.
  261.  
  262.  
  263. ***************************************************************************/
  264.  
  265. .profile-characters .thumb-caption,
  266. .profile-creations .thumb-caption
  267. {
  268. margin-left: auto;
  269. margin-right; auto;
  270. }
  271. .profile-characters .thumb-caption .label.primary,
  272. .profile-characters .thumb-caption .nowrap,
  273. .profile-creations .thumb-caption .label.primary,
  274. .profile-creations .thumb-caption .label.secondary,
  275. .profile-gallery .gallery-thumb .label,
  276. .profile-characters .gallery-thumb .label.secondary
  277. {
  278. margin-left: auto;
  279. margin-right: auto;
  280. display: block;
  281. white-space: normal !important;
  282. }
  283.  
  284. /* comment out this section if you don't want the
  285. pencil on a different line */
  286. .profile-characters .thumb-caption div.label.muted
  287. {
  288. margin-top: 6px;
  289. margin-bottom: 6px;
  290. margin-left: auto;
  291. margin-right: auto;
  292. display: block;
  293. white-space: normal !important;
  294. }
  295.  
  296. /***************************************************************************
  297.  
  298. = character stats hack
  299.  
  300. * Only works on character main page.
  301.  
  302. Turns the character stats panel into an image
  303. centred above the fields section.
  304.  
  305. The obvious downside is that you can't show
  306. the character stats, but I've also been
  307. unable to find a way to style the stats to
  308. look good lol (especially since it's forced
  309. to float right).
  310. Also, the rest of the content has to float
  311. left, or weird things will happen.
  312.  
  313.  
  314. ***************************************************************************/
  315.  
  316. .character-stats
  317. {
  318. width: 100%;
  319. background-color: transparent;
  320. border: 0px;
  321. display: block;
  322. background-repeat: no-repeat;
  323. background-position: center;
  324.  
  325. /* change these two to match your image */
  326. /* it means you have to individually paste the css into every character */
  327. /* and modify it from there but I can't think of an easy way to do this */
  328. height: 300px;
  329. background-image: url('http://placekitten.com/g/200/300');
  330.  
  331. }
  332.  
  333. .character-stat-row,
  334. .character-stat-row img,
  335. .character-stat-title,
  336. .character-stat-row .label,
  337. .character-stats abbr
  338. {
  339. display: none;
  340. }
  341.  
  342. .character-fields,
  343. .character-text,
  344. .character-recent-images
  345. {
  346. display: block;
  347. float: left;
  348. clear: both;
  349. width: 100%;
  350. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement