-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
2828 lines (2545 loc) · 119 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" data-ng-controller="AppCtrl">
<head>
<title>is Front-end Styleguide</title>
<!-- General META -->
<meta charset="utf-8">
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1">
<!-- Semantic META -->
<meta name="description" content="is Front-end Styleguide">
<meta name="author" content="fadeit ApS">
<meta name="keywords" content="fadeit, software, development, design agency, mobile, web, applications, systems, aarhus, denmark">
<!-- Application CSS -->
<link rel="stylesheet" href="assets/prism.css">
<link rel="stylesheet" href="vendor/prism-toolbar/source/prism-toolbar.css">
<link rel="stylesheet" href="assets/this-styleguide.css">
<link rel="stylesheet" href="vendor/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="dist/css/is-style-guide.css?31January2015-18:59">
<!-- HTML5 Shim -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<section class="container-fluid">
<header class="intro">
<section class="row-fluid">
<h1>IS Front-end Styleguide</h1>
</section>
</header>
<section class="row-fluid">
<aside class="col-xs-24 col-md-6 col-xl-4">
<section id="toc-container">
<ul id="table-of-contents"></ul>
</section>
</aside>
<section class="col-xs-24 col-md-18 col-xl-20">
<section class="small-container">
<!-- Before you start -->
<article>
<h2 class="toc-heading" id="before-you-start">Before you start</h2>
<h3 class="toc-heading" id="whats-inside">What's inside</h3>
<p>
This styleguide uses a fork of Bootstrap from <a href="https://github.com/fadeit/bootstrap" target="_blank">here</a>, without the components that require JavaScript.<br/>
The purpose of this thing is to achieve a more consistent front-end design and keep everybody in the team sane.<br/> It's also meant to cover all (or most) situations that you'll encounter during development, therefore you should <u>never</u> have to create your own element/style.
Use the code samples and be happy!<br/><br/>
Don't forget, you can resize this page to see how the styles adapt to different viewport sizes!
</p>
</article>
<!-- Colors -->
<article id="colors">
<h2 class="toc-heading" id="colors">Colors</h2>
<p>
The colors in this list are <u>the only colors to be used</u>.
</p>
<h3 class="toc-heading" id="conventions">Conventions</h3>
<ul>
<li>Color variables are prefixed with <b>col</b>.</li>
<li>Darker, contrasting versions of a color are sufixed with <b>_c</b>: <b>@w</b> (white) and <b>@w_c</b> (white contrast)</li>
</ul>
<h3 class="toc-heading" id="color-list">Color list</h3>
<p>
<span class="head-up">Colors are defined in <u>variables.less</u>. A full list can also be found there.</span>
<br/>
Using <u>Sublime Text</u>? Get the <a href="https://github.com/Monnoroch/ColorHighlighter" target="_blank">Color Highlighter</a> package to see the colors in your favorite text editor.
</p>
<p>
<span class="is-tc-fadeit"><b>@col_fadeit</b></span>
<span class="is-bc-fadeit"></span>
<span class="hex"><b>HEX</b> #0fade1</span>
</p>
<p>
<span class="is-tc-fadeit_c"><b>@col_fadeit_c</b></span>
<span class="is-bc-fadeit_c"></span>
<span class="hex"><b>HEX</b> #057A91</span>
</p>
<p>
<span class="is-tc-fadeit_gray"><b>@col_fadeit_gray</b></span>
<span class="is-bc-fadeit_gray"></span>
<span class="hex"><b>HEX</b> #D8D8D7</span>
</p>
<hr/>
<p>
<span class="is-tc-w"><b>@col_w</b></span>
<span class="is-bc-w"></span>
<span class="hex"><b>HEX</b> #FFFFFF</span>
</p>
<p>
<span class="is-tc-ws"><b>@col_ws</b></span>
<span class="is-bc-ws"></span>
<span class="hex"><b>HEX</b> #F5F5F5</span>
</p>
<p>
<span class="is-tc-gray_1"><b>@col_gray_1</b></span>
<span class="is-bc-gray_1"></span>
<span class="hex"><b>HEX</b> #F6F7F7</span>
</p>
<p>
<span class="is-tc-gray_2"><b>@col_gray_2</b></span>
<span class="is-bc-gray_2"></span>
<span class="hex"><b>HEX</b> #F1F1F2</span>
</p>
<p>
<span class="is-tc-gray_3"><b>@col_gray_3</b></span>
<span class="is-bc-gray_3"></span>
<span class="hex"><b>HEX</b> #F3F3F4</span>
</p>
<p>
<span class="is-tc-gray_4"><b>@col_gray_4</b></span>
<span class="is-bc-gray_4"></span>
<span class="hex"><b>HEX</b> #E8E8E8</span>
</p>
<p>
<span class="is-tc-gray_5"><b>@col_gray_5 (@col_w_c)</b></span>
<span class="is-bc-gray_5"></span>
<span class="hex"><b>HEX</b> #D8D8D7</span>
</p>
<p>
<span class="is-tc-gray_6"><b>@col_gray_6</b></span>
<span class="is-bc-gray_6"></span>
<span class="hex"><b>HEX</b> #89898A</span>
</p>
<p>
<span class="is-tc-gray_7"><b>@col_gray_7</b></span>
<span class="is-bc-gray_7"></span>
<span class="hex"><b>HEX</b> #737375</span>
</p>
<p>
<span class="is-tc-gray_8"><b>@col_gray_8</b></span>
<span class="is-bc-gray_8"></span>
<span class="hex"><b>HEX</b> #404041</span>
</p>
<p>
<span class="is-tc-gray_9"><b>@col_gray_9</b></span>
<span class="is-bc-gray_9"></span>
<span class="hex"><b>HEX</b> #3A3A3C</span>
</p>
<p>
<span class="is-tc-text"><b>@col_text</b></span>
<span class="is-bc-text"></span>
<span class="hex"><b>HEX</b> #231F20</span>
</p>
<p>
<span class="is-tc-b"><b>@col_b</b></span>
<span class="is-bc-b"></span>
<span class="hex"><b>HEX</b> #000000</span>
</p>
<p>
<span class="is-tc-base_1"><b>@col_base_1</b></span>
<span class="is-bc-base_1"></span>
<span class="hex"><b>HEX</b> #CAEFF8</span>
</p>
<p>
<span class="is-tc-base_2"><b>@col_base_2</b></span>
<span class="is-bc-base_2"></span>
<span class="hex"><b>HEX</b> #8CCFE1</span>
</p>
<p>
<span class="is-tc-base_3"><b>@col_base_3</b></span>
<span class="is-bc-base_3"></span>
<span class="hex"><b>HEX</b> #4998DE</span>
</p>
<p>
<span class="is-tc-base_4"><b>@col_base_4</b></span>
<span class="is-bc-base_4"></span>
<span class="hex"><b>HEX</b> #3C80BC</span>
</p>
</article>
<!-- Typography -->
<article id="typography-container">
<h2 class="toc-heading" id="typography">
Typography
</h2>
<p>
Use heading 1 (h1) just once per page.<br/>
The measure on the left represents font size in pixels, the second line height. (30/40 pixels = 30px font size, 40px font size). Keep in mind that heading 4 and 5 are in bold.<br/>
The background in the example is not in the styleguide, the headings <b>have no background</b> by default.<br/><br/>
LESS variables are defined as <b>@fs_[heading-number]</b> for font-size (fs) and <b>@lh_[heading-number]</b> for line-heights (lh). Examples: <b>@fs_h1</b>, <b>@lh_h1</b>.
</p>
<h1 class="typography-ex">
<span class="style-detail">Light 30/40 pixels</span>
is heading .h1
</h1>
<h2 class="typography-ex">
<span class="style-detail">Light 28/30 pixels</span>
is heading .h2
</h2>
<h3 class="typography-ex">
<span class="style-detail">Light 20/22 pixels</span>
is heading .h3
</h3>
<h4 class="typography-ex">
<span class="style-detail">Semibold 18/26 pixels</span>
is heading .h4
</h4>
<h5 class="typography-ex">
<span class="style-detail">Semibold 16/24 pixels</span>
is heading .h5
</h5>
<!-- code block -->
<pre class="code-toolbar"><code class="language-markup"><h1>is heading .h1</h1>
<h2>is heading .h2</h2>
<h3>is heading .h3</h3>
<h4>is heading .h4</h4>
<h5>is heading .h5</h5></code></pre>
<!-- end code block -->
<h3 class="toc-heading" id="paragraphs">Default paragraph</h3>
<section class="row-fluid row-paragraph">
<section class="col-xs-24 col-md-18">
<p>
<u>This is a normal paragraph</u>, dummy text from here on. Objectively innovate empowered manufactured products whereas parallel platforms. Holisticly predominate extensible testing procedures for reliable supply chains. Dramatically engage top-line web services vis-a-vis cutting-edge deliverables.<br/>
<u>Use line breaks</u> to go to the next line without space.
</p>
<p>
<u>This is the default space between paragraphs</u>, dummy text from here on. Proactively envisioned multimedia based expertise and cross-media growth strategies. Seamlessly visualize quality intellectual capital without superior collaboration and idea-sharing. Holistically pontificate installed base portals after maintainable products.
</p>
</section>
<section class="col-xs-24 col-md-6">
<span class="style-detail">
Light 15/22 pixels<br/>
Letter-spacing 0.5px<br/>
Margin-bottom 20px
</span>
</section>
</section><!-- row-paragraph -->
<!-- code block -->
<pre class="code-toolbar"><code class="language-markup"><p>
This is a default paragraph, ... <br/>
Use line breaks ...
</p>
<p>
This is the default space between paragraphs, ...
</p></code></pre>
<!-- end code block -->
<p class="head-up">
LESS variables use the @m_ prefix for the equivalent mobile font sizes/line heights.<br/>
For example <b>@m_fs_h1</b> is the mobile correspondent of <b>@fs_h1</b>.
</p>
<h3 class="toc-heading" id="stand-alone-labels">Stand-alone labels</h3>
<p>These labels can be used as 'stand-alone' elements that display a short & concise text. They have no action attached (see <a href="#buttons">buttons</a> for that).</p>
<p class="typography-ex is-label-lg">
Large label <span class="style-detail">Light 28/30</span>
</p>
<!-- code block -->
<pre class="code-toolbar"><code class="language-markup"><!-- Large label default -->
<p class="is-label-lg">
Large label
</p>
<!-- Large label silent -->
<p class="is-label-lg silent">
Large label silent
</p>
<!-- Large label bold -->
<p class="is-label-lg bold">
Large label
</p>
</code></pre>
<!-- end code block -->
<p class="typography-ex is-label-md">
Medium label <span class="style-detail">Light 18/26</span>
</p>
<!-- code block -->
<pre class="code-toolbar"><code class="language-markup"><!-- Medium label default -->
<p class="is-label-md">
Medium label
</p>
<!-- Medium label silent -->
<p class="is-label-md silent">
Medium label
</p>
<!-- Medium label bold -->
<p class="is-label-md bold">
Medium label bold
</p></code></pre>
<!-- end code block -->
<p class="typography-ex is-label-sm">
Small label <span class="style-detail">Light 15/25</span>
</p>
<!-- code block -->
<pre class="code-toolbar"><code class="language-markup"><!-- Small label default -->
<p class="is-label-sm">
Small label
</p>
<!-- Small label silent -->
<p class="is-label-sm silent">
Small label silent
</p>
<!-- Small label bold -->
<p class="is-label-sm bold">
Small label bold
</p></code></pre>
<!-- end code block -->
<p class="typography-ex is-label-xs">
Extra small label <span class="style-detail">Light 13/18</span>
</p>
<!-- code block -->
<pre class="code-toolbar"><code class="language-markup"><!-- Extra small label default -->
<p class="is-label-xs">
Extra small label
</p>
<!-- Extra small label silent -->
<p class="is-label-xs silent">
Extra small label silent
</p>
<!-- Extra small label bold -->
<p class="is-label-xs bold">
Extra small label bold
</p></code></pre>
<!-- end code block -->
<p>
Notice the pattern in the code samples below: label classes are named <u>is-label-*</u> and are by default light.<br/>
To make them bold or silent (faded) add the classes <u>bold</u> or <u>silent</u>.
<br/>
Each label has an <u>inverse</u> state when it is a child of an element which contains the class <u>inverse</u>. See <a href="#sidebars">sidebars</a> for an example; bold and silent style are exemplified below.
</p>
<p class="typography-ex is-label-lg">
Large label <span class="style-detail">Light 28/30</span>
</p>
<p class="typography-ex is-label-lg silent">
Large label silent<span class="style-detail">Light 28/30 , @col_gray_6</span>
</p>
<p class="typography-ex is-label-lg bold">
Large label bold <span class="style-detail">Semibold 28/30</span>
</p>
<p class="head-up">
The code examples use a <p> tag, but headings should be used when appropiate.
</p>
<h3 class="toc-heading" id="combine-label-usage">Combined label usage</h3>
<h4 class="toc-heading" id="company-in-result-list">Company in result list</h4>
<ul class="is-company-result-list">
<li>
<a href="#nowhere">
<figure class="round-image rounded">
<img src="http://placehold.it/85x85" alt="QuickPot"/>
<figcaption>
<h4 class="is-label-md">QuickPot</h4>
<h4 class="is-label-md">Trindsøvej 5, Aarhus C</h4>
<p class="is-label-sm">25 minutes to your location</p>
</figcaption>
</figure>
</a>
</li>
</ul>
<!-- code block -->
<pre class="code-toolbar"><code class="language-markup"><ul class="is-company-result-list">
<li>
<figure class="round-image rounded">
<img src="http://placehold.it/85x85" alt="Image"/>
<figcaption>
<h4 class="is-label-md">QuickPot</h4>
<h4 class="is-label-md">Trindsøvej 5, Aarhus C</h4>
<p class="is-label-sm">25 minutes to your location</p>
</figcaption>
</figure>
</li>
</ul></code></pre>
<!-- end code block -->
<h4 class="toc-heading" id="profile-header-label">Profile header label</h4>
<p>
This label group will be used to display the title of the current page in a profile. It should provide a hint that helps the user identify the page purpose. The small label is optional and shouldn't be included if it doesn't provide useful information.
</p>
<section class="container-fluid spaced extra-space">
<header class="is-profile-header">
<h2 class="is-label-lg">
Edit contact information for the office in
</h2>
<span class="label-sm silent">
Risdalsvej 42, 8260 Viby J
</span>
</header>
</section>
<!-- code block -->
<pre class="code-toolbar"><code class="language-markup"><header class="is-profile-header">
<h2 class="is-label-lg">
Relevant title
</h2>
<span class="label-sm silent">
Relevant extra information
</span>
</header></code></pre>
<!-- end code block -->
<h4 class="toc-heading" id="profile-header-with-image">Profile header with image</h4>
<p>
Use this in combination with photos or logos.
</p>
<section class="container-fluid spaced extra-space header-with-image-space">
<header class="is-profile-header image-header">
<img src="http://placehold.it/45x45" class="rounded" alt="Image">
<h2 class="is-label-lg">
J. Member
</h2>
<span class="label-sm silent">
Surfing the web since December 2014
</span>
</header>
</section>
<!-- code block -->
<pre class="code-toolbar"><code class="language-markup"><header class="is-profile-header image-header">
<img src="http://placehold.it/45x45" class="rounded" alt="Image">
<h2 class="is-label-lg">
J. Member
</h2>
<span class="label-sm silent">
Surfing the web since December 2014
</span>
</header></code></pre>
<!-- end code block -->
<h4 class="toc-heading" id="conversation-bubbles">Conversation bubbles</h4>
<p>
This component can be used in any conversation context, such as: reviews, messages or comments. By default it will alternate message positions, but it can force them to the left or right by adding the class <u>force-message-left</u> or <u>force-message-right</u> to the <u>bubble-row</u>.
</p>
<p class="head-up">Look out for white space, it's going to be displayed in the bubbles!</p>
<section class="container-fluid spaced">
<section class="is-bubbles">
<section class="row-fluid bubble-row">
<figure class="col-xs-6 col-md-8 col-height-sm round-image rounded">
<img src="http://placehold.it/85x85" alt="Image">
<figcaption>
by <b>Alex Testman</b>
</figcaption>
</figure>
<section class="col-xs-18 col-md-16 col-height-sm bubble-message-container">
<section class="bubble-message">Completely synergize resource sucking relationships via premier niche markets. Professionally cultivate one-to-one customer service with robust ideas. Dynamically innovate resource-leveling customer service for state of the art customer service.</section>
<span class="is-label-sm silent bubble-time">
5 minutes ago
</span>
</section>
</section>
<section class="row-fluid bubble-row force-message-right">
<figure class="col-xs-6 col-md-8 col-height-sm round-image rounded">
<img src="http://placehold.it/85x85" alt="Image">
<figcaption>
by <b>Jack Testman</b>
</figcaption>
</figure>
<section class="col-xs-18 col-md-16 col-height-sm bubble-message-container">
<section class="bubble-message">Completely synergize resource sucking relationships via premier niche markets. Professionally cultivate one-to-one customer service with robust ideas.</section>
<span class="is-label-sm silent bubble-time">
7 minutes ago
</span>
</section>
</section>
<section class="row-fluid bubble-row">
<figure class="col-xs-6 col-md-8 round-image rounded">
<img src="http://placehold.it/85x85" alt="Image">
<figcaption>
by <b>Alex Testman</b>
</figcaption>
</figure>
<section class="col-xs-18 col-md-16 bubble-message-container">
<section class="bubble-message">Completely synergize resource sucking relationships via premier niche markets. Professionally cultivate one-to-one customer service with robust ideas. Dynamically innovate resource-leveling customer service for state of the art customer service.<br/><br/>
Completely synergize resource sucking relationships via premier niche markets. Professionally cultivate one-to-one customer service with robust ideas. Dynamically innovate resource-leveling customer service for state of the art customer service.</section>
<span class="is-label-sm silent bubble-time">
10 minutes ago
</span>
</section>
</section>
<section class="row-fluid bubble-row">
<figure class="col-xs-6 col-md-8 round-image rounded">
<img src="http://placehold.it/85x85" alt="Image">
<figcaption>
by <b>Jane Testgirl</b>
</figcaption>
</figure>
<section class="col-xs-18 col-md-16 bubble-message-container">
<section class="bubble-message">Professionally cultivate one-to-one customer service with robust ideas. Dynamically innovate resource-leveling customer service for state of the art customer service.</section>
<span class="is-label-sm silent bubble-time">
25 minutes ago
</span>
</section>
</section>
</section>
</section>
<!-- code block -->
<pre class="code-toolbar"><code class="language-markup"><section class="is-bubbles">
<section class="row-fluid bubble-row">
<figure class="col-xs-6 col-md-8 col-height-sm round-image rounded">
<img src="http://placehold.it/85x85" alt="Image">
<figcaption>
by <b>Alex Testman</b>
</figcaption>
</figure>
<section class="col-xs-18 col-md-16 col-height-sm bubble-message-container">
<section class="bubble-message">
Bubble Text
</section>
<span class="is-label-sm silent bubble-time">
5 minutes ago
</span>
</section>
</section>
</section></code></pre>
<!-- end code block -->
<h4 class="toc-heading" id="small-conversation-bubbles">Small conversation bubbles</h4>
<p>
Conversation bubbles are also available in a smaller size, with reduced spacing and smaller image sizes.
</p>
<section class="container-fluid spaced">
<section class="is-bubbles small-bubbles">
<section class="row-fluid bubble-row">
<figure class="col-xs-3 col-md-4 col-height-sm round-image rounded">
<img src="http://placehold.it/45x45" alt="Image">
<figcaption>
by <b>Alex Testman</b>
</figcaption>
</figure>
<section class="col-xs-21 col-md-20 col-height-sm bubble-message-container">
<section class="bubble-message">Completely synergize resource sucking relationships via premier niche markets. Professionally cultivate one-to-one customer service with robust ideas. Dynamically innovate resource-leveling customer service for state of the art customer service.</section>
<span class="is-label-sm silent bubble-time">
5 minutes ago
</span>
</section>
</section>
<section class="row-fluid bubble-row">
<figure class="col-xs-3 col-md-4 round-image rounded">
<img src="http://placehold.it/85x85" alt="Image">
<figcaption>
by <b>Jane Testgirl</b>
</figcaption>
</figure>
<section class="col-xs-21 col-md-20 bubble-message-container">
<section class="bubble-message">Professionally cultivate one-to-one customer service with robust ideas. Dynamically innovate resource-leveling customer service for state of the art customer service.</section>
<span class="is-label-sm silent bubble-time">
25 minutes ago
</span>
</section>
</section>
</section>
</section>
<!-- code block -->
<pre class="code-toolbar"><code class="language-markup"><section class="is-bubbles small-bubbles">
<section class="row-fluid bubble-row">
<figure class="col-xs-3 col-md-4 col-height-sm round-image rounded">
<img src="http://placehold.it/45x45" alt="Image">
<figcaption>
by <b>Alex Testman</b>
</figcaption>
</figure>
<section class="col-xs-21 col-md-20 col-height-sm bubble-message-container">
<section class="bubble-message">Completely synergize resource sucking relationships via premier niche markets. Professionally cultivate one-to-one customer service with robust ideas. Dynamically innovate resource-leveling customer service for state of the art customer service.</section>
<span class="is-label-sm silent bubble-time">
5 minutes ago
</span>
</section>
</section>
</section></code></pre>
<!-- end code block -->
<p class="head-up">Small conversation bubbles reduce the column size of images (and increase the text size) via column width. Small columns have the <u>col-xs-3 col-md-4</u>, default ones <u>col-xs-6 col-md-8</u>.</p>
<h4 class="toc-heading" id="bubbles-with-rating">Bubbles with ratings</h4>
<p>
(Essentially reviews) Use these for showing comments that have a start rating attached.
</p>
<section class="container-fluid spaced">
<section class="is-bubbles small-bubbles">
<section class="row-fluid bubble-row">
<figure class="col-xs-3 col-md-4 col-height-sm round-image rounded">
<img src="http://placehold.it/45x45" alt="Image">
<figcaption>
by <b>Alex Testman</b>
</figcaption>
</figure>
<section class="col-xs-21 col-md-20 col-height-sm bubble-message-container">
<fieldset class="is-rating-group btn-spe-sm">
<label class="btn btn-spe btn-star btn-activated btn-partial"></label>
<label class="btn btn-spe btn-star btn-activated btn-partial"></label>
<label class="btn btn-spe btn-star btn-activated btn-partial quarter-partial"></label>
<label class="btn btn-spe btn-star btn-activated btn-partial empty-partial"></label>
<label class="btn btn-spe btn-star btn-activated btn-partial empty-partial"></label>
</fieldset>
<section class="bubble-message">Completely synergize resource sucking relationships via premier niche markets. Professionally cultivate one-to-one customer service with robust ideas. Dynamically innovate resource-leveling customer service for state of the art customer service.</section>
<span class="is-label-sm silent bubble-time">5 minutes ago</span>
</section>
</section>
<section class="row-fluid bubble-row">
<figure class="col-xs-3 col-md-4 round-image rounded">
<img src="http://placehold.it/85x85" alt="Image">
<figcaption>
by <b>Jane Testgirl</b>
</figcaption>
</figure>
<section class="col-xs-21 col-md-20 bubble-message-container">
<fieldset class="is-rating-group btn-spe-sm">
<label class="btn btn-spe btn-star btn-activated btn-partial"></label>
<label class="btn btn-spe btn-star btn-activated btn-partial"></label>
<label class="btn btn-spe btn-star btn-activated btn-partial"></label>
<label class="btn btn-spe btn-star btn-activated btn-partial"></label>
<label class="btn btn-spe btn-star btn-activated btn-partial thirds-partial"></label>
</fieldset>
<section class="bubble-message">Professionally cultivate one-to-one customer service with robust ideas. Dynamically innovate resource-leveling customer service for state of the art customer service.</section>
<span class="is-label-sm silent bubble-time">
25 minutes ago
</span>
</section>
</section>
</section>
</section>
<!-- code block -->
<pre class="code-toolbar"><code class="language-markup"><section class="row-fluid bubble-row">
<figure class="col-xs-3 col-md-4 round-image rounded">
<img src="http://placehold.it/85x85" alt="Image">
<figcaption>
by <b>Jane Testgirl</b>
</figcaption>
</figure>
<section class="col-xs-21 col-md-20 bubble-message-container">
<fieldset class="is-rating-group btn-spe-sm">
<label class="btn btn-spe btn-star btn-activated btn-partial"></label>
<label class="btn btn-spe btn-star btn-activated btn-partial"></label>
<label class="btn btn-spe btn-star btn-activated btn-partial"></label>
<label class="btn btn-spe btn-star btn-activated btn-partial"></label>
<label class="btn btn-spe btn-star btn-activated btn-partial thirds-partial"></label>
</fieldset>
<section class="bubble-message">Professionally cultivate one-to-one customer service with robust ideas. Dynamically innovate resource-leveling customer service for state of the art customer service.</section>
<span class="is-label-sm silent bubble-time">
25 minutes ago
</span>
</section>
</section></code></pre>
<!-- end code block -->
</article>
<!-- Scaffolding -->
<article>
<h2 class="toc-heading" id="scaffolding-and-layout">Scaffolding: layout & grid system</h2>
<p class="head-up">
<!-- TODO: Update with responsive changes -->
There have been a lot of big changes with the implementation of responsive design, therefore some bits might be missing from the SG. Please double check with an example from the working application until everything is up to date.
</p>
<p>
The grid system is made out of 24 columns and works exactly as the <a href="http://getbootstrap.com/css/#grid" target="_blank">Bootstrap Grid</a>, times 2. The grid double-up is chosen for flexiblity. In markup, it just means doubling up all the CSS column sizes.
</p>
<h3 class="toc-heading" id="breakpoints">Breakpoints</h3>
<p>
There are 4 breakpoints. Properties that do not apply to a breakpoint are available up to a resolution of <u>767 pixels</u>.<br/><br/> LESS variables names: when using (min-height) with media queries, the name of the LESS variable is <b>@bp_[breakpoint_size]</b>. When using (max-height) with media queries, the name of the LESS variable is <b>@bp_[breakpoint_size]_max</b>.<br/>
This prevents overlapping when using both min and max height.<br/><br/>
It's a good idea to stick with min-height (that's usually a consequence of mobile-first design).<br/>
</p>
<table class="table table-striped table-hover">
<thead>
<tr>
<th>LESS name (min-height)</th>
<th>LESS name (max-height)</th>
<th>When it applies (pixels)</th>
</tr>
</thead>
<tbody>
<tr>
<td>@bp_sm</td>
<td>@bp_sm_max</td>
<td>> 767px</td>
</tr>
<tr>
<td>@bp_md</td>
<td>@bp_md_max</td>
<td>> 991px</td>
</tr>
<tr>
<td>@bp_lg</td>
<td>@bp_lg_max</td>
<td>> 1199px</td>
</tr>
<tr>
<td>@bp_xl</td>
<td>@bp_xl_max</td>
<td>> 1599px</td>
</tr>
</tbody>
</table>
<p>
As with Bootstrap, column sizes can be specified in the HTML markup for each breakpoint. A class of <u>col-md-6</u> will have the size of 6 columns on viewports bigger than <u>991 pixels</u>. To get an adaptive layout, column sizes can be stacked on one element.<br/>
For example, a class of <u>col-xs-24 col-md-6</u> will have the size of 24 columns up to 991 pixels and 6 columns for viewports bigger than that.
</p>
<h3 class="toc-heading" id="normal-page">Normal page</h3>
<p>
Pages are made out of multiple rows, each row containing 24 columns. For mobile devices <u>(col-xs)</u>, the column will take 100% of the width (all 24 columns). The example below is for a page with sidebars on both right and left.
</p>
<section class="container-fluid bordered">
<section class="row-fluid column-row">
<span class="fluid-label">.row-fluid</span>
<aside class="col-xs-24 col-md-6">col-xs-24 col-md-6</aside>
<article class="col-xs-24 col-md-12">col-xs-24 col-md-12</article>
<aside class="col-xs-24 col-md-6">col-xs-24 col-md-6</aside>
</section>
</section>
<!-- code block -->
<pre class="code-toolbar"><code class="language-markup"><section class="container-fluid is-normal-page">
<section class="row-fluid">
<aside class="col-xs-24 col-md-6">col-xs-24 col-md-6</aside>
<article class="col-xs-24 col-md-12">col-xs-24 col-md-12</article>
<aside class="col-xs-24 col-md-6">col-xs-24 col-md-6</aside>
</section>
</section></code></pre>
<!-- end code block -->
<h3 class="toc-heading" id="company-profile">Company profile</h3>
<p>
Company profiles have a similar layout to normal pages, but they require a different class on the container: <b>is-company-profile</b>.<br/>
Moreover, the article in the center (usually between a left nav and a right sidebar) should have the class <b>company-content</b>.
</p>
<br/>
<!-- code block -->
<pre class="code-toolbar"><code class="language-markup"><section class="container-fluid is-company-profile">
<section class="row-fluid">
<nav class="col-xs-24 col-md-4 is-menu-container is-aside-left">
col-xs-24 col-md-4
</nav>
<article class="col-xs-24 col-md-14 col-md-push-4 company-content">
col-xs-24 col-md-14
</article>
<aside class="row-fluid col-xs-24 col-md-6 is-aside-contact is-aside-right">
col-xs-24 col-md-6
</aside>
</section>
</section></code></pre>
<!-- end code block -->
<h4 class="toc-heading" id="fixing-sidebars">Fixing sidebars</h4>
<p>
Sidebar fixing is done with JavaScript (not included in the style guide -> an Angular attribute directive: <u>fixed-component</u>). To fix on the left or right a class is needed on the <u>row-fluid</u> of the element to fix: <u>is-aside-left</u> and <u>is-aside-right</u> respectively. An AngularJS template example is provided below.
</p>
<br/>
<!-- code block -->
<pre class="code-toolbar"><code class="language-markup"><section class="container-fluid is-company-profile">
<section class="row-fluid">
<nav company-profile-navigation fixed-component></nav>
<!-- directive template that contains:
<nav class="col-xs-24 col-md-4 is-menu-container is-aside-left">
col-xs-24 col-md-4
</nav>
-->
<article company-main-content></article>
<!-- directive template that contains:
<article class="col-xs-24 col-md-14 col-md-push-4 company-content">
col-xs-24 col-md-14
</article>
-->
<aside company-contact-sidebar fixed-component></aside>
<!-- directive template that contains:
<aside class="row-fluid col-xs-24 col-md-6 is-aside-contact is-aside-right">
col-xs-24 col-md-6
</aside>>
-->
</section>
</section></code></pre>
<!-- end code block -->
<h3 class="toc-heading" id="map-pages">Map pages</h3>
<p>
The 'map pages' are all the views that have maps as a central interface element.
</p>
<h4 class="toc-heading" id="layout-full-screen">Full screen</h4>
<p>
The full screen map is used as the entry point of the application.
</p>
<section class="container-fluid bordered">
<section class="row-fluid column-row">
<span class="fluid-label">.row-fluid</span>
<article class="col-xs-24">col-xs-24</article>
</section>
</section>
<!-- code block -->
<pre class="code-toolbar"><code class="language-markup"><section class="container-fluid is-full-screen">
<section class="row-fluid">
<article class="col-xs-24">
col-xs-24
</article>
</section>
</section></code></pre>
<!-- end code block -->
<h4 class="toc-heading" id="layout-result-list">Result list</h4>
<p>
The result list is used for displaying search results quickly alongside the map, sorted by location.
</p>
<section class="container-fluid bordered">
<section class="row-fluid col-xs-24 col-md-16 column-row">
<span class="fluid-label">
.row-fluid .col-xs-24 .col-md-16
</span>
<article class="col-xs-24">col-xs-24</article>
</section>
<aside class="row-fluid col-xs-24 col-md-8 column-row">
<span class="fluid-label">
.row-fluid .col-xs-24 .col-md-8
</span>
<article class="col-xs-24">col-xs-24</article>
</aside>
</section>
<!-- code block -->
<pre class="code-toolbar"><code class="language-markup"><section class="container-fluid is-result-list">
<section class="row-fluid col-xs-24 col-md-16">
<article class="col-xs-24">
col-xs-24
</article>
</section>
<aside class="row-fluid col-xs-24 col-md-8">
<article class="col-xs-24">
col-xs-24
</article>
</aside>
</section></code></pre>
<!-- end code block -->
<h4 class="toc-heading" id="layout-result-detail">Result detail</h4>
<p>Pressing a result from the list will cause a transition to the result detail. The map will then be minimized to a size of 4 columns.</p>
<section class="container-fluid bordered">
<aside class="row-fluid col-xs-24 col-md-4 column-row">
<span class="fluid-label">
.row-fluid <br/>
.col-xs-24 <br/>
.col-md-4
</span>
<article class="col-xs-24">col-xs-24</article>
</aside>
<section class="row-fluid col-xs-24 col-md-8 column-row">
<span class="fluid-label">
.row-fluid .col-xs-24 .col-md-8
</span>
<article class="col-xs-24">col-xs-24</article>
</section>
<section class="row-fluid col-xs-24 col-md-12 column-row">
<span class="fluid-label">
.row-fluid .col-xs-24 .col-md-12
</span>
<article class="col-xs-24">col-xs-24</article>
</section>
</section>
<!-- code block -->
<pre class="code-toolbar"><code class="language-markup"><section class="container-fluid is-result-detail">
<aside class="row-fluid col-xs-24 col-md-4">
<article class="col-xs-24">
col-xs-24
</article>
</aside>
<section class="row-fluid col-xs-24 col-md-8">
<article class="col-xs-24">
col-xs-24
</article>
</section>
<section class="row-fluid col-xs-24 col-md-12">
<article class="col-xs-24">
col-xs-24
</article>
</section>
</section></code></pre>
<!-- end code block -->
<p>
In this example the row heights <u>are not equal</u>. If that's the desired layout, extra classes need to be added to convert the rows into table rows.
</p>
<section class="container-fluid is-result-detail container-height-md height-top">
<section class="row-fluid row-height-md bordered">
<aside class="row-fluid col-xs-24 col-md-4 column-row col-height-md">
<span class="fluid-label">
.row-fluid <br/>
.col-xs-24 <br/>
.col-md-4
<article class="col-xs-24">
col-xs-24
</article>
</span>
</aside>
<section class="row-fluid col-xs-24 col-md-8 column-row col-height-md">
<span class="fluid-label">
.row-fluid .col-xs-24 .col-md-8
<article class="col-xs-24">
col-xs-24
</article>
</span>
</section>
<section class="row-fluid col-xs-24 col-md-12 column-row col-height-md">
<span class="fluid-label">
.row-fluid .col-xs-24 .col-md-12
<article class="col-xs-24">
col-xs-24
</article>
</span>
</section>
</section>
</section>
<!-- code block -->
<pre class="code-toolbar"><code class="language-markup"><section class="container-fluid is-result-detail container-height-md height-top">
<section class="row-fluid row-height-md">
<aside class="row-fluid col-xs-24 col-md-4 col-height-md">
<article class="col-xs-24">
col-xs-24
</article>
</aside>
<section class="row-fluid col-xs-24 col-md-8 col-height-md">
<article class="col-xs-24">
col-xs-24
</article>
</section>
<section class="row-fluid col-xs-24 col-md-12 col-height-md">
<article class="col-xs-24">
col-xs-24
</article>
</section>
</section>
</section></code></pre>
<!-- end code block -->
<p class="head-up">
The table transformation will be applied according to the specified breakpoint (similar to how columns work). In this example that is <b>@bp_md</b> or viewport sizes bigger than <b>991 pixels</b>.
</p>