Browse Source

Adds global border radius value

pull/1177/head
jlukic 10 years ago
parent
commit
bd12f1ce49
15 changed files with 42 additions and 30 deletions
  1. 2
      src/themes/packages/default/collections/form.variables
  2. 4
      src/themes/packages/default/collections/menu.variables
  3. 2
      src/themes/packages/default/elements/button.variables
  4. 2
      src/themes/packages/default/elements/input.variables
  5. 2
      src/themes/packages/default/elements/segment.variables
  6. 4
      src/themes/packages/default/elements/step.variables
  7. 10
      src/themes/packages/default/globals/site.variables
  8. 2
      src/themes/packages/default/modules/accordion.variables
  9. 28
      src/themes/packages/default/modules/dropdown.variables
  10. 2
      src/themes/packages/default/modules/modal.variables
  11. 2
      src/themes/packages/default/modules/nag.variables
  12. 2
      src/themes/packages/default/modules/popup.variables
  13. 6
      src/themes/packages/default/modules/progress.variables
  14. 2
      src/themes/packages/default/views/card.variables
  15. 2
      src/themes/packages/github/elements/button.variables

2
src/themes/packages/default/collections/form.variables

@ -41,7 +41,7 @@
@inputPadding: (@inputVerticalPadding + ((1em - @inputLineHeight) / 2)) @inputHorizontalPadding; @inputPadding: (@inputVerticalPadding + ((1em - @inputLineHeight) / 2)) @inputHorizontalPadding;
@inputBackground: #FFFFFF; @inputBackground: #FFFFFF;
@inputBorder: 1px solid @borderColor; @inputBorder: 1px solid @borderColor;
@inputBorderRadius: 0.3125em;
@inputBorderRadius: @absoluteBorderRadius;
@inputColor: @textColor; @inputColor: @textColor;
@inputTransition: @inputTransition:
background-color 0.2s ease, background-color 0.2s ease,

4
src/themes/packages/default/collections/menu.variables

@ -35,7 +35,7 @@
background 0.2s ease, background 0.2s ease,
box-shadow 0.2s ease box-shadow 0.2s ease
; ;
@borderRadius: 0.1875rem;
@borderRadius: @defaultBorderRadius;
@dividerSize: 1px; @dividerSize: 1px;
@dividerBackground: linear-gradient( @dividerBackground: linear-gradient(
@ -186,7 +186,7 @@
@secondaryTransition: color 0.2s ease; @secondaryTransition: color 0.2s ease;
@secondaryBorderRadius: 0.3125em;
@secondaryBorderRadius: @defaultBorderRadius;
@secondaryMargin: 0.25em; @secondaryMargin: 0.25em;
@secondaryVerticalMargin: 0.3em; @secondaryVerticalMargin: 0.3em;

2
src/themes/packages/default/elements/button.variables

@ -15,7 +15,7 @@
@textColor: rgba(0, 0, 0, 0.6); @textColor: rgba(0, 0, 0, 0.6);
@textShadow: none; @textShadow: none;
@invertedTextShadow: none; @invertedTextShadow: none;
@borderRadius: 0.25em;
@borderRadius: @defaultBorderRadius;
@borderBoxShadowColor: transparent; @borderBoxShadowColor: transparent;
@borderBoxShadowWidth: 1px; @borderBoxShadowWidth: 1px;
@verticalAlign: baseline; @verticalAlign: baseline;

2
src/themes/packages/default/elements/input.variables

@ -22,7 +22,7 @@
@border: @borderWidth solid rgba(0, 0, 0, 0.15); @border: @borderWidth solid rgba(0, 0, 0, 0.15);
@boxShadow: none; @boxShadow: none;
@borderRadius: 0.325em;
@borderRadius: @defaultBorderRadius;
@transition: @transition:
background-color 0.3s ease-out, background-color 0.3s ease-out,
box-shadow 0.2s ease, box-shadow 0.2s ease,

2
src/themes/packages/default/elements/segment.variables

@ -19,7 +19,7 @@
@horizontalPadding: 1em; @horizontalPadding: 1em;
@margin: 1rem; @margin: 1rem;
@borderRadius: 0.25rem;
@borderRadius: @defaultBorderRadius;
/*------------------- /*-------------------
Coupling Coupling

4
src/themes/packages/default/elements/step.variables

@ -19,7 +19,7 @@
color 0.1s ease, color 0.1s ease,
box-shadow 0.1s ease box-shadow 0.1s ease
; ;
@borderRadius: 0.3125rem;
@borderRadius: @defaultBorderRadius;
@lineHeight: 1.2; @lineHeight: 1.2;
@backgroundColor: #FFFFFF; @backgroundColor: #FFFFFF;
@ -59,7 +59,7 @@
Group Group
--------------------*/ --------------------*/
@stepsBorderRadius: 0.3125rem;
@stepsBorderRadius: @defaultBorderRadius;
@stepsBackground: ''; @stepsBackground: '';
@stepsBoxShadow: ''; @stepsBoxShadow: '';

10
src/themes/packages/default/globals/site.variables

@ -85,6 +85,16 @@
@transparentWhite : rgba(255, 255, 255, 0.05); @transparentWhite : rgba(255, 255, 255, 0.05);
@strongTransparentWhite : rgba(255, 255, 255, 0.07); @strongTransparentWhite : rgba(255, 255, 255, 0.07);
/*-------------------
Accents
--------------------*/
/* 4px @ 14px */
@relativeBorderRadius: 0.2857em;
@absoluteBorderRadius: 0.2857rem;
@defaultBorderRadius: @absoluteBorderRadius;
/* Used for differentiating neutrals */ /* Used for differentiating neutrals */
@subtleGradient: linear-gradient(transparent, rgba(0, 0, 0, 0.05)); @subtleGradient: linear-gradient(transparent, rgba(0, 0, 0, 0.05));

2
src/themes/packages/default/modules/accordion.variables

@ -58,7 +58,7 @@
/* Styled */ /* Styled */
@styledWidth: 600px; @styledWidth: 600px;
@styledBackground: @white; @styledBackground: @white;
@styledBorderRadius: 0.3125em;
@styledBorderRadius: @defaultBorderRadius;
@styledBoxShadow: @styledBoxShadow:
@subtleShadow, @subtleShadow,
0px 0px 0px 1px @borderColor 0px 0px 0px 1px @borderColor

28
src/themes/packages/default/modules/dropdown.variables

@ -11,7 +11,7 @@
border-radius 0.1s ease, border-radius 0.1s ease,
width 0.2s ease width 0.2s ease
; ;
@borderRadius: 0.325em;
@borderRadius: @defaultBorderRadius;
/*------------------- /*-------------------
Content Content
@ -51,17 +51,6 @@
@itemTextTransform: none; @itemTextTransform: none;
@itemBoxShadow: none; @itemBoxShadow: none;
/* Responsive */
@itemActualHeight: (@itemVerticalPadding * 2) + @itemLineHeight;
@mobileMaxItems: 6;
@tabletMaxItems: 8;
@computerMaxItems: 12;
@mobileMaxMenuHeight: (@itemActualHeight * @mobileMaxItems);
@tabletMaxMenuHeight: (@itemActualHeight * @tabletMaxItems);
@computerMaxMenuHeight: (@itemActualHeight * @computerMaxItems);
@widescreenMaxMenuHeight: 9999px;
/* Menu Header */ /* Menu Header */
@menuHeaderColor: @darkTextColor; @menuHeaderColor: @darkTextColor;
@ -126,7 +115,6 @@ b Types
@selectionBorderRadius: @borderRadius; @selectionBorderRadius: @borderRadius;
@selectionIconOpacity: 0.8; @selectionIconOpacity: 0.8;
@selectionIconTransition: opacity 0.2s ease; @selectionIconTransition: opacity 0.2s ease;
@selectionMenuMaxHeight: 245px;
@selectionMenuBoxShadow: 0px 4px 6px 0px rgba(0, 0, 0, 0.08); @selectionMenuBoxShadow: 0px 4px 6px 0px rgba(0, 0, 0, 0.08);
@selectionMenuItemBoxShadow: none; @selectionMenuItemBoxShadow: none;
@ -140,6 +128,20 @@ b Types
border 0.2s @defaultEasing border 0.2s @defaultEasing
; ;
/* Responsive */
@selectionMobileMaxItems: 3;
@selectionTabletMaxItems: 4;
@selectionComputerMaxItems: 6;
@selectionWidescreenMaxItems: 8;
/* Derived */
@selectedBorderEMWidth: 0.0714em;
@selectionItemActualHeight: (@itemVerticalPadding * 2) + @itemLineHeight + @selectedBorderEMWidth;
@selectionMobileMaxMenuHeight: (@selectionItemActualHeight * @selectionMobileMaxItems);
@selectionTabletMaxMenuHeight: (@selectionItemActualHeight * @selectionTabletMaxItems);
@selectionComputerMaxMenuHeight: (@selectionItemActualHeight * @selectionComputerMaxItems);
@selectionWidescreenMaxMenuHeight: (@selectionItemActualHeight * @selectionWidescreenMaxItems);
/* Hover */ /* Hover */
@selectionHoverBorderColor: @selectedBorderColor; @selectionHoverBorderColor: @selectedBorderColor;
@selectionHoverBoxShadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.05); @selectionHoverBoxShadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.05);

2
src/themes/packages/default/modules/modal.variables

@ -6,7 +6,7 @@
@border: none; @border: none;
@width: 90%; @width: 90%;
@xOffset: -(@width / 2); @xOffset: -(@width / 2);
@borderRadius: 0.25rem;
@borderRadius: @defaultBorderRadius;
@boxShadow: 0px 0px 8px rgba(0, 0, 0, 0.8); @boxShadow: 0px 0px 8px rgba(0, 0, 0, 0.8);
/* Close Icon */ /* Close Icon */

2
src/themes/packages/default/modules/nag.variables

@ -59,7 +59,7 @@
/* Top / Bottom */ /* Top / Bottom */
@top: 0em; @top: 0em;
@bottom: 0em; @bottom: 0em;
@borderRadius: 0.25em;
@borderRadius: @defaultBorderRadius;
@topBorderRadius: 0em 0em @borderRadius @borderRadius; @topBorderRadius: 0em 0em @borderRadius @borderRadius;
@bottomBorderRadius: @borderRadius @borderRadius 0em 0em; @bottomBorderRadius: @borderRadius @borderRadius 0em 0em;

2
src/themes/packages/default/modules/popup.variables

@ -19,7 +19,7 @@
@horizontalPadding: 1em; @horizontalPadding: 1em;
@fontWeight: normal; @fontWeight: normal;
@fontStyle: normal; @fontStyle: normal;
@borderRadius: 0.25em;
@borderRadius: @defaultBorderRadius;
/*------------------- /*-------------------
Parts Parts

6
src/themes/packages/default/modules/progress.variables

@ -12,10 +12,10 @@
@lastMargin: 0em 0em (@labelHeight); @lastMargin: 0em 0em (@labelHeight);
@background: @subtleTransparentBlack; @background: @subtleTransparentBlack;
@border: 1px solid rgba(0, 0, 0, 0.05);
@border: 1px solid @borderRadius;
@boxShadow: none; @boxShadow: none;
@padding: 0.325em;
@borderRadius: 0.325em;
@padding: 0.2857em;
@borderRadius: @defaultBorderRadius;
/* Bar */ /* Bar */
@barPosition: relative; @barPosition: relative;

2
src/themes/packages/default/views/card.variables

@ -12,7 +12,7 @@
/* Item */ /* Item */
@background: #FFFFFF; @background: #FFFFFF;
@borderRadius: 0.325rem;
@borderRadius: @defaultBorderRadius;
@display: block; @display: block;
@margin: 1em 0em; @margin: 1em 0em;
@minHeight: 0px; @minHeight: 0px;

2
src/themes/packages/github/elements/button.variables

@ -11,7 +11,7 @@
@textShadow: 0px 1px 0px rgba(255, 255, 255, 0.9); @textShadow: 0px 1px 0px rgba(255, 255, 255, 0.9);
@invertedTextShadow: 0px -1px 0px rgba(0, 0, 0, 0.25); @invertedTextShadow: 0px -1px 0px rgba(0, 0, 0, 0.25);
@borderRadius: 0.25em;
@borderRadius: @relativeBorderRadius;
@verticalPadding: 0.75em; @verticalPadding: 0.75em;
@horizontalPadding: 1.15em; @horizontalPadding: 1.15em;

Loading…
Cancel
Save