From: Jeremy Thomas Date: Tue, 14 Mar 2017 22:25:22 +0000 (+0000) Subject: Fix container X-Git-Tag: 0.4.0~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c98dbb77f27fb4bfa2536181044329df0338cf0c;p=thirdparty%2Fbulma.git Fix container --- diff --git a/docs/_includes/bsa.html b/docs/_includes/bsa.html index 9130cab05..4c8794d6a 100644 --- a/docs/_includes/bsa.html +++ b/docs/_includes/bsa.html @@ -1,19 +1,28 @@ -
- + + +
-
-
+
+
+

Bulma Partners

+

Keeping the project alive!

+
+ +
+
+
-
+ + diff --git a/docs/_includes/footer.html b/docs/_includes/footer.html index 6127f8b97..56243989a 100644 --- a/docs/_includes/footer.html +++ b/docs/_includes/footer.html @@ -65,7 +65,7 @@
- +
@@ -102,57 +102,6 @@ -{% if page.route == 'index' %} - -{% endif %} - diff --git a/docs/bulma-docs.sass b/docs/bulma-docs.sass index 39906d79b..bf688c68d 100644 --- a/docs/bulma-docs.sass +++ b/docs/bulma-docs.sass @@ -10,6 +10,7 @@ @import "./sass/specific" @import "./sass/example" @import "./sass/bsa" +@import "./sass/route" html \::-moz-selection diff --git a/docs/css/bulma-docs.css b/docs/css/bulma-docs.css index a58b4c291..2f29f5717 100644 --- a/docs/css/bulma-docs.css +++ b/docs/css/bulma-docs.css @@ -2618,23 +2618,24 @@ input[type="submit"].button { @media screen and (min-width: 1000px) { .container { margin: 0 auto; - max-width: 960px; + width: 960px; } .container.is-fluid { margin: 0 20px; max-width: none; + width: auto; } } @media screen and (min-width: 1192px) { .container { - max-width: 1152px; + width: 1152px; } } @media screen and (min-width: 1384px) { .container { - max-width: 1344px; + width: 1344px; } } @@ -3628,13 +3629,18 @@ a.nav-item.is-tab.is-active { align-items: stretch; display: flex; min-height: 3.25rem; - width: 100%; } .nav.has-shadow { box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1); } +@media screen and (max-width: 768px) { + .nav > .container { + width: 100%; + } +} + .pagination { font-size: 1rem; } @@ -6709,12 +6715,17 @@ html.route-index #carbon { padding: 2rem; } +.bsa-cpc { + min-height: 1px; +} + #_default_ .default-ad { - background-color: #00d1b2; + background-color: rgba(0, 0, 0, 0.3); border-radius: 2px; - color: #fff; + color: white; display: inline-block; - font-size: 12px; + font-size: 10px; + font-weight: bold; padding: 0 4px; text-transform: uppercase; vertical-align: top; @@ -6724,8 +6735,9 @@ html.route-index #carbon { background-color: white; border-radius: 5px; box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1); + color: #4a4a4a; display: block; - line-height: 1.25; + line-height: 1.375; margin-top: 15px; padding: 15px; padding-left: 70px; @@ -6765,6 +6777,9 @@ html.route-index #carbon { } @media screen and (min-width: 769px) { + .bsa .columns { + min-height: 120px; + } #_default_ { display: flex; justify-content: center; @@ -6784,6 +6799,52 @@ html.route-index #carbon { } } +html.route-index .title.is-2 { + position: relative; +} + +html.route-index .title.is-2 a { + color: #242424; + padding-left: 48px; + position: relative; +} + +html.route-index .title.is-2 a:hover { + color: #00d1b2; +} + +html.route-index .title.is-2 .icon.is-medium { + left: 8px; + position: absolute; + top: 10px; +} + +html.route-index .hero .title.is-2 a { + color: white; +} + +html.route-index .hero .title.is-2 a:hover { + color: white; +} + +html.route-index .hero.is-primary a.column, +html.route-index .hero.is-primary a.column:hover { + color: white; +} + +html.route-index .hero.is-primary a.column:hover .title strong { + border-bottom: 1px solid; +} + +@media screen and (max-width: 979px) { + html.route-index .title.is-2 a { + padding-left: 0; + } + html.route-index .title.is-2 .icon.is-medium { + display: none; + } +} + html ::-moz-selection { background: #00d1b2; color: #fff; diff --git a/docs/documentation/components/card.html b/docs/documentation/components/card.html index cb63ba398..80d62c03d 100644 --- a/docs/documentation/components/card.html +++ b/docs/documentation/components/card.html @@ -138,15 +138,22 @@ doc-subtab: card

- If Tetris has taught me anything it's that errors pile up and accomplishments disappear. + “There are two hard things in computer science: cache invalidation, naming things, and off-by-one errors.”

- Mark Twain + Jeff Atwood

diff --git a/docs/images/paypal-donate.png b/docs/images/paypal-donate.png new file mode 100644 index 000000000..19ffbc0d7 Binary files /dev/null and b/docs/images/paypal-donate.png differ diff --git a/docs/sass/bsa.sass b/docs/sass/bsa.sass index d3dbd89cc..abdd83fd0 100644 --- a/docs/sass/bsa.sass +++ b/docs/sass/bsa.sass @@ -1,13 +1,17 @@ .bsa padding: 2rem +.bsa-cpc + min-height: 1px + #_default_ .default-ad - background-color: $primary + background-color: rgba(black, 0.3) border-radius: 2px - color: $primary-invert + color: $white display: inline-block - font-size: 12px + font-size: 10px + font-weight: bold padding: 0 4px text-transform: uppercase vertical-align: top @@ -15,8 +19,9 @@ background-color: $white border-radius: $radius-large box-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px rgba($black, 0.1) + color: $text display: block - line-height: 1.25 + line-height: 1.375 margin-top: 15px padding: 15px padding-left: 70px @@ -44,6 +49,9 @@ font-weight: $weight-bold +tablet + .bsa + .columns + min-height: 120px #_default_ display: flex justify-content: center diff --git a/docs/sass/route.sass b/docs/sass/route.sass new file mode 100644 index 000000000..7e40335d2 --- /dev/null +++ b/docs/sass/route.sass @@ -0,0 +1,36 @@ +html.route-index + .title.is-2 + position: relative + + .title.is-2 a + color: #242424 + padding-left: 48px + position: relative + + .title.is-2 a:hover + color: #00d1b2 + + .title.is-2 .icon.is-medium + left: 8px + position: absolute + top: 10px + + .hero .title.is-2 a + color: white + + .hero .title.is-2 a:hover + color: white + + .hero.is-primary a.column, + .hero.is-primary a.column:hover + color: white + + .hero.is-primary a.column:hover .title strong + border-bottom: 1px solid + + @media screen and (max-width: 979px) + .title.is-2 a + padding-left: 0 + + .title.is-2 .icon.is-medium + display: none diff --git a/sass/components/nav.sass b/sass/components/nav.sass index 648784abd..527d49558 100644 --- a/sass/components/nav.sass +++ b/sass/components/nav.sass @@ -124,7 +124,10 @@ a.nav-item align-items: stretch display: flex min-height: $nav-height - width: 100% // Modifiers &.has-shadow box-shadow: 0 2px 3px rgba($black, 0.1) + // Responsiveness + +mobile + & > .container + width: 100% diff --git a/sass/elements/other.sass b/sass/elements/other.sass index aca1ed401..167cb815d 100644 --- a/sass/elements/other.sass +++ b/sass/elements/other.sass @@ -5,15 +5,16 @@ position: relative +desktop margin: 0 auto - max-width: $desktop - 40px + width: $desktop - 40px // Modifiers &.is-fluid margin: 0 20px max-width: none + width: auto +widescreen - max-width: $widescreen - 40px + width: $widescreen - 40px +fullhd - max-width: $fullhd - 40px + width: $fullhd - 40px .delete +delete