Skip to content

Commit

Permalink
Merge branch 'master' into progress-indicator-vertical
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan authored Jan 23, 2020
2 parents 6904c54 + db94f99 commit 97efab4
Show file tree
Hide file tree
Showing 5 changed files with 168 additions and 39 deletions.
59 changes: 59 additions & 0 deletions packages/components/demo/demo.min.js.LICENSE
Original file line number Diff line number Diff line change
@@ -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 */
108 changes: 86 additions & 22 deletions packages/components/docs/sass.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<details>
<summary>Source code</summary>

```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);
}
}
```

Expand Down Expand Up @@ -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();
}
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -16468,7 +16477,7 @@ Dropdown styles
}

.#{$prefix}--dropdown--open .#{$prefix}--dropdown-list {
@include layer('overlay');
@include box-shadow;
}

.#{$prefix}--dropdown--light {
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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');
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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;
Expand All @@ -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;
}
}
Expand Down Expand Up @@ -21670,7 +21725,7 @@ Tabs styles
}

.#{$prefix}--tabs__nav {
@include layer('overlay');
@include box-shadow;
margin: 0;
padding: 0;
position: absolute;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -23383,7 +23447,7 @@ Toolbar styles
}

&::after {
@include layer('overlay');
@include box-shadow;
min-width: rem(24px);
max-width: rem(208px);
height: rem(24px);
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -23744,7 +23808,7 @@ Tooltip styles
}

.#{$prefix}--tooltip {
@include layer('overlay');
@include box-shadow;
@include reset;
position: absolute;
display: none;
Expand Down
26 changes: 17 additions & 9 deletions packages/elements/docs/sass.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<details>
<summary>Source code</summary>

```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);
}
}
```

Expand Down Expand Up @@ -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();
}
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -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;
Expand Down
Loading

0 comments on commit 97efab4

Please sign in to comment.