diff --git a/packages/components/demo/demo.min.js.LICENSE b/packages/components/demo/demo.min.js.LICENSE new file mode 100644 index 000000000000..335ba5290c5c --- /dev/null +++ b/packages/components/demo/demo.min.js.LICENSE @@ -0,0 +1,59 @@ +/*! + Copyright (c) 2017 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/ + +/* flatpickr v4.6.1, @license MIT */ + +/*! ***************************************************************************** + Copyright (c) Microsoft Corporation. All rights reserved. + Licensed under the Apache License, Version 2.0 (the "License"); you may not use + this file except in compliance with the License. You may obtain a copy of the + License at http://www.apache.org/licenses/LICENSE-2.0 + + THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED + WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, + MERCHANTABLITY OR NON-INFRINGEMENT. + + See the Apache Version 2.0 License for specific language governing permissions + and limitations under the License. + ***************************************************************************** */ + +/* flatpickr v4.5.7, @license MIT */ + +/* +object-assign +(c) Sindre Sorhus +@license MIT +*/ + +/** @license React v16.9.0 + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** @license React v16.9.0 + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** @license React v0.15.0 + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/*! https://mths.be/punycode v1.4.1 by @mathias */ diff --git a/packages/components/docs/sass.md b/packages/components/docs/sass.md index 13cb6a0b503e..af2fdc5094cc 100644 --- a/packages/components/docs/sass.md +++ b/packages/components/docs/sass.md @@ -1236,18 +1236,25 @@ yet. ### ❌carbon--make-col [mixin] -Define the width of the column for a given span and column count. +Define the width of the column for a given span and column count. A width of 0 +will hide the column entirely.
Source code ```scss @mixin carbon--make-col($span, $columns) { - flex: 0 0 percentage($span / $columns); - // Add a `max-width` to ensure content within each column does not blow out - // the width of the column. Applies to IE10+ and Firefox. Chrome and Safari - // do not appear to require this. - max-width: percentage($span / $columns); + @if $span == 0 { + display: none; + } @else { + // Explicitly include `display: block` to override + display: block; + flex: 0 0 percentage($span / $columns); + // Add a `max-width` to ensure content within each column does not blow out + // the width of the column. Applies to IE10+ and Firefox. Chrome and Safari + // do not appear to require this. + max-width: percentage($span / $columns); + } } ``` @@ -1316,7 +1323,7 @@ Output the CSS required for all the columns in a given grid system. $columns: map-get(map-get($breakpoints, $breakpoint), columns); // Allow columns to stretch full width below their breakpoints - @for $i from 1 through $columns { + @for $i from 0 through $columns { .#{$prefix}--col#{$infix}-#{$i} { @include carbon--make-col-ready(); } @@ -1344,7 +1351,7 @@ Output the CSS required for all the columns in a given grid system. max-width: 100%; } - @for $i from 1 through $columns { + @for $i from 0 through $columns { .#{$prefix}--col#{$infix}-#{$i} { @include carbon--make-col($i, $columns); } @@ -10261,8 +10268,9 @@ Include a type reset for a given body and mono font family } body { - font-family: $body-font-family; @include carbon--font-weight('regular'); + + font-family: $body-font-family; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; @@ -16004,7 +16012,7 @@ Date picker styles .#{$prefix}--date-picker__calendar, .flatpickr-calendar.open { - @include layer('pop-out'); + @include box-shadow; background-color: $ui-01; display: flex; flex-direction: column; @@ -16401,6 +16409,7 @@ Dropdown styles border: none; border-bottom: 1px solid $ui-04; width: 100%; + height: rem(40px); cursor: pointer; color: $text-01; outline: 2px solid transparent; @@ -16468,7 +16477,7 @@ Dropdown styles } .#{$prefix}--dropdown--open .#{$prefix}--dropdown-list { - @include layer('overlay'); + @include box-shadow; } .#{$prefix}--dropdown--light { @@ -16516,7 +16525,7 @@ Dropdown styles .#{$prefix}--dropdown-list { @include reset; @include focus-outline('reset'); - @include layer('overlay'); + @include box-shadow; @include type-style('body-short-01'); background-color: $ui-01; display: flex; @@ -16588,6 +16597,18 @@ Dropdown styles } } + .#{$prefix}--dropdown--sm .#{$prefix}--dropdown-link { + padding-top: rem(7px); + padding-bottom: rem(7px); + height: rem(32px); + } + + .#{$prefix}--dropdown--xl .#{$prefix}--dropdown-link { + padding-top: rem(15px); + padding-bottom: rem(15px); + height: rem(48px); + } + .#{$prefix}--dropdown--focused, .#{$prefix}--dropdown-link:focus { @include focus-outline('outline'); @@ -16732,7 +16753,7 @@ Dropdown styles .#{$prefix}--dropdown--inline.#{$prefix}--dropdown--open:focus .#{$prefix}--dropdown-list { - @include layer('overlay'); + @include box-shadow; } .#{$prefix}--dropdown--inline .#{$prefix}--dropdown-link { @@ -17460,8 +17481,21 @@ List styles margin-top: 0; } - .#{$prefix}--list--ordered { - list-style-type: decimal; + .#{$prefix}--list--ordered:not(.#{$prefix}--list--nested) { + counter-reset: item; + } + + .#{$prefix}--list--ordered:not(.#{$prefix}--list--nested) + > .#{$prefix}--list__item { + position: relative; + } + + .#{$prefix}--list--ordered:not(.#{$prefix}--list--nested) + > .#{$prefix}--list__item::before { + content: counter(item) '.'; + counter-increment: item; + position: absolute; + left: rem(-24px); } .#{$prefix}--list--ordered.#{$prefix}--list--nested { @@ -17964,6 +17998,14 @@ List box styles } } + .#{$prefix}--list-box--sm .#{$prefix}--list-box__menu-item { + height: rem(32px); + } + + .#{$prefix}--list-box--xl .#{$prefix}--list-box__menu-item { + height: rem(48px); + } + .#{$prefix}--list-box--disabled .#{$prefix}--list-box__menu-item:hover { background-color: transparent; } @@ -18029,6 +18071,18 @@ List box styles } } + .#{$prefix}--list-box--sm .#{$prefix}--list-box__menu-item__option { + padding-top: rem(7px); + padding-bottom: rem(7px); + height: rem(32px); + } + + .#{$prefix}--list-box--xl .#{$prefix}--list-box__menu-item__option { + padding-top: rem(15px); + padding-bottom: rem(15px); + height: rem(48px); + } + .#{$prefix}--list-box--disabled .#{$prefix}--list-box__menu-item:hover .#{$prefix}--list-box__menu-item__option, @@ -18360,13 +18414,13 @@ Modal styles .#{$prefix}--modal { position: fixed; top: 0; - right: 0; - bottom: 0; left: 0; z-index: z('modal'); display: flex; align-items: center; justify-content: center; + width: 100vw; + height: 100vh; content: ''; background-color: transparent; opacity: 0; @@ -18390,7 +18444,8 @@ Modal styles .#{$prefix}--select-input, .#{$prefix}--dropdown, .#{$prefix}--dropdown-list, - .#{$prefix}--number input[type='number'] { + .#{$prefix}--number input[type='number'], + .#{$prefix}--date-picker__input { background-color: $field-02; } } @@ -21670,7 +21725,7 @@ Tabs styles } .#{$prefix}--tabs__nav { - @include layer('overlay'); + @include box-shadow; margin: 0; padding: 0; position: absolute; @@ -22070,6 +22125,7 @@ Tag styles min-width: rem(32px); // ensures tag stays pill shaped; margin: $carbon--spacing-02; border-radius: rem(15px); + cursor: default; &:not(:first-child) { margin-left: 0; @@ -22363,6 +22419,14 @@ Text input styles } } + .#{$prefix}--text-input--large { + height: rem(48px); + } + + .#{$prefix}--text-input--small { + height: rem(32px); + } + .#{$prefix}--password-input { padding-right: $carbon--spacing-08; } @@ -23383,7 +23447,7 @@ Toolbar styles } &::after { - @include layer('overlay'); + @include box-shadow; min-width: rem(24px); max-width: rem(208px); height: rem(24px); @@ -23522,7 +23586,7 @@ Toolbar styles .#{$prefix}--tooltip--definition__bottom, .#{$prefix}--tooltip--definition__top { - @include layer('overlay'); + @include box-shadow; position: absolute; z-index: 1; display: none; @@ -23744,7 +23808,7 @@ Tooltip styles } .#{$prefix}--tooltip { - @include layer('overlay'); + @include box-shadow; @include reset; position: absolute; display: none; diff --git a/packages/elements/docs/sass.md b/packages/elements/docs/sass.md index f65eab5b7afb..b457c59b635a 100644 --- a/packages/elements/docs/sass.md +++ b/packages/elements/docs/sass.md @@ -1080,18 +1080,25 @@ yet. ### ❌carbon--make-col [mixin] -Define the width of the column for a given span and column count. +Define the width of the column for a given span and column count. A width of 0 +will hide the column entirely.
Source code ```scss @mixin carbon--make-col($span, $columns) { - flex: 0 0 percentage($span / $columns); - // Add a `max-width` to ensure content within each column does not blow out - // the width of the column. Applies to IE10+ and Firefox. Chrome and Safari - // do not appear to require this. - max-width: percentage($span / $columns); + @if $span == 0 { + display: none; + } @else { + // Explicitly include `display: block` to override + display: block; + flex: 0 0 percentage($span / $columns); + // Add a `max-width` to ensure content within each column does not blow out + // the width of the column. Applies to IE10+ and Firefox. Chrome and Safari + // do not appear to require this. + max-width: percentage($span / $columns); + } } ``` @@ -1160,7 +1167,7 @@ Output the CSS required for all the columns in a given grid system. $columns: map-get(map-get($breakpoints, $breakpoint), columns); // Allow columns to stretch full width below their breakpoints - @for $i from 1 through $columns { + @for $i from 0 through $columns { .#{$prefix}--col#{$infix}-#{$i} { @include carbon--make-col-ready(); } @@ -1188,7 +1195,7 @@ Output the CSS required for all the columns in a given grid system. max-width: 100%; } - @for $i from 1 through $columns { + @for $i from 0 through $columns { .#{$prefix}--col#{$infix}-#{$i} { @include carbon--make-col($i, $columns); } @@ -9557,8 +9564,9 @@ Include a type reset for a given body and mono font family } body { - font-family: $body-font-family; @include carbon--font-weight('regular'); + + font-family: $body-font-family; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; diff --git a/packages/grid/docs/sass.md b/packages/grid/docs/sass.md index ca597d586a79..15a767ecadee 100644 --- a/packages/grid/docs/sass.md +++ b/packages/grid/docs/sass.md @@ -127,7 +127,7 @@ will hide the column entirely. @if $span == 0 { display: none; } @else { - // Explicitly write `display: block` to override + // Explicitly include `display: block` to override display: block; flex: 0 0 percentage($span / $columns); // Add a `max-width` to ensure content within each column does not blow out @@ -566,12 +566,9 @@ Generate the CSS for a grid for the given breakpoints and gutters @include carbon--make-row(); } - .#{$prefix}--grid--condensed .#{$prefix}--row:not(:last-of-type) { - margin-bottom: $condensed-gutter; - } - - .#{$prefix}--row--condensed + .#{$prefix}--row--condensed { - margin-top: $condensed-gutter; + .#{$prefix}--grid--condensed [class*='#{$prefix}--col'] { + padding-top: $condensed-gutter / 2; + padding-bottom: $condensed-gutter / 2; } @include carbon--make-grid-columns($breakpoints, $grid-gutter); diff --git a/packages/type/docs/sass.md b/packages/type/docs/sass.md index aa9442aca6a0..4d6674aa6f14 100644 --- a/packages/type/docs/sass.md +++ b/packages/type/docs/sass.md @@ -750,8 +750,9 @@ Include a type reset for a given body and mono font family } body { - font-family: $body-font-family; @include carbon--font-weight('regular'); + + font-family: $body-font-family; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;