Flexible Boxes (CSS: character)

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