From ec34d407a904fea9ba4222ebf37131c9b8a34ca8 Mon Sep 17 00:00:00 2001 From: Yves Gatesoupe Date: Wed, 13 Jan 2016 16:13:32 +0100 Subject: [PATCH] fix(doc): component pages megamenu local navigation stepbar pagination pointed tabs footer --- Gruntfile.js | 2 +- docs-orange/_data/nav.yml | 82 +++++++++ .../_includes/boostwatch/navLocal.html | 155 ++++++++-------- docs-orange/_includes/boostwatch/ofooter.html | 5 +- docs-orange/_includes/nav-boostwatch.html | 2 +- docs-orange/_includes/nav-docs.html | 63 +++++++ docs-orange/assets/img/logo-orange.png | Bin 0 -> 4112 bytes docs-orange/assets/scss/_boosted-docs.scss | 17 +- docs-orange/components/local-navigation.md | 87 +++++++++ docs-orange/components/orange-accordion.md | 135 ++++++++++++++ docs-orange/components/orange-footer.md | 99 +++++++++++ docs-orange/components/orange-forms.md | 10 ++ docs-orange/components/orange-megamenu.md | 167 ++++++++++++++++++ docs-orange/components/orange-modal.md | 10 ++ docs-orange/components/orange-pagination.md | 23 +++ docs-orange/components/orange-pointed-tabs.md | 47 +++++ docs-orange/components/orange-stepbar.md | 51 ++++++ docs-orange/components/orange-tables.md | 10 ++ docs-orange/examples/orange-news/index.html | 10 +- docs-orange/index.html | 122 ++----------- scss/_o-pagination.scss | 34 ++-- scss/_o-special_font-size.scss | 26 --- scss/_orange-css.scss | 40 ++--- 23 files changed, 922 insertions(+), 275 deletions(-) create mode 100644 docs-orange/_data/nav.yml create mode 100644 docs-orange/_includes/nav-docs.html create mode 100644 docs-orange/assets/img/logo-orange.png create mode 100644 docs-orange/components/local-navigation.md create mode 100644 docs-orange/components/orange-accordion.md create mode 100644 docs-orange/components/orange-footer.md create mode 100644 docs-orange/components/orange-forms.md create mode 100644 docs-orange/components/orange-megamenu.md create mode 100644 docs-orange/components/orange-modal.md create mode 100644 docs-orange/components/orange-pagination.md create mode 100644 docs-orange/components/orange-pointed-tabs.md create mode 100644 docs-orange/components/orange-stepbar.md create mode 100644 docs-orange/components/orange-tables.md delete mode 100644 scss/_o-special_font-size.scss diff --git a/Gruntfile.js b/Gruntfile.js index 09fc82f4e0..dca6f7ee26 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -520,7 +520,7 @@ module.exports = function (grunt) { }, docs: { /* boosted mod */ - files: ['docs/examples/**/*', 'docs/_includes/**/*', 'docs-orange/**/*', '!docs/assets/**/*'], + files: ['docs-orange/**/*'], tasks: ['dist-css', 'docs'] /* end mod */ } diff --git a/docs-orange/_data/nav.yml b/docs-orange/_data/nav.yml new file mode 100644 index 0000000000..d46775fcf7 --- /dev/null +++ b/docs-orange/_data/nav.yml @@ -0,0 +1,82 @@ +- title: Getting started + pages: + - title: Introduction + - title: Download + - title: Browsers & devices + - title: Options + - title: Flexbox + - title: Build tools + - title: Best practices + +- title: Layout + pages: + - title: Overview + - title: Grid + - title: Media object + - title: Responsive utilities + +- title: Content + pages: + - title: Reboot + - title: Typography + - title: Code + - title: Images + - title: Tables + - title: Figures + +- title: Components + pages: + - title: Buttons + - title: Button group + - title: Button dropdown + - title: Forms + - title: Input group + - title: Dropdowns + - title: Jumbotron + - title: Label + - title: Alerts + - title: Card + - title: Navs + - title: Navbar + # boosted mod + - title: Orange pointed tabs + - title: Local navigation + - title: Orange megamenu + - title: Orange footer + # end mod + - title: Breadcrumb + # boosted mod + - title: Stepbar + # end mod + - title: Pagination + # boosted mod + - title: Orange Pagination + # end mod + - title: Progress + - title: List group + - title: Modal + - title: Scrollspy + - title: Tooltips + - title: Popovers + - title: Collapse + # boosted mod + - title: Orange accordion + # end mod + - title: Carousel + - title: Utilities + +# - title: Extend +# pages: +# - title: Approach +# - title: Icon fonts + +- title: About + pages: + - title: History + - title: Team + - title: Accessibility + - title: Brand + - title: License + - title: Translations + +- title: Migration diff --git a/docs-orange/_includes/boostwatch/navLocal.html b/docs-orange/_includes/boostwatch/navLocal.html index 2ca29c0147..996acea5da 100644 --- a/docs-orange/_includes/boostwatch/navLocal.html +++ b/docs-orange/_includes/boostwatch/navLocal.html @@ -3,98 +3,85 @@

Local navigation bar

Default local navigation

+

Two levels local navigation

-
-
- +
-
diff --git a/docs-orange/_includes/boostwatch/ofooter.html b/docs-orange/_includes/boostwatch/ofooter.html index 064fc99c7f..6b73da37f7 100644 --- a/docs-orange/_includes/boostwatch/ofooter.html +++ b/docs-orange/_includes/boostwatch/ofooter.html @@ -1,6 +1,5 @@ - + + diff --git a/docs-orange/_includes/nav-boostwatch.html b/docs-orange/_includes/nav-boostwatch.html index 1f87644a03..83b068db1a 100644 --- a/docs-orange/_includes/nav-boostwatch.html +++ b/docs-orange/_includes/nav-boostwatch.html @@ -10,7 +10,7 @@ Bullet point
- Local navigation bar + Local navigation
Accordions diff --git a/docs-orange/_includes/nav-docs.html b/docs-orange/_includes/nav-docs.html new file mode 100644 index 0000000000..2155318fa8 --- /dev/null +++ b/docs-orange/_includes/nav-docs.html @@ -0,0 +1,63 @@ +
+ + + + + + + +
diff --git a/docs-orange/assets/img/logo-orange.png b/docs-orange/assets/img/logo-orange.png new file mode 100644 index 0000000000000000000000000000000000000000..7e4340b335b230df01d1b479250afbc53ed83602 GIT binary patch literal 4112 zcmV+r5by7aP)KLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_LC6RbVIkUx0b+_+BaR3cnT7Zv!AJxW zizFb)h!jyGOOZ85F;a?DAXP{m@;!0_IfqH8(HlgRxt7s3}k3K`kFu>>-2Q$QMFfPW!La{h336o>X zu_CMttHv6zR;&ZNiS=X8v3CR#fknUxHUxJ0uoBa_M6WNWeqIg~6QE69c9o#eyhGvpiOA@W-aonk<7r1(?fC{oI5N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ohF?iYe%!38{x1!BAAa>X zKhkaD5r4-UrfILHY|T`&q{Q!RHK7i(X}Q1WJ)`RHddpOy52eRq%(6l!6#<%^CG%Eb zd|f+N_J5`0#>(;rnX^pmULqC-^!RRh|3P|MtwdC7#uE!;<osS6o32^->JKsG+b zmUWCCrmweIg;%Nzw=T9abIr$(Sf9S5#h$J{Dn(@)3+s*dNd8EzT_M}wBs)_}r^zjg zsawPO-%^=7puQL=97*vQ`TYdPzLGqoxk+0N%D9iXNeBK zig-jo{dm8>&SuF3%fT4bVB0d{8bHqcKrYf7*R~@Rl_9o_m>@u94f9utQ5+YbxSaNj z`2bY_vHFu#YydTBp@$1`%>1XVg|C{!+vL56$+GpiZ~IoIEcLZa`cqdh08S=JupsmD zfoIfhFH2Jco)GClgx15j7xxbvI$CKvMp3y=s?;#1d@`f2)o6(JUva$t8et>XE&ycH zv(k7#bBogxmoVQq%?AOksM5;{bjmDBuLDqD&oly9E_>_PyH&kxjrU5Z^Di~XNnN8v zV`j^09$GI?Y-a8O89fmk`n%QfB-RVyWy`(|I%}!StEQ|15g9+zocdN@n2Yx-QEe9p{3JOPY_PBojf_$-79LOucb~(0F&K$yppX=4jl)Ms&ceD8gO~$3U zk>k5`SP7AC4sDgLv+6qJkD|GeqdTlW&eQM#i5Q^{K3^?4`BE~D`gPKBl0%=V>&b}m zST_4UV8c=?+BGov@Ulgh6%an(U!N_=uu1qNAOkE&LK5tBtfmTYszpjVM!a+pcEJV% zaS*W3(kXh)?b>$C`mRSIA>f6NV9 zWj^iWogv~$;k(F^NVu!G+sKs^q*c-M4!z4Z@-@>(4x^g zb)l4$6FRR)c33Csu`kiM|I+O<^Tbq-`Op79NNRsCw!!0H(E-^7e+~f55^6hj&;k$u O0000
- - diff --git a/scss/_o-pagination.scss b/scss/_o-pagination.scss index c4b50a1928..9381aa1eed 100644 --- a/scss/_o-pagination.scss +++ b/scss/_o-pagination.scss @@ -1,16 +1,19 @@ // -// Pagination (multiple pages) -// -------------------------------------------------- +// Orange pagination +// +.o-pagination .page-link { + border: none; +} + .o-pagination { display: inline-block; padding-left: 0; margin: $line-height-computed 0; border-radius: $border-radius-base; - > li { + > .page-item { display: inline; // Remove list-style and block-level defaults - > a, - > span { + > .page-link { position: relative; float: left; // Collapse white-space padding: $padding-base-vertical $padding-base-horizontal; @@ -22,16 +25,14 @@ margin-left: 0; } &:first-child { - > a, - > span { + > .page-link { margin-left: 0; @include border-left-radius($border-radius-base); margin-right: -1px; } } &:last-child { - > a, - > span { + > .page-link { @include border-right-radius($border-radius-base); border-right: 0; margin-left: -1px; @@ -39,8 +40,7 @@ } } - > li > a, - > li > span { + > .page-item > .page-link { &:hover, &:focus { color: $pagination-active-color; @@ -50,8 +50,7 @@ } } - > .active > a, - > .active > span { + > .active .page-link { &, &:hover, &:focus { @@ -64,12 +63,9 @@ } > .disabled { - > span, - > span:hover, - > span:focus, - > a, - > a:hover, - > a:focus { + > .page-link:hover, + > .page-link:focus, + > .page-link { color: $pagination-disabled-color; background-color: $pagination-disabled-bg; border-color: $pagination-disabled-border; diff --git a/scss/_o-special_font-size.scss b/scss/_o-special_font-size.scss deleted file mode 100644 index 91b1f2c395..0000000000 --- a/scss/_o-special_font-size.scss +++ /dev/null @@ -1,26 +0,0 @@ -.lead { - font-size: (floor(($font-size-base * 1.15)*10)/10); - - @media (min-width: $screen-sm-min) { - font-size: ($font-size-base * 1.5); - } -} -pre { - font-size: ($font-size-base - 0.1); // Xrem to X-0.1rem -} -.panel-title { - font-size: (ceil(($font-size-base * 1.125)*10)/10); -} -@media screen and (min-width: $screen-sm-min) { - .carousel-control { - .glyphicon-chevron-left, - .glyphicon-chevron-right, - .icon-prev, - .icon-next { - font-size: 3.0rem; - } - } -} -.popover-title { - line-height: 1.8rem; -} \ No newline at end of file diff --git a/scss/_orange-css.scss b/scss/_orange-css.scss index 07b4dc7f24..cd9f7d2363 100644 --- a/scss/_orange-css.scss +++ b/scss/_orange-css.scss @@ -589,29 +589,29 @@ caption { // bits from bootstrap-orange2015.less -// a { -// color: $link-color; -// text-decoration: underline; -// -// &:hover, -// &:focus { -// color: $link-hover-color; -// text-decoration: $link-hover-decoration; -// } -// +a { + color: $link-color; + text-decoration: underline; + + &:hover, + &:focus { + color: $link-hover-color; + text-decoration: $link-hover-decoration; + } + // &:focus { // @include tab-focus(); // } -// } -// -// nav a, -// .dropdown-menu a, -// .dropdown a, -// .navbar a, -// .nav a, -// a.btn { -// text-decoration: none; -// } +} + +nav a, +.dropdown-menu a, +.dropdown a, +.navbar a, +.nav a, +a.btn { + text-decoration: none; +} // Horizontal forms //