Skip to content

Commit

Permalink
Merge branch 'master' into visited-link
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan authored Feb 3, 2020
2 parents ee8ed54 + af33d29 commit 91aed79
Show file tree
Hide file tree
Showing 24 changed files with 276 additions and 191 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/deploy-vanilla-devenv.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Deploy vanilla devenv to IBM Cloud

on:
push:
tags:
# Matches tags that have the shape `vX.Y.Z`. Reference:
# https://help.github.com/en/articles/workflow-syntax-for-github-actions#onpushpull_requesttagsbranches
- 'v[0-9]+.[0-9]+.[0-9]+'

# Ignore tags that use a preid after `vX.Y.Z`, for example: vX.Y.Z-alpha.0
# https://help.github.com/en/articles/workflow-syntax-for-github-actions#example-using-positive-and-negative-patterns
- '!v[0-9]+.[0-9]+.[0-9]+-*'

jobs:
build:
runs-on: macOS-latest
steps:
- uses: actions/checkout@master
- name: Use Node.js 10.x
uses: actions/setup-node@v1
with:
node-version: '10.x'
- name: Install dependencies
run: yarn install --offline
- name: Build project
run: yarn build
- name: Install ibmcloud CLI
run: curl -fsSL https://clis.cloud.ibm.com/install/osx | sh
- name: Login to IBM Cloud
env:
CLOUD_API_KEY: ${{ secrets.CLOUD_API_KEY}}
run: |
ibmcloud login \
-a 'https://cloud.ibm.com' \
-u 'apikey' \
-p "$CLOUD_API_KEY" \
-o 'carbon-design-system' \
-s 'production' \
-r 'us-south'
- name: Install IBM Cloud plugins
run: |
ibmcloud cf add-plugin-repo CF-Community https://plugins.cloudfoundry.org
ibmcloud cf install-plugin blue-green-deploy -f -r CF-Community
- name: Deploy vanilla devenv
run: |
cd packages/components
ibmcloud cf blue-green-deploy carbon-dev-environment \
-f manifest.yml \
--delete-old-apps
2 changes: 2 additions & 0 deletions packages/components/.cfignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
demo/*
!demo/index.html
!demo/demo.js
!demo/demo.min.js
!demo/demo.min.js.map
!demo/demo.css
!demo/code/
!demo/code/**
Expand Down
121 changes: 75 additions & 46 deletions packages/components/docs/sass.md
Original file line number Diff line number Diff line change
Expand Up @@ -3383,7 +3383,6 @@ $carbon--spacing-04: 0.75rem;
- `spacing-04`
- **Used by**:
- [dropdown [mixin]](#dropdown-mixin)
- [file-uploader [mixin]](#file-uploader-mixin)
- [lists [mixin]](#lists-mixin)
- [inline-notifications [mixin]](#inline-notifications-mixin)
- [text-area [mixin]](#text-area-mixin)
Expand Down Expand Up @@ -3471,7 +3470,6 @@ $carbon--spacing-07: 2rem;
- `spacing-07`
- **Used by**:
- [snippet [mixin]](#snippet-mixin)
- [file-uploader [mixin]](#file-uploader-mixin)
- [form [mixin]](#form-mixin)
- [listbox [mixin]](#listbox-mixin)
- [number-input [mixin]](#number-input-mixin)
Expand Down Expand Up @@ -3517,6 +3515,7 @@ $carbon--spacing-09: 3rem;
- **Used by**:
- [accordion [mixin]](#accordion-mixin)
- [date-picker [mixin]](#date-picker-mixin)
- [file-uploader [mixin]](#file-uploader-mixin)
- [listbox [mixin]](#listbox-mixin)
- [modal [mixin]](#modal-mixin)
- [tile [mixin]](#tile-mixin)
Expand Down Expand Up @@ -6533,6 +6532,7 @@ $icon-01: if(
- [snippet [mixin]](#snippet-mixin)
- [data-table-v2-action [mixin]](#data-table-v2-action-mixin)
- [date-picker [mixin]](#date-picker-mixin)
- [file-uploader [mixin]](#file-uploader-mixin)
- [listbox [mixin]](#listbox-mixin)
- [modal [mixin]](#modal-mixin)
- [number-input [mixin]](#number-input-mixin)
Expand Down Expand Up @@ -6564,7 +6564,6 @@ $icon-02: if(
- **Type**: `{undefined}`
- **Used by**:
- [carbon--theme [mixin]](#carbon--theme-mixin)
- [file-uploader [mixin]](#file-uploader-mixin)
- [listbox [mixin]](#listbox-mixin)
- [overflow-menu [mixin]](#overflow-menu-mixin)
- [search [mixin]](#search-mixin)
Expand Down Expand Up @@ -12956,7 +12955,7 @@ Button styles
}

&:active {
color: $inverse-01;
border-color: transparent;
}

&:disabled,
Expand All @@ -12969,7 +12968,7 @@ Button styles
color: $disabled;
outline: none;

& > .#{$prefix}--btn__icon path {
> .#{$prefix}--btn__icon path {
fill: $disabled;
}
}
Expand All @@ -12979,6 +12978,19 @@ Button styles
}
}

.#{$prefix}--btn--tertiary,
.#{$prefix}--btn--tertiary.#{$prefix}--btn--field,
.#{$prefix}--btn--tertiary.#{$prefix}--btn--sm {
padding-right: rem(62px);
padding-left: rem(14px);

&:focus {
border-width: rem(3px);
padding-right: rem(60px);
padding-left: rem(12px);
}
}

.#{$prefix}--btn--ghost {
@include button-theme(
transparent,
Expand Down Expand Up @@ -13035,13 +13047,11 @@ Button styles

.#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--tooltip__trigger {
@include tooltip--trigger('icon', 'bottom');
outline: $button-outline-width solid transparent;
outline-offset: -4px;
}

.#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--tooltip__trigger:focus {
border-color: $focus;
outline-color: $ui-02;
box-shadow: inset 0 0 0 $button-outline-width $ui-02;
}

.#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--tooltip__trigger:focus
Expand All @@ -13062,11 +13072,6 @@ Button styles
padding-left: rem(13px);
padding-right: rem(13px);

&.#{$prefix}--btn--tertiary {
padding-left: rem(15px);
padding-right: rem(15px);
}

.#{$prefix}--btn__icon {
position: static;
}
Expand All @@ -13076,23 +13081,43 @@ Button styles
}
}

.#{$prefix}--btn--icon-only.#{$prefix}--btn--tertiary {
padding-left: rem(15px);
padding-right: rem(15px);

&:focus {
padding-left: rem(13px);
padding-right: rem(13px);
}
}

.#{$prefix}--btn--field.#{$prefix}--btn--icon-only {
padding-left: rem(9px);
padding-right: rem(9px);
}

.#{$prefix}--btn--field.#{$prefix}--btn--icon-only.#{$prefix}--btn--tertiary {
padding-left: rem(11px);
padding-right: rem(11px);

&.#{$prefix}--btn--tertiary {
padding-left: rem(11px);
padding-right: rem(11px);
&:focus {
padding-left: rem(9px);
padding-right: rem(9px);
}
}

.#{$prefix}--btn--sm.#{$prefix}--btn--icon-only {
padding-left: rem(5px);
padding-right: rem(5px);
}

.#{$prefix}--btn--sm.#{$prefix}--btn--icon-only.#{$prefix}--btn--tertiary {
padding-left: rem(7px);
padding-right: rem(7px);

&.#{$prefix}--btn--tertiary {
padding-left: rem(7px);
padding-right: rem(7px);
&:focus {
padding-left: rem(5px);
padding-right: rem(5px);
}
}

Expand Down Expand Up @@ -16945,17 +16970,27 @@ File uploader styles
margin-bottom: $carbon--spacing-05;
}

// For backwards compatibility
.#{$prefix}--file-btn ~ .#{$prefix}--file-container {
margin-top: $carbon--spacing-06;
}

.#{$prefix}--btn ~ .#{$prefix}--file-container {
margin-top: $carbon--spacing-05;
}

.#{$prefix}--file .#{$prefix}--file-container,
.#{$prefix}--file ~ .#{$prefix}--file-container {
margin-top: $carbon--spacing-03;
}

.#{$prefix}--file__selected-file {
display: grid;
grid-gap: $carbon--spacing-03 $carbon--spacing-05;
grid-gap: $carbon--spacing-05;
grid-template-columns: 1fr auto;
grid-auto-rows: auto;
align-items: center;
min-height: $carbon--spacing-07;
min-height: $carbon--spacing-09;
max-width: rem(320px);
margin-bottom: $carbon--spacing-03;
background-color: $field-01;
Expand Down Expand Up @@ -17003,22 +17038,20 @@ File uploader styles

.#{$prefix}--file__selected-file--invalid {
@include focus-outline('invalid');
outline-width: 1px;
padding: $carbon--spacing-04 0;
padding: $carbon--spacing-05 0;
}

.#{$prefix}--file__selected-file--invalid .#{$prefix}--form-requirement {
border-top: 1px solid $ui-03;
padding-top: $carbon--spacing-03;
padding-top: $carbon--spacing-05;
}

.#{$prefix}--file__selected-file--invalid
.#{$prefix}--form-requirement__title,
.#{$prefix}--file__selected-file--invalid
.#{$prefix}--form-requirement__supplement {
@include type-style('label-01');
padding-right: $carbon--spacing-03;
padding-left: $carbon--spacing-05;
padding: 0 $carbon--spacing-05;
}

.#{$prefix}--file__selected-file--invalid
Expand Down Expand Up @@ -17048,7 +17081,7 @@ File uploader styles
display: flex;
justify-content: center;
min-width: 1.5rem;
padding-right: $carbon--spacing-03;
padding-right: $carbon--spacing-05;

.#{$prefix}--loading__svg {
stroke: $ui-05;
Expand Down Expand Up @@ -17084,15 +17117,15 @@ File uploader styles
border: none;
cursor: pointer;
padding: 0;
fill: $icon-02;
fill: $icon-01;

&:focus {
@include focus-outline('border');
}
}

.#{$prefix}--file__state-container .#{$prefix}--file-close svg path {
fill: $icon-02;
fill: $icon-01;
}

.#{$prefix}--file__state-container .#{$prefix}--inline-loading__animation {
Expand Down Expand Up @@ -17132,14 +17165,13 @@ File uploader styles
- [text-02 [variable]](#text-02-variable)
- [carbon--spacing-05 [variable]](#carbon--spacing-05-variable)
- [carbon--spacing-06 [variable]](#carbon--spacing-06-variable)
- [carbon--spacing-07 [variable]](#carbon--spacing-07-variable)
- [carbon--spacing-09 [variable]](#carbon--spacing-09-variable)
- [field-01 [variable]](#field-01-variable)
- [carbon--spacing-04 [variable]](#carbon--spacing-04-variable)
- [ui-03 [variable]](#ui-03-variable)
- [ui-05 [variable]](#ui-05-variable)
- [interactive-04 [variable]](#interactive-04-variable)
- [icon-03 [variable]](#icon-03-variable)
- [icon-02 [variable]](#icon-02-variable)
- [icon-01 [variable]](#icon-01-variable)
- [ui-04 [variable]](#ui-04-variable)

## form
Expand Down Expand Up @@ -24407,7 +24439,7 @@ UI shell header
}
}

.#{$prefix}--header__menu-bar[role='menubar'] {
.#{$prefix}--header__menu-bar {
display: flex;
height: 100%;
list-style: none;
Expand Down Expand Up @@ -24480,7 +24512,7 @@ UI shell header
transform: rotate(180deg);
}

.#{$prefix}--header__menu[role='menu'] {
.#{$prefix}--header__menu {
display: none;
list-style: none;
padding: 0;
Expand Down Expand Up @@ -25358,8 +25390,8 @@ UI shell side nav
> .#{$prefix}--side-nav__submenu:hover,
.#{$prefix}--side-nav__item:not(.#{$prefix}--side-nav__item--active)
> .#{$prefix}--side-nav__link:hover,
.#{$prefix}--side-nav__menu[role='menu']
a.#{$prefix}--side-nav__link[role='menuitem']:not(.#{$prefix}--side-nav__link--current):not([aria-current='page']):hover,
.#{$prefix}--side-nav__menu
a.#{$prefix}--side-nav__link:not(.#{$prefix}--side-nav__link--current):not([aria-current='page']):hover,
.#{$prefix}--side-nav a.#{$prefix}--header__menu-item:hover,
.#{$prefix}--side-nav
.#{$prefix}--header__menu-title[aria-expanded='true']:hover {
Expand Down Expand Up @@ -25463,34 +25495,31 @@ UI shell side nav
color: $ibm-color__gray-100;
}

.#{$prefix}--side-nav__menu[role='menu'] {
.#{$prefix}--side-nav__menu {
display: block;
visibility: hidden;
max-height: 0;
}

.#{$prefix}--side-nav__submenu[aria-expanded='true']
+ .#{$prefix}--side-nav__menu[role='menu'] {
+ .#{$prefix}--side-nav__menu {
max-height: rem(1500px);
visibility: inherit;
}

.#{$prefix}--side-nav__menu[role='menu']
a.#{$prefix}--side-nav__link[role='menuitem'] {
.#{$prefix}--side-nav__menu a.#{$prefix}--side-nav__link {
height: mini-units(4);
min-height: mini-units(4);
padding-left: mini-units(4);
font-weight: 400;
}

.#{$prefix}--side-nav__item.#{$prefix}--side-nav__item--icon
a.#{$prefix}--side-nav__link[role='menuitem'] {
a.#{$prefix}--side-nav__link {
padding-left: mini-units(9);
}
.#{$prefix}--side-nav__menu[role='menu']
a.#{$prefix}--side-nav__link--current,
.#{$prefix}--side-nav__menu[role='menu']
a.#{$prefix}--side-nav__link[aria-current='page'],
.#{$prefix}--side-nav__menu a.#{$prefix}--side-nav__link--current,
.#{$prefix}--side-nav__menu a.#{$prefix}--side-nav__link[aria-current='page'],
a.#{$prefix}--side-nav__link--current {
background-color: $ibm-color__gray-20;

Expand Down Expand Up @@ -25614,7 +25643,7 @@ UI shell side nav
}

.#{$prefix}--side-nav--fixed
.#{$prefix}--side-nav__menu[role='menu']
.#{$prefix}--side-nav__menu
a.#{$prefix}--side-nav__link {
padding-left: mini-units(4);
}
Expand Down
3 changes: 2 additions & 1 deletion packages/components/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ applications:
- name: carbon-dev-environment
memory: 64M
buildpack: https://github.com/cloudfoundry/staticfile-buildpack.git
random-route: true
routes:
- route: vanilla.carbondesignsystem.com
Loading

0 comments on commit 91aed79

Please sign in to comment.