Advertisement
cyhouse

TH CSS skeleton

Oct 27th, 2014
12,186
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 42.36 KB | None | 1 0
  1. /***************************************************************************
  2.  
  3. CSS skeleton for TH profile pages
  4.  
  5. Contents:
  6. - General properties
  7. - Global IDs
  8. > .button variants
  9. > .display-user
  10. > .label variants
  11. > .panel
  12. > .th, .thumb
  13. > pagination
  14. > grids
  15. - Containers
  16. > #container
  17. > #main
  18. > #content
  19. > #footer
  20. - Header
  21. - Sidebar
  22. - Profile page [.profile-content]
  23. > .profile-column
  24. >> .profile-bulletin
  25. >> .profile-feature
  26. >> .profile-characters
  27. > .profile-column
  28. >> .profile-comments
  29. - Comments
  30. > .comment-create
  31. >> .forums-ic-panel
  32. > .reveal-modal
  33. > .forum-posts
  34. >> .forum-posts-sidebar
  35. >> .forum-post
  36. - Bulletins [.bulletins-index] and latest bulletins
  37. > .bulletins-post
  38. >> .bulletin-header
  39. >> .bulletin-post
  40. - Characters [.profile-characters]
  41. > .profile-characters-folders
  42. > .profile-characters-filters
  43. >> .sub-nav
  44. > .characters-gallery
  45. >> .thumb-character
  46. - Images
  47. > .profile-gallery
  48. - Links
  49. > .profile-links
  50. >> .character-links-row
  51. - Worlds
  52. > .profile-groups
  53. - Favourites
  54. > .profile-creations
  55. - Designs
  56. > .profile-creations
  57. - Art
  58. > .profile-gallery
  59. - Stats
  60. > .character-fields
  61. > #modal-default
  62.  
  63. ***************************************************************************/
  64.  
  65. /***************************************************************************
  66.  
  67. General properties
  68.  
  69. ***************************************************************************/
  70.  
  71. /*
  72. Both must be overwritten or hover colour will be default blue.
  73. However, if [.display-user a] is set, that will take priority
  74. */
  75. a, a:link, a:visited {}
  76. a:hover {}
  77.  
  78. /*
  79. All timestamps
  80. Attempts thus far to remove the dotted
  81. bottom line have been unsuccessful
  82. */
  83. abbr {}
  84.  
  85. /*
  86. padding is asymmetrical by default. (9 20 0 19)
  87. */
  88. blockquote
  89. {
  90. padding-bottom: 9px;
  91. }
  92.  
  93. /*
  94. Both the basic headers and the .panel headers need
  95. to be modified at the same time since it doesn't
  96. cascade into .panel, so bulletins etc. aren't affected
  97. Oddly, things such as links do gain the changes...
  98. */
  99. h1, .panel h1 { padding-left: 0px; } /* .panel h1 has extra left padding? */
  100. h2, .panel h2 {}
  101. h3, .panel h3{}
  102. h4, .panel h4{}
  103. h5, .panel h5{}
  104. h6, .panel h6{}
  105.  
  106. /*
  107. If hr doesn't work, add <p></p> tags
  108. It seems to work fine for content,
  109. but not in the sidebar blurb
  110.  
  111. default values:
  112. margin-top: 20px;
  113. border-top: 1px;
  114. margin-bottom: 19px;
  115. */
  116. hr {}
  117.  
  118. /*
  119. p seems to crop up every now and then, so best to remove any
  120. padding whatsoever...
  121. */
  122. p { padding: 0px; }
  123.  
  124. /***************************************************************************
  125.  
  126. Global IDs
  127.  
  128. ***************************************************************************/
  129.  
  130. /************************************************
  131. .button variants
  132. - [button] by itself cannot be modified
  133. - modal buttons are more specific
  134. ************************************************/
  135. /*
  136. .button affected areas:
  137. - only the "Post Comment" buttons
  138. */
  139. .button {}
  140. .button:hover {}
  141.  
  142. /*
  143. .button.secondary affected areas:
  144. - Worlds: "Save Worlds"
  145. - Comments: "Select Character", "Select Image"
  146. */
  147. .button.secondary {}
  148. .button.secondary:hover {}
  149.  
  150. /************************************************
  151. .display-user
  152. ************************************************/
  153.  
  154. /* this affects any usernames */
  155. .display-user a {}
  156. .display-user a:hover {}
  157.  
  158. /************************************************
  159. .label variants
  160. :hover (without using a:hover) is enough
  161. for changing the hover text colour.
  162. [a] does not affect label text
  163. ************************************************/
  164.  
  165. /*
  166. I've found that using .label in specific places will affect
  167. all labels in that container, but using the generic [.label]
  168. will affect only certain labels.
  169.  
  170. .label affected areas:
  171. - Profile: "Edit" labels, character name labels
  172. - Bulletins: "Edit" labels (both main and individual posts)
  173. - Characters: character name labels
  174. - Designs: character name labels
  175. - Images: character name labels
  176. - Favourites: character name labels
  177. - Comments: "Edit" labels
  178.  
  179. To do hover text colour for character names, use [.label a]
  180. To do hover text colour for edit labels, use [.label] (same for .alert)
  181. Or: if the label itself isn't a link, use [.label a].
  182. */
  183. .label {}
  184. .label a {}
  185.  
  186. .label:hover {}
  187. .label a :hover{}
  188.  
  189. /*
  190. .label.primary affected areas:
  191. - Profile: recent characters character name labels (but not featured)
  192. - Characters: character name labels
  193. - Designs: character name labels
  194. - Favourites: character name labels
  195.  
  196. .label is a better choice unless specificity is required.
  197. */
  198. .label.primary {}
  199. .label.primary:hover {}
  200.  
  201. /*
  202. .label.secondary affected areas:
  203. - Profile: latest bulletin "# Comments" label,
  204. recent characters username labels
  205. - Bulletins: "# Comments" label (both main and individual posts)
  206. - Characters: username labels
  207. - Worlds: member rank label
  208. - Designs: username labels
  209. - Images: "Edit" labels
  210. - Favourites: username labels
  211. */
  212. .label.secondary {}
  213. .label.secondary:hover {}
  214.  
  215. /*
  216. .label.alert affected areas:
  217. - Profile: all the labels that say "Delete"
  218. - Bulletins: "Delete" labels
  219. - Comments: "Delete" labels
  220.  
  221. To do hover text colour, don't use [a]
  222. */
  223. .label.alert {}
  224. .label.alert:hover {}
  225.  
  226. /*
  227. only appears on characters page;
  228. one each for each counter icon + number
  229. */
  230. .label.muted {}
  231.  
  232. /************************************************
  233. .panel
  234. ************************************************/
  235.  
  236. /*
  237. .panel affected areas:
  238. - Profile: latest bulletin, featured character, recent characters
  239. - Bulletins: bulletin backgrounds
  240. - Comments: comments (comment boxes)
  241. - Modals: character selection (scrolling area),
  242. image selection (scrolling area)
  243. */
  244. .panel {}
  245.  
  246. /************************************************
  247. .th, .thumb
  248. ************************************************/
  249.  
  250. /*
  251. .th affected areas:
  252. - all character/world thumbnail image boxes
  253.  
  254. Use this to modify box-shadow and the fat white border,
  255. as well as constrain the image's size
  256. */
  257. .th {}
  258. .th:hover {}
  259.  
  260. /*
  261. .thumb affected areas:
  262. - the entire section enclosing a character/world
  263. - 3 versions: padded (no padding-top), margin-bottom, no padding/margin
  264. - Profile: featured (images only (margin-bottom); excludes character),
  265. recent characters
  266. - Characters: characters
  267. - Worlds: worlds (no padding)
  268. - Images: images (margin-bottom)
  269. - everything else is padded
  270. */
  271. .thumb {}
  272.  
  273. /************************************************
  274. pagination
  275. ************************************************/
  276.  
  277. /* non-active page numbers */
  278. ul.pagination li a {}
  279. ul.pagination li a:hover {}
  280.  
  281. /* current page number, modify background colour here */
  282. ul.pagination li.current a {}
  283. ul.pagination li.current a:hover {}
  284.  
  285. /* note that these are different */
  286. ul.pagination li {}
  287. ul.pagination li:hover {}
  288. ul.pagination li.current {}
  289. ul.pagination li.current:hover {}
  290.  
  291. /************************************************
  292. grids
  293. ************************************************/
  294.  
  295. /*
  296. ul.small-block-grid-6
  297.  
  298. Used for all the pages.
  299. 6 to a row, width of each li is then 16.6%.
  300. With fixed margins ~16.3% seems to work fine.
  301. For some reason, has -10px left and right margins.
  302. (To push it past #content's padding all the way to the edges?)
  303.  
  304. On the Characters page, it's contained within
  305. an uneditable fieldset that has 20px margins,
  306. so it's padded an extra 10px from #content's edges by default.
  307. To overcome this and reach #content, margins should be -20px
  308. instead of the forced 0px here.
  309.  
  310. Generally, styling the grids means finishing
  311. Worlds/Designs/Images/Favourites all at once, or at least
  312. very quickly.
  313. */
  314. ul.small-block-grid-6
  315. {
  316. margin-left: 0px;
  317. margin-right: 0px;
  318. }
  319.  
  320. /*
  321. ul.small-block-grid-6 li
  322.  
  323. In the galleries, is a better option than .thumb and
  324. has more power than .thumb does.
  325. It's a better option because the padding is consistent.
  326. However, it doesn't affect the profile page.
  327.  
  328. Profile recent characters uses small-block-grid-3
  329. Profile featured character uses large-block-grid-6 (images only)
  330.  
  331. remember that Characters page has the extra
  332. 10px of padding all round though
  333. */
  334. ul.small-block-grid-6 li
  335. {
  336. padding-top: 10px;
  337. }
  338.  
  339. /***************************************************************************
  340.  
  341. Containers
  342.  
  343. ***************************************************************************/
  344.  
  345. /*
  346. Contains everything on the page.
  347. Shrinking this causes stuff to overflow.
  348. Nice for backgrounds but don't touch the width/height.
  349. */
  350. #container {}
  351.  
  352. /*
  353. Contains everything except the header and footer.
  354. (i.e. it contains #sidebar and #content)
  355. Can squash for a narrower content area.
  356. */
  357. #main {}
  358.  
  359. /*
  360. Contains the main content of the page.
  361. Note that the padding is compounded with the container
  362. that represents the current page's content.
  363.  
  364. Doing things like changing the text colour here will affect
  365. text in created divs, but not text in panels and etc.
  366. It also affects world names on the Worlds page.
  367. Better to do text colour changes in specific places.
  368. */
  369. #content {}
  370.  
  371. /*
  372. Generally not useful for layouts unless something to meet
  373. the lower part of the page is required.
  374. It contains the profiler which I'll also turn off here.
  375. */
  376. #footer { display: none; }
  377. .profiler { display: none; }
  378.  
  379. /***************************************************************************
  380.  
  381. Header
  382.  
  383. ***************************************************************************/
  384.  
  385. /*
  386. I have no idea what to do with this sometimes;
  387. it contains important functions so getting rid of it
  388. isn't a good idea but it's also too thick for layouts sometimes.
  389. */
  390. #header {}
  391.  
  392. /*
  393. All header buttons including the dropdown
  394. If transparent, background colour will show through.
  395. However, dropdown li will also become transparent
  396. and will need to be set with [.dropdown li]
  397. Both [#header a] and [#header li] need to be transparent.
  398. Background colour can then be set on #header.
  399. */
  400. #header a, #header li { /*background-color: transparent;*/ }
  401. #header a:hover {}
  402.  
  403. /* Dropdown links */
  404. #header .dropdown li {}
  405.  
  406. /* Vertical divider; border-right */
  407. #header li.divider { /*border-right: 1px solid #000;*/ }
  408.  
  409. /* top-left homepage link */
  410. #header .title-area {}
  411.  
  412. /* user icon */
  413. #header img {}
  414.  
  415. /*
  416. To change the size of the bar visually
  417. (padding and font sizes not included)
  418. all these need to be changed
  419. Even if #header a is transparent it needs
  420. to be resized otherwise dropdowns will be
  421. impossible to use
  422.  
  423. Issue: I don't know how to deal with the dropdown arrow
  424. */
  425. /*#header, #header a, #header li, #header .title-area
  426. {
  427. height: 30px;
  428. }*/
  429.  
  430. /*
  431. Contains all the header bar stuff.
  432. With some resizing of #header it's possible to
  433. set up a header image while preserving the header bar.
  434. #header's background goes under this.
  435.  
  436. I haven't yet figured out how to adjust the padding
  437. of the dropdown buttons.
  438. */
  439. .top-bar-section {}
  440.  
  441. /*
  442. Only the left side of the header bar items,
  443. excluding the top left homepage link.
  444. Floats left.
  445. */
  446. .top-bar-section .left {}
  447.  
  448. /*
  449. Only the right side of the header bar items.
  450. Floats right.
  451.  
  452. At the moment there's only one item so
  453. #header .user-link does the same thing.
  454. */
  455. .top-bar-section .right {}
  456.  
  457. /***************************************************************************
  458.  
  459. Sidebar
  460.  
  461. ***************************************************************************/
  462.  
  463. /*
  464. The whole sidebar.
  465. All the li are transparent, so changing the
  466. background colour affects everything except
  467. for the box that says "User" (.header).
  468.  
  469. Changing the text colour affects blurb text.
  470. Padding pads all the content.
  471. Default width is 16.6667%.
  472. */
  473. #sidebar {}
  474.  
  475. /*
  476. Changing the colour affects all the link text in the sidebar.
  477. Note that [.side-nav a] doesn't do the same.
  478. Neither does [.side-nav li a].
  479. */
  480. #sidebar a {}
  481. #sidebar a:hover {}
  482.  
  483. /*
  484. Changing the background colour affects only the .header,
  485. user link, blurb, and buttons.
  486. Inserting padding here will also affect the .dividers so
  487. be careful...
  488.  
  489. Changing colour on hover here will affect every li in the
  490. sidebar, including the blurb (which is probably not the
  491. intended effect). So, the hover is put in [a] rather than [li].
  492. */
  493. #sidebar li {}
  494.  
  495. /*
  496. This contains only the part of the sidebar that has any content
  497. (as opposed to #sidebar which stretches the length of the page)
  498.  
  499. It has padding at the top and bottom. #sidebar has no padding.
  500. */
  501. .side-nav {}
  502.  
  503. /*
  504. The box that says "User".
  505. */
  506. #sidebar .header {}
  507.  
  508. /*
  509. The username + avatar box.
  510. I recall having weird problems when doing up Jay's CSS,
  511. but at the moment there doesn't seem to be any problem setting
  512. a background image for this.
  513. */
  514. #sidebar .display-user a {}
  515.  
  516. /*
  517. The blurb.
  518. <hr> seems to require being between <p></p> tags.
  519.  
  520. Note! Links in the blurb will appear like the other
  521. buttons in the sidebar, i.e. they will stretch the
  522. length of the sidebar and have padding. If this is not
  523. what you want, add this (will affect ALL links in the blurb):
  524.  
  525. #sidebar .blurb a {display: inline; padding: 0px;}
  526. */
  527. #sidebar .blurb {}
  528.  
  529. /*
  530. The dividers.
  531. 5px of padding on top and below, border is border-top.
  532. */
  533. #sidebar .divider {}
  534.  
  535. /*
  536. It's not possible to touch any of the other buttons individually.
  537. However it's possible to mess with the little icons...
  538. */
  539. #sidebar i {}
  540.  
  541. /*
  542. The currently active page.
  543. Use [.active a] to change the text colour.
  544. */
  545. #sidebar .active {}
  546.  
  547. /***************************************************************************
  548.  
  549. Profile page
  550.  
  551. ***************************************************************************/
  552.  
  553. /*
  554. .profile-content
  555.  
  556. Main editable content of the profile.
  557. Separate from the columns below.
  558. I usually throw in an extra div inside, just in case
  559. I want to make more to abuse later.
  560. By default it's padded 10 10 10 10, but to maintain
  561. consistency I usually turn off the padding and add it
  562. in #content instead.
  563. */
  564. .profile-content { padding: 0px; }
  565.  
  566. /************************************************
  567. .profile-column
  568. ************************************************/
  569. /*
  570. The two columns below the editable profile content.
  571. Not a part of [.profile-content].
  572. There doesn't seem to be a way to differentiate between the two.
  573. Merging them into a straight line is simple: width: 100%;
  574.  
  575. It may be a good idea to apply thumbnail/label
  576. styling in here.
  577. */
  578. .profile-column {}
  579.  
  580. /*
  581. .profile-column headings
  582. This overwrites the default h1.
  583. However, it also overwrites the h1 in the panel, so
  584. overwrite it again.
  585. */
  586. .profile-column h1 {}
  587. .profile-column .panel h1 {}
  588.  
  589. /*
  590. .profile-column .panel
  591. Simply, all the panels in the columns.
  592. */
  593. .profile-column .panel {}
  594.  
  595. /************************************************
  596. .profile-bulletin
  597. ************************************************/
  598.  
  599. /*
  600. .profile-column .profile-bulletin
  601.  
  602. The bulletin section, which is in the same column as
  603. featured and recent characters. Includes the header.
  604. .profile-bulletin-content is the panel that
  605. contains everything but the header.
  606.  
  607. The divs appear to be the same as the bulletin pages',
  608. so any styling done on those and not specific to only
  609. the bulletin pages will apply here as well.
  610. I'm unsure if ".profile-column" is required,
  611. but just to be safe...
  612. */
  613. .profile-column .profile-bulletin {}
  614. .profile-column .profile-bulletin-content {}
  615.  
  616. /************************************************
  617. .profile-feature
  618. ************************************************/
  619. /*
  620. The featured character section.
  621. Only the images are in a grid.
  622. The character itself isn't bounded by anything.
  623. The dividing line is a hr.
  624. The images are inside [.profile-feature-gallery].
  625. Trivia: the image gallery thumbs don't have rounded corners
  626.  
  627. .profile-feature .th - all thumbnails
  628. .profile-feature .profile-feature-gallery .th - only image gallery thumbs
  629.  
  630. .profile-column .th - all thumbs on the profile page
  631. ^ may be convenient
  632. */
  633. .profile-column .profile-feature {}
  634.  
  635.  
  636. /************************************************
  637. .profile-characters
  638. ************************************************/
  639. /*
  640. The recent characters section.
  641. Much like the above...
  642. Character names are .label,
  643. usernames are .label.secondary.
  644. */
  645. .profile-column .profile-characters {}
  646.  
  647. /************************************************
  648. .profile-comments
  649. ************************************************/
  650. /*
  651. Not much has to be done here since it's handled
  652. in the regular comments styling.
  653. The column that holds this floats right and
  654. can't be forced to float left or none.
  655. Since the columns aren't differentiated it also
  656. means that column locations can't be switched.
  657. */
  658. .profile-column .profile-comments {}
  659.  
  660. /***************************************************************************
  661.  
  662. Comments
  663.  
  664. ***************************************************************************/
  665. /*
  666. > .comment-create
  667. >> .forums-ic-panel
  668. > .reveal-modal
  669. > .forum-posts
  670. >> .forum-posts-sidebar
  671. >> .forum-post
  672. */
  673.  
  674. /*
  675. Comments container.
  676. If the divider hr needs to be modified, do it here (.comments hr)
  677.  
  678. Note that no styling is applied to specific bulletin pages,
  679. so nothing will happen on there...
  680. */
  681. .comments {}
  682.  
  683. /*
  684. The section for making comments.
  685. The important part is the IC switch + hidden components.
  686. */
  687. .comment-create {}
  688.  
  689. /************************************************
  690. .forums-ic-panel
  691. ************************************************/
  692.  
  693. /*
  694. The entire section containing the IC switch.
  695. */
  696. .comment-create .forums-ic-panel {}
  697.  
  698. /*
  699. It didn't use to be, but now it's of an appropriate width.
  700. The switch area can be reached with [.switch],
  701. but there's no point since the colour is dependent on
  702. [label], which cannot be edited (I think).
  703. Things to think of: colour, font.
  704. */
  705. .comment-create .forums-ic-switch {}
  706.  
  707. /*
  708. The selection area that contains the character
  709. and the relevant buttons.
  710. */
  711. .comment-create .forums-ic-select {}
  712.  
  713. /*
  714. The thing that shows the picture and current
  715. selected character. No padding.
  716. */
  717. .comment-create .forums-ic-select #character_display {}
  718.  
  719. /*
  720. Affects both buttons.
  721. */
  722. .comment-create .forums-ic-select .button {}
  723. .comment-create .forums-ic-select .button:hover {}
  724.  
  725. /*
  726. Affects a specific button only.
  727. Can use for playing with alignment/line breaks.
  728. */
  729. .comment-create .forums-ic-select #select_character {}
  730. .comment-create .forums-ic-select #select_image {}
  731.  
  732. .comment-create .forums-ic-select #select_character:hover {}
  733. .comment-create .forums-ic-select #select_image:hover {}
  734.  
  735. /*
  736. Can be used to style the textbox.
  737. Things to think about:
  738. padding, margins, colour, border-radius, box-shadow
  739. It's possible to make it entirely borderless/put
  740. a background image on it, but note that users can
  741. change the size of the textbox on their screen
  742. (not that this is a deterrent for doing cute things...)
  743.  
  744. If a background colour is specified (even transparent),
  745. it does not darken when the user clicks on it.
  746.  
  747. A fixed-sized textbox will be necessary if alignment's
  748. important, since we don't want it to deform too much when
  749. the user changes the window size...this is best used
  750. only with small textboxes tbh
  751. */
  752. .comment-create .form-control {}
  753.  
  754. /*
  755. The "Post Comment" button.
  756. Ideally all buttons should be styled the same, and
  757. all in one place though.
  758. */
  759. .comment-create .button {}
  760. .comment-create .button:hover {}
  761.  
  762. /************************************************
  763. .reveal-modal
  764. ************************************************/
  765.  
  766. /*
  767. These are the things that pop up for selecting characters
  768. and images...and also affect the ones that do things
  769. like submit images for characters and stuff
  770. The latter don't need to be styled completely,
  771. but may be worth checking for how readable they are
  772. especially when working with a dark background
  773.  
  774. .reveal-modal{} affects all modals;
  775. here I'll use their specific ids for comments.
  776. */
  777. #select_character_panel,
  778. #select_image_panel {}
  779.  
  780. /* title of the modal */
  781. #select_character_panel h4,
  782. #select_image_panel h4 {}
  783.  
  784. /* selection area of the modal */
  785. #select_character_panel .panel,
  786. #select_image_panel .panel {}
  787.  
  788. /* more specific versions */
  789. #select_character_panel .character-select-panel {}
  790. #select_image_panel .image-select-panel {}
  791.  
  792. /* character selection */
  793. #select_character_panel .character-select-row {}
  794. #select_character_panel.character-select-row:hover {}
  795.  
  796. /* image selection */
  797. #select_image_panel .image-select-cell {}
  798. #select_image_panel .image-select-cell:hover {}
  799.  
  800. /* .button doesn't work, so use these */
  801. #select_character_panel .character-select-button {}
  802. #select_image_panel .image-select-button {}
  803.  
  804. #select_character_panel .character-select-button:hover {}
  805. #select_image_panel .image-select-button:hover {}
  806.  
  807. /************************************************
  808. .forum-posts
  809. ************************************************/
  810.  
  811. /*
  812. A container that holds each individual comment.
  813. Adjust the padding here, add a line to
  814. differentiate individual comments...
  815. */
  816. .forum-posts {}
  817.  
  818. /*
  819. Holds the user's avatar. Can be used to crop
  820. the image by way of overflow: hidden;.
  821. */
  822. .forum-posts .forum-posts-sidebar {}
  823.  
  824. /* Holds the main content of the post. */
  825. .forum-posts .forum-post {}
  826.  
  827. /*
  828. Notes who (and which character if applicable) posted
  829. the comment, and when.
  830. The date can be styled with abbr.
  831. */
  832. .forum-posts .forum-post .forum-post-caption {}
  833.  
  834. /*
  835. For styling the Edit/Delete buttons.
  836. [.label] gets both of them, while [.label.alert]
  837. only gets the delete button.
  838. */
  839. .forum-posts .forum-post .label {}
  840. .forum-posts .forum-post .label.alert {}
  841.  
  842. .forum-posts .forum-post .label:hover {}
  843. .forum-posts .forum-post .label.alert:hover {}
  844.  
  845. /*
  846. Main text content.
  847. If there's no universal styling for .panel,
  848. the background/border etc. can be changed here.
  849. */
  850. .forum-posts .forum-post-content {}
  851.  
  852. /***************************************************************************
  853.  
  854. Bulletins
  855.  
  856. ***************************************************************************/
  857.  
  858. /* The container for the bulletins page */
  859. .bulletins-index {}
  860.  
  861. /************************************************
  862. .bulletins-post
  863. ************************************************/
  864.  
  865. /*
  866. The div for each individual post on the
  867. bulletins page.
  868. It's also a panel so any [.panel] styling
  869. will apply to it.
  870.  
  871. I'm leaving out [.bulletins-index] so that the
  872. styling will apply to both the main profile page's
  873. latest bulletin as well. If that's not the
  874. desired effect, then add it in and throw in a
  875. [.profile-content] version for the front page.
  876. */
  877. .bulletins-post {}
  878.  
  879. /************************************************
  880. .bulletin-header
  881. ************************************************/
  882.  
  883. /*
  884. Giving this section its own comment header because
  885. it consists of a fair bit of stuff.
  886.  
  887. The header consists of everything that is not in
  888. the content of the post.
  889. Note that the padding is a little weird:
  890. 0 20 10 20, so padding the top may be a good idea
  891. especially on the front page where the title runs off
  892. the top of the panel (50 seems
  893. like a good amount)
  894. */
  895. .bulletin-header {}
  896.  
  897. /*
  898. Why does the title run off the top of the panel?
  899. It's because this div is set to position: absolute;
  900. in order to keep it aligned with the bottom of the
  901. icon image. (The same {position: absolute; bottom: 0px;}
  902. in {position: relative} trick I used for Jay's header bar)
  903. However, if the icon image is too small, the text too long
  904. and the column too narrow (which occurs only on the front page)
  905. it will be pushed upwards and out of the box.
  906.  
  907. Inserting position: relative; here will fix the front
  908. page problem, but also make it not align with the bottom
  909. of the icon.
  910. */
  911. .bulletin-header .bulletin-header-content {}
  912.  
  913. /*
  914. The icon used in the header.
  915. */
  916. .bulletin-header .forum-thread-avatar {}
  917.  
  918. /*
  919. The bulletin title.
  920. */
  921. .bulletin-header .bulletin-title {}
  922. .bulletin-header .bulletin-title:hover {}
  923.  
  924. /*
  925. The part that says who posted it and when.
  926. Contains the labels.
  927. */
  928. .bulletin-header .bulletin-caption {}
  929.  
  930. /*
  931. The labels.
  932. .label touches both,
  933. .label.alert only touches the "Delete" one.
  934. */
  935. .bulletin-header .bulletin-caption .label {}
  936. .bulletin-header .bulletin-caption .label.alert {}
  937.  
  938. /************************************************
  939. .bulletin-post
  940. ************************************************/
  941.  
  942. /*
  943. Whatever in the post that isn't contained by the header.
  944. */
  945. .bulletin-post {}
  946.  
  947. /*
  948. The bar that contains the comments label and centres it.
  949. */
  950. .bulletin-post .text-center {}
  951.  
  952. /*
  953. The comments label.
  954. Use [a] to change the text colour.
  955. */
  956. .bulletin-post .text-center .label {}
  957. .bulletin-post .text-center .label a {}
  958.  
  959. .bulletin-post .text-center .label:hover {}
  960. .bulletin-post .text-center .label a:hover {}
  961.  
  962. /***************************************************************************
  963.  
  964. Characters
  965.  
  966. ***************************************************************************/
  967.  
  968. /* The container for the characters page */
  969. .profile-characters {}
  970.  
  971. /*
  972. The content is split into multiple rows:
  973. 1. Folder h1 ("UNSORTED") and folder icons
  974. 2. Filters, not including h1 ("FILTERS")
  975. 3. Gallery + pagination
  976. */
  977. .profile-characters .row {}
  978.  
  979. /*
  980. The hr dividing the filters and the gallery itself.
  981. */
  982. .profile-characters hr {}
  983.  
  984. /************************************************
  985. .profile-characters-folders
  986. ************************************************/
  987.  
  988. /*
  989. Folder row
  990.  
  991. Contains the title. Folder icons are a [.small-block-grid-6].
  992. Padding is applied on [.text-center]/[li].
  993. */
  994. .profile-characters .profile-characters-folders {}
  995.  
  996. /*
  997. The little container in the top right that contains the
  998. labels.
  999. Probably of not much practical use to style, but could
  1000. probably use for nudging the labels or something...
  1001. */
  1002. .profile-characters .profile-characters-folders .right {}
  1003.  
  1004. /*
  1005. Labels on the top right. (View Unsorted/View All)
  1006. [.right] forces a float: right; so they're stuck there.
  1007. There's no way to differentiate them.
  1008. */
  1009. .profile-characters .profile-characters-folders .right .label{}
  1010. .profile-characters .profile-characters-folders .right .label:hover{}
  1011.  
  1012. /* Back label */
  1013. .profile-characters .profile-characters-folders h1 .label{}
  1014. .profile-characters .profile-characters-folders h1 .label:hover{}
  1015.  
  1016. /*
  1017. Folder buttons
  1018. Tricks:
  1019. 1. { visibility: hidden; } for [i] to retain
  1020. text alignment but hide folder icon
  1021. 2. background-image a custom folder icon
  1022. (probably not possible to do custom for each one)
  1023. */
  1024. .profile-characters .profile-characters-folders .button {}
  1025. .profile-characters .profile-characters-folders .button:hover {}
  1026.  
  1027. /************************************************
  1028. .profile-characters-filters
  1029. ************************************************/
  1030.  
  1031. /*
  1032. The row that contains the filters.
  1033.  
  1034. Each filter/sort category has a div to itself
  1035. that contains a .sub-nav.
  1036. */
  1037. .profile-characters .profile-characters-filters {}
  1038.  
  1039. /*
  1040. "FILTERS" text.
  1041. */
  1042. .profile-characters .profile-characters-filters h1 {}
  1043.  
  1044. /*
  1045. The tags filter.
  1046. This is also a [.row].
  1047. */
  1048. .profile-characters .profile-characters-filters-tags {}
  1049.  
  1050. /*
  1051. The ordering filter.
  1052. This is also a [.row].
  1053. */
  1054. .profile-characters .profile-characters-filters-orderby {}
  1055.  
  1056. /*
  1057. Each [.sub-nav] contains a dt and a bunch of dds...
  1058. At the moment I haven't figured out a nice way
  1059. to style them neatly, since nothing contains only the dds.
  1060.  
  1061. A specific [.sub-nav] can be styled by using the specific
  1062. div from above:
  1063. .profile-characters .profile-characters-filters-tags .sub-nav
  1064. .profile-characters .profile-characters-filters-orderby .sub-nav
  1065.  
  1066. I imagine it isn't going to be necessary to be that specific though.
  1067.  
  1068. Ideas:
  1069. 1. {float: left;} the dt and {float: right;} the dd.
  1070. 2. {padding-top: 1.5em;} in [.sub-nav], {margin-top: -1.2em} in dt.
  1071. 3. More interesting: {float: left; clear: both;} in dd, but
  1072. I haven't found a practical use for this yet
  1073. (.row can't be resized because it has a min-width
  1074. of 100%, making it impossible to arrange the tag
  1075. stacks next to each other)
  1076. */
  1077. .profile-characters .sub-nav {}
  1078.  
  1079. /*
  1080. This is the description of the filter.
  1081. */
  1082. .profile-characters .sub-nav dt {}
  1083.  
  1084. /*
  1085. These are the filter options.
  1086. [dd] has margins, while [dd a] has padding.
  1087. The background colour for active dds is in [dd a]
  1088. rather than [dd].
  1089. Basically, make changes to [dd a] rather than [dd]
  1090. unless the margins need to be changed.
  1091.  
  1092. Changes made to dd will affect dd.active, unless
  1093. dd.active is styled.
  1094. */
  1095. .profile-characters .sub-nav dd {}
  1096. .profile-characters .sub-nav dd a {}
  1097. .profile-characters .sub-nav dd a:hover {}
  1098.  
  1099. .profile-characters .sub-nav dd.active {}
  1100. .profile-characters .sub-nav dd.active a {}
  1101. .profile-characters .sub-nav dd.active a:hover {}
  1102.  
  1103. /*
  1104. The tag search textbox.
  1105. Unless !important is added, it'll probably get
  1106. overwritten (even for border and box-shadow properties).
  1107. */
  1108. .profile-characters .sub-nav .inline-tiny {}
  1109.  
  1110. /************************************************
  1111. .characters-gallery
  1112. ************************************************/
  1113.  
  1114. /*
  1115. The structure of the gallery is like this:
  1116. - .characters-gallery
  1117. > fieldset
  1118. >> .small-block-grid-6
  1119. >>> .thumb-character
  1120. */
  1121. .profile-characters .characters-gallery {}
  1122.  
  1123. /*
  1124. Remember that the uneditable fieldset has
  1125. 20px of padding left and right, and
  1126. that the grid has -10px margins on the same sides,
  1127. so to cancel that out this needs -20px on
  1128. left and right.
  1129.  
  1130. Incidentally, this won't align with the dts
  1131. because dt has margins. (10px left and right)
  1132. */
  1133. .profile-characters ul.small-block-grid-6
  1134. {
  1135. margin-left: -20px;
  1136. margin-right: -20px;
  1137. }
  1138.  
  1139. /*
  1140. Character thumbs.
  1141. Exactly the same thing as [.thumb].
  1142. Contains in this order:
  1143. [.th]
  1144. [.thumb-caption]
  1145.  
  1146. Where [.thumb-caption] contains
  1147. [.label.primary][.label.secondary][.label.muted][.nowrap]
  1148. all on the same line,
  1149. and where [.nowrap] contains all the little count icons in
  1150. individual [.label.muted]s.
  1151. */
  1152. .profile-characters .thumb-character {}
  1153.  
  1154. /*
  1155. These will override the global specifications.
  1156. Remember that .th is the image box itself and has the border
  1157. and box-shadow.
  1158. */
  1159. .profile-characters .thumb {}
  1160. .profile-characters .th {}
  1161. .profile-characters .th:hover {}
  1162.  
  1163. /* Everything below the thumbnail */
  1164. .profile-characters .thumb-caption {}
  1165.  
  1166. /*
  1167. It bothers me when labels are sometimes on the same line
  1168. and sometimes on different lines, so I'm breaking
  1169. them into different lines.
  1170. [div.label] ensures that the counter icons aren't split up;
  1171. only the major labels are affected (the counter icons are
  1172. in a span and not a div).
  1173. */
  1174.  
  1175. .profile-characters .thumb-caption div.label { display: block; }
  1176.  
  1177. /*
  1178. Meanwhile, force long names with multiple words to break into
  1179. more than one line. If there are too many counter icons in one line
  1180. they'll also be split into two.
  1181. */
  1182. .profile-characters .thumb-caption .label { white-space: normal; }
  1183.  
  1184. /*
  1185. Name labels.
  1186. Should be obvious but [.label.primary] is character name,
  1187. [.label.secondary] is username.
  1188. */
  1189. .profile-characters .thumb-caption .label.primary {}
  1190. .profile-characters .thumb-caption .label.secondary {}
  1191.  
  1192. .profile-characters .thumb-caption .label.primary a {}
  1193. .profile-characters .thumb-caption .label.primary a:hover {}
  1194. .profile-characters .thumb-caption .label.secondary a {}
  1195. .profile-characters .thumb-caption .label.secondary a:hover {}
  1196.  
  1197. /*
  1198. Small icons.
  1199. No need to use [i] to change colour of the icon.
  1200. */
  1201. .profile-characters .thumb-caption .label.muted {}
  1202. .profile-characters .thumb-caption .label.muted .favorited{}
  1203.  
  1204. /*
  1205. I feel an inexplicable pointlessness in documenting this
  1206. but it may have a point eventually
  1207.  
  1208. The box that contains the pagination at the top and bottom
  1209. of the gallery...
  1210. */
  1211. .profile-characters .pagination-centered {}
  1212.  
  1213. /***************************************************************************
  1214.  
  1215. Images
  1216.  
  1217. ***************************************************************************/
  1218.  
  1219. /* The container for the gallery page */
  1220. .profile-gallery {}
  1221.  
  1222. /*
  1223. Thumbnails.
  1224. Also the same as [.thumb].
  1225. Contains only the image + the "Edit" label.
  1226. */
  1227. .profile-gallery .gallery-thumb {}
  1228. .profile-gallery .gallery-thumb .th {}
  1229. .profile-gallery .gallery-thumb .th:hover {}
  1230.  
  1231. /*
  1232. The labels.
  1233. */
  1234. .profile-gallery .label { white-space: normal; }
  1235. .profile-gallery .label a {}
  1236. .profile-gallery .label a:hover {}
  1237.  
  1238. /*
  1239. Only the edit label.
  1240. To push it into the exact corner of the image,
  1241. remove the bottom margin of .th and the margins
  1242. for .label.secondary.
  1243.  
  1244. There strictly isn't a need to style it, but just
  1245. in case it's hard to see...
  1246. */
  1247. .profile-gallery .label.secondary {}
  1248.  
  1249. /***************************************************************************
  1250.  
  1251. Links
  1252.  
  1253. ***************************************************************************/
  1254.  
  1255. /*
  1256. The links page.
  1257. The structure is exactly the same as the character
  1258. links page minus the character selection bar at the top,
  1259. so you can copy and paste any code for character links
  1260. and change [.character-links] to [.profile-links]
  1261. and vice versa.
  1262.  
  1263. This is probably one of the harder pages to style because
  1264. there aren't very many unique ids and changing one thing
  1265. is likely to break another thing...
  1266. */
  1267. .profile-links {}
  1268.  
  1269. /************************************************
  1270. .character-links-row
  1271. ************************************************/
  1272.  
  1273. /*
  1274. Each row of links.
  1275. It contains everything in a single link.
  1276. */
  1277. .profile-links .character-links-row {}
  1278.  
  1279. /*
  1280. This one is probably going to be troublesome to style,
  1281. but it might be useful depending on what you're trying
  1282. to do...
  1283.  
  1284. Affects 3 things:
  1285. 1. A container around the character icons/names/delete link label
  1286. 2. A container around the links text
  1287. 3. The links text panels
  1288.  
  1289. Might be easier to understand visually if you add a
  1290. margin to separate them.
  1291. 3 can easily be styled separately. 1 and 2 are harder
  1292. to distinguish and require a lot of small fixes.
  1293. */
  1294. .profile-links .character-links-row .clearfix {}
  1295.  
  1296. /*
  1297. This shows up 4 times in a [.character-links-row].
  1298. 1. left side character icon/names
  1299. 2. right side character icon/names/delete label
  1300. 3. left side character text (containing the [.panel])
  1301. 4. right side character text (containing the [.panel])
  1302.  
  1303. Comes with 5px of padding all around.
  1304. */
  1305. .profile-links .character-links-link {}
  1306.  
  1307. /*
  1308. Contains the LEFT side icon and names in the row.
  1309. It's presumably text-right because it's text-alignment right...
  1310.  
  1311. Side effect: styling this will affect the box containing
  1312. the edit button in the [.panel] under the text box.
  1313. Fix with [.profile-links .character-links-link .panel .text-right].
  1314. */
  1315. .profile-links .character-links-link .text-right {}
  1316.  
  1317. /*
  1318. Contains the RIGHT side icon, names and the delete label.
  1319. Again, it's probably text-left because text-alignment left.
  1320.  
  1321. No side effect for this one.
  1322. */
  1323. .profile-links .character-links-link .text-left {}
  1324.  
  1325. /*
  1326. The character icons.
  1327. Has a max height of 100px, no min-height.
  1328. */
  1329. .profile-links .character-links-link .icon-100 {}
  1330.  
  1331. /*
  1332. Affects all the labels. That is,
  1333. 1. The delete label
  1334. 2. The small link icon
  1335. 3. Character name label
  1336. 4. Username label
  1337.  
  1338. This is necessary because you can't affect
  1339. only the character name labels. Everything else
  1340. can be specifically modified.
  1341. */
  1342. .profile-links .label {}
  1343. .profile-links .label:hover {}
  1344.  
  1345. /* The delete labels alone. */
  1346. .profile-links .label.alert {}
  1347. .profile-links .label.alert:hover {}
  1348.  
  1349. /* The link icons alone. */
  1350. .profile-links .label.muted {}
  1351. .profile-links .label.muted:hover {}
  1352.  
  1353. /*
  1354. The username label alone.
  1355. Note that changing the text colour here will not work;
  1356. you need to use [a].
  1357. */
  1358. .profile-links .label.secondary {}
  1359. .profile-links .label.secondary a {}
  1360.  
  1361. .profile-links .label.secondary:hover {}
  1362. .profile-links .label.secondary a:hover {}
  1363.  
  1364. /*
  1365. The panels that contain the text box and edit buttons.
  1366. */
  1367. .profile-links .character-links-link .panel {}
  1368.  
  1369. /* The textboxes. */
  1370. .profile-links .character-links-link .panel .form-control {}
  1371.  
  1372. /*
  1373. A row inside the panel that contains the
  1374. "Notify (username) of change?" text as well as
  1375. the [.text-right] that contains the button.
  1376. */
  1377. .profile-links .character-links-link .panel .row {}
  1378.  
  1379. /* The edit button. */
  1380. .profile-links .character-links-link .panel button.tiny {}
  1381. .profile-links .character-links-link .panel button.tiny:hover {}
  1382.  
  1383. /***************************************************************************
  1384.  
  1385. Worlds
  1386.  
  1387. ***************************************************************************/
  1388.  
  1389. /*
  1390. The container for the world page.
  1391. */
  1392. .profile-groups {}
  1393.  
  1394. /*
  1395. This controls the default padding on each thumb.
  1396. [.text-center.clearboth] refers to only the leftmost one,
  1397. and could probably be used for making dividing borders...
  1398.  
  1399. Note though that this won't be a consistent design since
  1400. not all the pages have .clearboth...
  1401. */
  1402. .profile-groups .text-center {}
  1403. .profile-groups .text-center.clearboth {}
  1404.  
  1405. /*
  1406. These are contained within .text-center inside a small-block-grid-6,
  1407. which has -10px margins as usual. Each one has some
  1408. padding on the left and right sides, as a note.
  1409. This is also reached with the global [.thumb].
  1410.  
  1411. The change on b is to make the label split onto the next line.
  1412. */
  1413. .profile-groups .gallery-thumb {}
  1414. .profile-groups .gallery-thumb b { display: block; }
  1415.  
  1416. .profile-groups .gallery-thumb .th {}
  1417. .profile-groups .gallery-thumb .th:hover {}
  1418.  
  1419. /*
  1420. The rank label.
  1421. */
  1422. .profile-groups .label {}
  1423.  
  1424. /*
  1425. The "Save Worlds" button.
  1426. Apply background colour directly.
  1427. */
  1428. .profile-groups .button {}
  1429. .profile-groups .button:hover {}
  1430.  
  1431. /*
  1432. Another pointless discovery.
  1433. There's a div 250 pixels high below the save button...
  1434. Might be cute for an image, but I also don't know if there
  1435. are any special conditions for it appearing/not appearing.
  1436. */
  1437. .profile-groups .spacer-250 {}
  1438.  
  1439. /***************************************************************************
  1440.  
  1441. Favourites
  1442.  
  1443. ***************************************************************************/
  1444.  
  1445. /*
  1446. For some reason, the container for this page is also
  1447. [.profile-creations] (same as the Designs page).
  1448. I imagine there isn't going to be any huge difference
  1449. and anyway there isn't really a way to differentiate the
  1450. things...
  1451. */
  1452.  
  1453. /***************************************************************************
  1454.  
  1455. Designs
  1456.  
  1457. ***************************************************************************/
  1458.  
  1459. /* The container for the designs page */
  1460. .profile-creations {}
  1461.  
  1462. /*
  1463. Thumbnails.
  1464. Also the same as [.thumb].
  1465. Includes the labels.
  1466. */
  1467. .profile-creations .thumb-character {}
  1468.  
  1469. .profile-creations .thumb-character .th {}
  1470. .profile-creations .thumb-character .th:hover {}
  1471.  
  1472. /*
  1473. The labels. Again, splitting onto different lines.
  1474. */
  1475. .profile-creations .thumb-character .label { display: block; white-space: normal; }
  1476.  
  1477. .profile-creations .thumb-character .label.primary {}
  1478. .profile-creations .thumb-character .label.secondary {}
  1479.  
  1480. .profile-creations .thumb-character .label.primary a {}
  1481. .profile-creations .thumb-character .label.primary a:hover {}
  1482. .profile-creations .thumb-character .label.secondary a {}
  1483. .profile-creations .thumb-character .label.secondary a:hover {}
  1484.  
  1485. /***************************************************************************
  1486.  
  1487. Art
  1488.  
  1489. ***************************************************************************/
  1490.  
  1491. /*
  1492. The container here is the same as the one used for the
  1493. Images page (.profile-gallery). I imagine there's no
  1494. need to go through this since there's nothing new here...
  1495. */
  1496.  
  1497. /***************************************************************************
  1498.  
  1499. Stats
  1500.  
  1501. ***************************************************************************/
  1502.  
  1503. /*
  1504. Class name is literally the same as the one used for
  1505. fields on character pages...
  1506. If you're modifying your profile css for character css,
  1507. be sure to check this section.
  1508. */
  1509. .character-fields {}
  1510.  
  1511. /*
  1512. Each row of the stats.
  1513. */
  1514. .character-fields .character-field-row {}
  1515.  
  1516. /*
  1517. The title of the field.
  1518. Text aligned right, uppercase by default.
  1519. */
  1520. .character-fields .character-field-row .character-field-title {}
  1521.  
  1522. /*
  1523. The value of the field.
  1524. Spacing between the title and the value is done here
  1525. by way of padding (20px left and right).
  1526. */
  1527. .character-fields .character-field-row .character-field-value {}
  1528.  
  1529. /*
  1530. For modifying the appearance of dates specifically on this page.
  1531. */
  1532. .character-fields .character-field-row abbr {}
  1533.  
  1534. /************************************************
  1535. #modal-default
  1536. ************************************************/
  1537.  
  1538. /*
  1539. The modal that appears when you click on either of the
  1540. subscribed users/subscriber links.
  1541. Can also be reached with [.reveal-modal], but this will
  1542. affect the other modals (namely, the select character/image
  1543. ones in comments).
  1544. */
  1545. #modal-default {}
  1546.  
  1547. /* The title of the modal. */
  1548. #modal-default h1 {}
  1549.  
  1550. /*
  1551. The grid that contains the users in the modal.
  1552. */
  1553. #modal-default .small-block-grid-8 {}
  1554.  
  1555. /*
  1556. Each of the li in the grid. 5px padding all round.
  1557. */
  1558. #modal-default .small-block-grid-8 li {}
  1559.  
  1560. /*
  1561. Each of the cells (1 per li) in the grid.
  1562. 10px padding, 5px margins all round so it looks
  1563. kind of cramped at small sizes...
  1564. Unfortunately the padding and margins can't be changed.
  1565. */
  1566. #modal-default .small-block-grid-8 .character-select-cell {}
  1567. #modal-default .small-block-grid-8 .character-select-cell:hover {}
  1568.  
  1569. /*
  1570. The username labels.
  1571. */
  1572. #modal-default .small-block-grid-8 .label {}
  1573. #modal-default .small-block-grid-8 .label:hover {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement