-
Notifications
You must be signed in to change notification settings - Fork 827
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1137 from salesforce-ux/chore/root-index
Move shared styles to root index
- Loading branch information
Showing
23 changed files
with
285 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// Copyright (c) 2015, salesforce.com, inc. All rights reserved. | ||
|
||
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | ||
// Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||
// Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | ||
// Neither the name of salesforce.com, inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. | ||
|
||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
|
||
|
||
.#{$css-prefix}breadcrumb { | ||
|
||
.#{$css-prefix}list__item, | ||
&__item { | ||
position: relative; | ||
|
||
&:before { | ||
content: '\003E'; | ||
position: absolute; | ||
left: (($spacing-x-small / 2) * -1); | ||
} | ||
|
||
> a { | ||
display: block; | ||
padding: 0 $spacing-x-small; | ||
|
||
&:hover { | ||
text-decoration: none; | ||
} | ||
} | ||
|
||
&:first-child { | ||
|
||
> a { | ||
padding-left: 0; | ||
} | ||
|
||
&:before { | ||
content: ''; | ||
} | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
ui/components/forms/flavors/form-element/index.react.example.jsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
// Copyright (c) 2015, salesforce.com, inc. All rights reserved. | ||
|
||
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | ||
// Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||
// Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | ||
// Neither the name of salesforce.com, inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. | ||
|
||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
|
||
.#{$css-prefix}icon_container, | ||
.#{$css-prefix}icon__container { | ||
|
||
@include deprecate('4.0.0', '#{$css-prefix}icon__container is deprecated. Use #{$css-prefix}icon_container instead.'); | ||
display: inline-block; | ||
border-radius: $border-radius-medium; | ||
|
||
&--circle { | ||
padding: $spacing-x-small; | ||
border-radius: $border-radius-circle; | ||
} | ||
} | ||
|
||
.#{$css-prefix}icon { | ||
@include square($square-icon-medium-boundary); | ||
border-radius: $border-radius-medium; | ||
fill: $color-text-icon-inverse; | ||
} | ||
|
||
@each $name, $color in $bg-actions-map { | ||
.#{$css-prefix}icon-#{$name} { | ||
background-color: $color; | ||
} | ||
} | ||
|
||
// TODO: Depend on a correct map to generate icons named slds-icon-custom-customXX | ||
@each $name, $color in $bg-custom-map { | ||
$prefix-length: str-length('custom-'); | ||
// In Sass, str-slice's first character is 1 (instead of 0 in other languages) | ||
// so we need to add +1 when slicing | ||
$id: str-slice($name, $prefix-length + 1); | ||
|
||
// We generate both icons named: | ||
// 1. slds-icon-custom-customXX (new: consistent with icon names) | ||
// 2. slds-icon-custom-XX (legacy: depends on a map that is inconsistent with icon names) | ||
@include deprecate('4.0.0', 'slds-icon-custom-XX classes are deprecated, use slds-icon-custom-customXX instead'); | ||
.#{$css-prefix}icon-custom-custom#{$id}, | ||
.#{$css-prefix}icon-#{$name} { | ||
background-color: $color; | ||
color: $color-text-inverse; // This is for text based icon created with just the first letters of the words | ||
} | ||
} | ||
|
||
@each $name, $color in $bg-standard-map { | ||
.#{$css-prefix}icon-standard-#{$name} { | ||
background-color: $color; | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// Copyright (c) 2015, salesforce.com, inc. All rights reserved. | ||
|
||
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | ||
// Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||
// Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | ||
// Neither the name of salesforce.com, inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. | ||
|
||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
.#{$css-prefix}publisher { | ||
|
||
&.#{$css-prefix}is-active { | ||
|
||
.#{$css-prefix}publisher__toggle-visibility { | ||
display: inherit; | ||
} | ||
|
||
.#{$css-prefix}publisher__input { | ||
line-height: $line-height-text; | ||
height: auto; | ||
max-height: 10rem; | ||
resize: vertical; | ||
padding: { | ||
top: $spacing-small; | ||
bottom: $spacing-small; | ||
} | ||
} | ||
} | ||
|
||
&__input { | ||
line-height: $line-height-button; | ||
padding: 0 $spacing-medium; | ||
resize: none; | ||
min-height: calc(#{$line-height-button} + 2px); | ||
max-height: calc(#{$line-height-button} + 2px); | ||
width: 100%; | ||
} | ||
|
||
&__actions > .#{$css-prefix}button { | ||
margin-left: $spacing-small; | ||
} | ||
|
||
.#{$css-prefix}publisher__toggle-visibility { | ||
display: none; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.