Browse Source

Merge pull request #6171 from Semantic-Org/add-font-weights

Add font weight global variables
pull/4458/merge
Jack Lukic 7 years ago
committed by GitHub
parent
commit
fba3feb458
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
34 changed files with 89 additions and 81 deletions
  1. 4
      RELEASE-NOTES.md
  2. 4
      src/definitions/collections/table.less
  3. 2
      src/definitions/elements/header.less
  4. 4
      src/definitions/elements/icon.less
  5. 2
      src/definitions/elements/input.less
  6. 2
      src/definitions/elements/list.less
  7. 2
      src/definitions/modules/popup.less
  8. 2
      src/definitions/modules/rating.less
  9. 2
      src/definitions/modules/search.less
  10. 2
      src/themes/default/collections/breadcrumb.variables
  11. 2
      src/themes/default/collections/form.variables
  12. 32
      src/themes/default/collections/menu.variables
  13. 2
      src/themes/default/collections/message.variables
  14. 13
      src/themes/default/collections/table.variables
  15. 8
      src/themes/default/elements/button.variables
  16. 4
      src/themes/default/elements/divider.variables
  17. 2
      src/themes/default/elements/header.variables
  18. 6
      src/themes/default/elements/label.variables
  19. 2
      src/themes/default/elements/list.variables
  20. 6
      src/themes/default/elements/step.variables
  21. 6
      src/themes/default/globals/site.variables
  22. 2
      src/themes/default/modules/accordion.overrides
  23. 2
      src/themes/default/modules/accordion.variables
  24. 12
      src/themes/default/modules/dropdown.variables
  25. 2
      src/themes/default/modules/modal.variables
  26. 5
      src/themes/default/modules/popup.variables
  27. 4
      src/themes/default/modules/progress.variables
  28. 8
      src/themes/default/modules/search.variables
  29. 4
      src/themes/default/views/ad.variables
  30. 2
      src/themes/default/views/card.variables
  31. 2
      src/themes/default/views/comment.variables
  32. 8
      src/themes/default/views/feed.variables
  33. 2
      src/themes/default/views/item.variables
  34. 8
      src/themes/default/views/statistic.variables

4
RELEASE-NOTES.md

@ -5,6 +5,7 @@
**Major Enhancements** **Major Enhancements**
- **Icons** - Font Awesome 5 is now included in Semantic UI **Thanks @hammy2899** #6085 - **Icons** - Font Awesome 5 is now included in Semantic UI **Thanks @hammy2899** #6085
- **Search** - Category search can now work with local search by adding a `category` property to any result and specifying `type: 'category'` - **Search** - Category search can now work with local search by adding a `category` property to any result and specifying `type: 'category'`
- **Theming** - Added global variables for reassigning `normal` and `bold` font weights for custom font stacks.
- **Search** - Category results now has `exact` matching - **Search** - Category results now has `exact` matching
- **Modal** - Modal has been rewritten to use `flexbox`. No need to call `refresh()` to recalculate vertical centering. - **Modal** - Modal has been rewritten to use `flexbox`. No need to call `refresh()` to recalculate vertical centering.
- **Modal** - Modals now have a setting `centered` which can be used to disable vertical centering. This can be useful for modals with content that changes dynamically to prevent content from jumping in position. - **Modal** - Modals now have a setting `centered` which can be used to disable vertical centering. This can be useful for modals with content that changes dynamically to prevent content from jumping in position.
@ -14,7 +15,8 @@
- **Dimmer** - Dimmers now have centered content with a single wrapping `content` element. - **Dimmer** - Dimmers now have centered content with a single wrapping `content` element.
- **Popup** - Popup will now align the center of the arrow (not the edge of the popup) when it would be reasonable (up to 2x arrow's offset from edge). [See this explanation](http://oi66.tinypic.com/2zr2ckk.jpg) - **Popup** - Popup will now align the center of the arrow (not the edge of the popup) when it would be reasonable (up to 2x arrow's offset from edge). [See this explanation](http://oi66.tinypic.com/2zr2ckk.jpg)
- **Popup** - Popup can now position elements correctly even when they have a different offset context than their activating element. Like in [this example](https://jsfiddle.net/g853mc03/) - **Popup** - Popup can now position elements correctly even when they have a different offset context than their activating element. Like in [this example](https://jsfiddle.net/g853mc03/)
- **Popup** - Popup `arrowBackground` now inherits from `background` #6059 **Thanks @devsli**
- **Popup** - `arrowBackground` now inherits from `background` #6059 **Thanks @devsli**
- **Popup** - Adds new variable `headerFontWeight`
**Bugs** **Bugs**
- **Modal** - Modal `autofocus` setting now checks to see if currently focused element is in modal, avoiding issues where focus could be set in `onVisible` or `onShow` - **Modal** - Modal `autofocus` setting now checks to see if currently focused element is in modal, avoiding issues where focus could be set in `onVisible` or `onShow`

4
src/definitions/collections/table.less

@ -186,7 +186,7 @@
} }
.ui.table:not(.unstackable) th:first-child, .ui.table:not(.unstackable) th:first-child,
.ui.table:not(.unstackable) td:first-child { .ui.table:not(.unstackable) td:first-child {
font-weight: bold;
font-weight: @responsiveCellHeaderFontWeight;
} }
/* Definition Table */ /* Definition Table */
@ -888,7 +888,7 @@
.ui.sortable.table thead th:after { .ui.sortable.table thead th:after {
display: none; display: none;
font-style: normal; font-style: normal;
font-weight: normal;
font-weight: @normal;
text-decoration: inherit; text-decoration: inherit;
content: ''; content: '';
height: 1em; height: 1em;

2
src/definitions/elements/header.less

@ -48,7 +48,7 @@
.ui.header .sub.header { .ui.header .sub.header {
display: block; display: block;
font-weight: normal;
font-weight: @normal;
padding: 0em; padding: 0em;
margin: @subHeaderMargin; margin: @subHeaderMargin;
font-size: @subHeaderFontSize; font-size: @subHeaderFontSize;

4
src/definitions/elements/icon.less

@ -28,7 +28,7 @@
src: @fallbackSRC; src: @fallbackSRC;
src: @src; src: @src;
font-style: normal; font-style: normal;
font-weight: normal;
font-weight: @normal;
font-variant: normal; font-variant: normal;
text-decoration: inherit; text-decoration: inherit;
text-transform: none; text-transform: none;
@ -45,7 +45,7 @@ i.icon {
font-family: 'Icons'; font-family: 'Icons';
font-style: normal; font-style: normal;
font-weight: normal;
font-weight: @normal;
text-decoration: inherit; text-decoration: inherit;
text-align: center; text-align: center;

2
src/definitions/elements/input.less

@ -29,7 +29,7 @@
.ui.input { .ui.input {
position: relative; position: relative;
font-weight: normal;
font-weight: @normal;
font-style: normal; font-style: normal;
display: inline-flex; display: inline-flex;
color: @inputColor; color: @inputColor;

2
src/definitions/elements/list.less

@ -563,7 +563,7 @@ ul.ui.list li:before,
position: absolute; position: absolute;
top: auto; top: auto;
left: auto; left: auto;
font-weight: normal;
font-weight: @normal;
margin-left: @bulletOffset; margin-left: @bulletOffset;
content: @bulletCharacter; content: @bulletCharacter;
opacity: @bulletOpacity; opacity: @bulletOpacity;

2
src/definitions/modules/popup.less

@ -52,7 +52,7 @@
font-family: @headerFont; font-family: @headerFont;
font-size: @headerFontSize; font-size: @headerFontSize;
line-height: @headerLineHeight; line-height: @headerLineHeight;
font-weight: bold;
font-weight: @headerFontWeight;
} }
.ui.popup > .header + .content { .ui.popup > .header + .content {
padding-top: @headerDistance; padding-top: @headerDistance;

2
src/definitions/modules/rating.less

@ -36,7 +36,7 @@
padding: 0em; padding: 0em;
margin: 0em; margin: 0em;
text-align: center; text-align: center;
font-weight: normal;
font-weight: @normal;
font-style: normal; font-style: normal;
flex: 1 0 auto; flex: 1 0 auto;
cursor: @iconCursor; cursor: @iconCursor;

2
src/definitions/modules/search.less

@ -34,7 +34,7 @@
text-shadow: none; text-shadow: none;
font-style: normal; font-style: normal;
font-weight: normal;
font-weight: @normal;
line-height: @promptLineHeight; line-height: @promptLineHeight;
padding: @promptPadding; padding: @promptPadding;

2
src/themes/default/collections/breadcrumb.variables

@ -30,4 +30,4 @@
States States
--------------------*/ --------------------*/
@activeFontWeight: bold;
@activeFontWeight: @bold;

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

@ -23,7 +23,7 @@
@labelDistance: @4px; @labelDistance: @4px;
@labelMargin: 0em 0em @labelDistance 0em; @labelMargin: 0em 0em @labelDistance 0em;
@labelFontSize: @relativeSmall; @labelFontSize: @relativeSmall;
@labelFontWeight: bold;
@labelFontWeight: @bold;
@labelTextTransform: none; @labelTextTransform: none;
@labelColor: @textColor; @labelColor: @textColor;

32
src/themes/default/collections/menu.variables

@ -13,7 +13,7 @@
@background: #FFFFFF; @background: #FFFFFF;
@fontFamily: @pageFont; @fontFamily: @pageFont;
@itemBackground: none; @itemBackground: none;
@fontWeight: normal;
@fontWeight: @normal;
@borderWidth: 1px; @borderWidth: 1px;
@border: @borderWidth solid @borderColor; @border: @borderWidth solid @borderColor;
@boxShadow: @subtleShadow; @boxShadow: @subtleShadow;
@ -29,7 +29,7 @@
box-shadow @defaultDuration @defaultEasing, box-shadow @defaultDuration @defaultEasing,
color @defaultDuration @defaultEasing color @defaultDuration @defaultEasing
; ;
@itemFontWeight: normal;
@itemFontWeight: @normal;
@itemTextColor: @textColor; @itemTextColor: @textColor;
/* Divider */ /* Divider */
@ -64,8 +64,8 @@
/* Header */ /* Header */
@headerBackground: ''; @headerBackground: '';
@headerWeight: bold;
@headerTextTransform: normal;
@headerWeight: @bold;
@headerTextTransform: @normal;
/* Vertical Icon */ /* Vertical Icon */
@verticalIconFloat: right; @verticalIconFloat: right;
@ -74,7 +74,7 @@
/* Vertical Header */ /* Vertical Header */
@verticalHeaderMargin: 0em 0em 0.5em; @verticalHeaderMargin: 0em 0em 0.5em;
@verticalHeaderFontSize: @relativeMedium; @verticalHeaderFontSize: @relativeMedium;
@verticalHeaderFontWeight: bold;
@verticalHeaderFontWeight: @bold;
/* Pointing Arrow */ /* Pointing Arrow */
@arrowSize: @relative8px; @arrowSize: @relative8px;
@ -136,7 +136,7 @@
@dropdownItemBackground: transparent; @dropdownItemBackground: transparent;
@dropdownItemColor: @textColor; @dropdownItemColor: @textColor;
@dropdownItemTextTransform: none; @dropdownItemTextTransform: none;
@dropdownItemFontWeight: normal;
@dropdownItemFontWeight: @normal;
@dropdownItemBoxShadow: none; @dropdownItemBoxShadow: none;
@dropdownItemTransition: none; @dropdownItemTransition: none;
@ -169,7 +169,7 @@
/* Active Item */ /* Active Item */
@activeItemBackground: @transparentBlack; @activeItemBackground: @transparentBlack;
@activeItemTextColor: @selectedTextColor; @activeItemTextColor: @selectedTextColor;
@activeItemFontWeight: normal;
@activeItemFontWeight: @normal;
@activeIconOpacity: 1; @activeIconOpacity: 1;
@activeItemBoxShadow: none; @activeItemBoxShadow: none;
@ -184,12 +184,12 @@
/* Active Dropdown */ /* Active Dropdown */
@dropdownActiveItemBackground: @subtleTransparentBlack; @dropdownActiveItemBackground: @subtleTransparentBlack;
@dropdownActiveItemColor: @selectedTextColor; @dropdownActiveItemColor: @selectedTextColor;
@dropdownActiveItemFontWeight: bold;
@dropdownActiveItemFontWeight: @bold;
/* Active Sub Menu */ /* Active Sub Menu */
@subMenuActiveBackground: transparent; @subMenuActiveBackground: transparent;
@subMenuActiveTextColor: @activeItemTextColor; @subMenuActiveTextColor: @activeItemTextColor;
@subMenuActiveFontWeight: bold;
@subMenuActiveFontWeight: @bold;
/*-------------- /*--------------
@ -252,7 +252,7 @@
@secondaryPointingActiveBorderColor: @black; @secondaryPointingActiveBorderColor: @black;
@secondaryPointingActiveTextColor: @selectedTextColor; @secondaryPointingActiveTextColor: @selectedTextColor;
@secondaryPointingActiveFontWeight: bold;
@secondaryPointingActiveFontWeight: @bold;
@secondaryPointingActiveDropdownBorderColor: transparent; @secondaryPointingActiveDropdownBorderColor: transparent;
@ -285,8 +285,8 @@
@tieredActiveItemBackground: #FCFCFC; @tieredActiveItemBackground: #FCFCFC;
@tieredActiveMenuBackground: #FCFCFC; @tieredActiveMenuBackground: #FCFCFC;
@tieredSubMenuTextTransform: normal;
@tieredSubMenuFontWeight: normal;
@tieredSubMenuTextTransform: @normal;
@tieredSubMenuFontWeight: @normal;
@tieredSubMenuColor: @lightTextColor; @tieredSubMenuColor: @lightTextColor;
@ -326,7 +326,7 @@
@tabularActiveBackground: none @white; @tabularActiveBackground: none @white;
@tabularActiveColor: @selectedTextColor; @tabularActiveColor: @selectedTextColor;
@tabularActiveBoxShadow: none; @tabularActiveBoxShadow: none;
@tabularActiveWeight: bold;
@tabularActiveWeight: @bold;
@ -346,7 +346,7 @@
@textMenuItemSpacing: @relative7px; @textMenuItemSpacing: @relative7px;
@textMenuMargin: @relativeMedium -(@textMenuItemSpacing); @textMenuMargin: @relativeMedium -(@textMenuItemSpacing);
@textMenuItemColor: @mutedTextColor; @textMenuItemColor: @mutedTextColor;
@textMenuItemFontWeight: normal;
@textMenuItemFontWeight: @normal;
@textMenuItemMargin: 0em 0em; @textMenuItemMargin: 0em 0em;
@textMenuItemPadding: @relative5px @textMenuItemSpacing; @textMenuItemPadding: @relative5px @textMenuItemSpacing;
@textMenuItemTransition: opacity @defaultDuration @defaultEasing; @textMenuItemTransition: opacity @defaultDuration @defaultEasing;
@ -355,12 +355,12 @@
@textMenuSubMenuItemMargin: 0em; @textMenuSubMenuItemMargin: 0em;
@textMenuSubMenuItemPadding: @relative7px 0em; @textMenuSubMenuItemPadding: @relative7px 0em;
@textMenuActiveItemFontWeight: normal;
@textMenuActiveItemFontWeight: @normal;
@textMenuActiveItemColor: @selectedTextColor; @textMenuActiveItemColor: @selectedTextColor;
@textMenuHeaderSize: @relativeSmall; @textMenuHeaderSize: @relativeSmall;
@textMenuHeaderColor: @darkTextColor; @textMenuHeaderColor: @darkTextColor;
@textMenuHeaderFontWeight: bold;
@textMenuHeaderFontWeight: @bold;
@textMenuHeaderTextTransform: uppercase; @textMenuHeaderTextTransform: uppercase;
@textVerticalMenuMargin: @relativeMedium 0em; @textVerticalMenuMargin: @relativeMedium 0em;

2
src/themes/default/collections/message.variables

@ -33,7 +33,7 @@
/* Header */ /* Header */
@headerFontSize: @relativeLarge; @headerFontSize: @relativeLarge;
@headerFontWeight: bold;
@headerFontWeight: @bold;
@headerDisplay: block; @headerDisplay: block;
@headerDistance: 0rem; @headerDistance: 0rem;
@headerMargin: -@headerLineHeightOffset 0em @headerDistance 0em; @headerMargin: -@headerLineHeightOffset 0em @headerDistance 0em;

13
src/themes/default/collections/table.variables

@ -47,7 +47,7 @@
@headerVerticalPadding: @relativeSmall; @headerVerticalPadding: @relativeSmall;
@headerHorizontalPadding: @cellHorizontalPadding; @headerHorizontalPadding: @cellHorizontalPadding;
@headerFontStyle: none; @headerFontStyle: none;
@headerFontWeight: bold;
@headerFontWeight: @bold;
@headerTextTransform: none; @headerTextTransform: none;
@headerBoxShadow: none; @headerBoxShadow: none;
@ -61,8 +61,8 @@
@footerColor: @textColor; @footerColor: @textColor;
@footerVerticalPadding: @cellVerticalPadding; @footerVerticalPadding: @cellVerticalPadding;
@footerHorizontalPadding: @cellHorizontalPadding; @footerHorizontalPadding: @cellHorizontalPadding;
@footerFontStyle: normal;
@footerFontWeight: normal;
@footerFontStyle: @normal;
@footerFontWeight: @normal;
@footerTextTransform: none; @footerTextTransform: none;
/* Responsive Size */ /* Responsive Size */
@ -73,6 +73,7 @@
@responsiveCellVerticalPadding: 0.25em; @responsiveCellVerticalPadding: 0.25em;
@responsiveCellHorizontalPadding: 0.75em; @responsiveCellHorizontalPadding: 0.75em;
@responsiveCellBoxShadow: none !important; @responsiveCellBoxShadow: none !important;
@responsiveCellHeaderFontWeight: @bold;
/*------------------- /*-------------------
Types Types
@ -83,14 +84,14 @@
@definitionHeaderBackground: transparent; @definitionHeaderBackground: transparent;
@definitionHeaderColor: @unselectedTextColor; @definitionHeaderColor: @unselectedTextColor;
@definitionHeaderFontWeight: normal;
@definitionHeaderFontWeight: @normal;
@definitionFooterBackground: @definitionHeaderBackground; @definitionFooterBackground: @definitionHeaderBackground;
@definitionFooterColor: @definitionHeaderColor; @definitionFooterColor: @definitionHeaderColor;
@definitionFooterFontWeight: @definitionHeaderFontWeight; @definitionFooterFontWeight: @definitionHeaderFontWeight;
@definitionColumnBackground: @subtleTransparentBlack; @definitionColumnBackground: @subtleTransparentBlack;
@definitionColumnFontWeight: bold;
@definitionColumnFontWeight: @bold;
@definitionColumnColor: @selectedTextColor; @definitionColumnColor: @selectedTextColor;
@definitionColumnFontSize: @relativeMedium; @definitionColumnFontSize: @relativeMedium;
@definitionColumnTextTransform: ''; @definitionColumnTextTransform: '';
@ -213,7 +214,7 @@
@invertedDefinitionColumnBackground: @subtleTransparentWhite; @invertedDefinitionColumnBackground: @subtleTransparentWhite;
@invertedDefinitionColumnColor: @invertedSelectedTextColor; @invertedDefinitionColumnColor: @invertedSelectedTextColor;
@invertedDefinitionColumnFontWeight: bold;
@invertedDefinitionColumnFontWeight: @bold;
/* Basic */ /* Basic */
@basicTableBackground: transparent; @basicTableBackground: transparent;

8
src/themes/default/elements/button.variables

@ -22,7 +22,7 @@
@textTransform: none; @textTransform: none;
@tapColor: transparent; @tapColor: transparent;
@fontFamily: @pageFont; @fontFamily: @pageFont;
@fontWeight: bold;
@fontWeight: @bold;
@textColor: rgba(0, 0, 0, 0.6); @textColor: rgba(0, 0, 0, 0.6);
@textShadow: none; @textShadow: none;
@invertedTextShadow: @textShadow; @invertedTextShadow: @textShadow;
@ -152,8 +152,8 @@
@orBackgroundColor: @white; @orBackgroundColor: @white;
@orTextShadow: @invertedTextShadow; @orTextShadow: @invertedTextShadow;
@orTextStyle: normal;
@orTextWeight: bold;
@orTextStyle: @normal;
@orTextWeight: @bold;
@orTextColor: @lightTextColor; @orTextColor: @lightTextColor;
@ -198,7 +198,7 @@
@basicColoredBorderSize: 1px; @basicColoredBorderSize: 1px;
@basicBackground: transparent none; @basicBackground: transparent none;
@basicFontWeight: normal;
@basicFontWeight: @normal;
@basicBorder: 1px solid @borderColor; @basicBorder: 1px solid @borderColor;
@basicBoxShadow: 0px 0px 0px @basicBorderSize @borderColor inset; @basicBoxShadow: 0px 0px 0px @basicBorderSize @borderColor inset;
@basicLoadingColor: @offWhite; @basicLoadingColor: @offWhite;

4
src/themes/default/elements/divider.variables

@ -16,7 +16,7 @@
/* Text */ /* Text */
@letterSpacing: 0.05em; @letterSpacing: 0.05em;
@fontWeight: bold;
@fontWeight: @bold;
@color: @darkTextColor; @color: @darkTextColor;
@textTransform: uppercase; @textTransform: uppercase;
@ -50,4 +50,4 @@
@sectionMargin: 2rem; @sectionMargin: 2rem;
/* Sizes */ /* Sizes */
@medium: 1rem;
@medium: 1rem;

2
src/themes/default/elements/header.variables

@ -24,7 +24,7 @@
/* Sub Heading */ /* Sub Heading */
@subHeadingDistance: @2px; @subHeadingDistance: @2px;
@subHeadingFontSize: @relativeTiny; @subHeadingFontSize: @relativeTiny;
@subHeadingFontWeight: bold;
@subHeadingFontWeight: @bold;
@subHeadingTextTransform: uppercase; @subHeadingTextTransform: uppercase;
@subHeadingColor: ''; @subHeadingColor: '';

6
src/themes/default/elements/label.variables

@ -16,7 +16,7 @@
@horizontalPadding: 0.833em; @horizontalPadding: 0.833em;
@borderRadius: @absoluteBorderRadius; @borderRadius: @absoluteBorderRadius;
@textTransform: none; @textTransform: none;
@fontWeight: bold;
@fontWeight: @bold;
@borderWidth: 1px; @borderWidth: 1px;
@border: 0px solid transparent; @border: 0px solid transparent;
@ -45,7 +45,7 @@
@imageHeight: (1em + @verticalPadding * 2); @imageHeight: (1em + @verticalPadding * 2);
/* Detail */ /* Detail */
@detailFontWeight: bold;
@detailFontWeight: @bold;
@detailOpacity: 0.8; @detailOpacity: 0.8;
@detailIconDistance: 0.25em; @detailIconDistance: 0.25em;
@detailMargin: 1em; @detailMargin: 1em;
@ -208,7 +208,7 @@
/* Corner Text */ /* Corner Text */
@cornerTextWidth: 3em; @cornerTextWidth: 3em;
@cornerTextWeight: bold;
@cornerTextWeight: @bold;
@cornerTextSize: 1em; @cornerTextSize: 1em;
/* Horizontal */ /* Horizontal */

2
src/themes/default/elements/list.variables

@ -52,7 +52,7 @@
/* Header */ /* Header */
@itemHeaderFontFamily: @headerFont; @itemHeaderFontFamily: @headerFont;
@itemHeaderFontWeight: bold;
@itemHeaderFontWeight: @bold;
@itemHeaderColor: @textColor; @itemHeaderColor: @textColor;
/* Description */ /* Description */

6
src/themes/default/elements/step.variables

@ -47,14 +47,14 @@
/* Title */ /* Title */
@titleFontFamily: @headerFont; @titleFontFamily: @headerFont;
@titleFontWeight: bold;
@titleFontWeight: @bold;
@titleFontSize: @relativeLarge; @titleFontSize: @relativeLarge;
@titleColor: @darkTextColor; @titleColor: @darkTextColor;
/* Description */ /* Description */
@descriptionDistance: 0.25em; @descriptionDistance: 0.25em;
@descriptionFontSize: @relativeSmall; @descriptionFontSize: @relativeSmall;
@descriptionFontWeight: normal;
@descriptionFontWeight: @normal;
@descriptionColor: @textColor; @descriptionColor: @textColor;
@ -98,7 +98,7 @@
@attachedWidth: ~"calc(100% + "-@attachedHorizontalOffset * 2~")"; @attachedWidth: ~"calc(100% + "-@attachedHorizontalOffset * 2~")";
@orderedFontFamily: inherit; @orderedFontFamily: inherit;
@orderedFontWeight: bold;
@orderedFontWeight: @bold;
/*------------------- /*-------------------
States States

6
src/themes/default/globals/site.variables

@ -20,6 +20,10 @@
@googleProtocol : 'https://'; @googleProtocol : 'https://';
@googleFontRequest : '@{googleFontName}:@{googleFontSizes}&subset=@{googleSubset}'; @googleFontRequest : '@{googleFontName}:@{googleFontSizes}&subset=@{googleSubset}';
@bold : bold;
@normal : normal;
/*------------------- /*-------------------
Base Sizes Base Sizes
--------------------*/ --------------------*/
@ -57,7 +61,7 @@
Page Heading Page Heading
---------------*/ ---------------*/
@headerFontWeight : bold;
@headerFontWeight : @bold;
@headerLineHeight : unit((18 / 14), em); @headerLineHeight : unit((18 / 14), em);
@h1 : unit((28 / 14), rem); @h1 : unit((28 / 14), rem);

2
src/themes/default/modules/accordion.overrides

@ -25,4 +25,4 @@
.ui.accordion .title .dropdown.icon:before, .ui.accordion .title .dropdown.icon:before,
.ui.accordion .accordion .title .dropdown.icon:before { .ui.accordion .accordion .title .dropdown.icon:before {
content: '\f0da'/*rtl:'\f0d9'*/; content: '\f0da'/*rtl:'\f0d9'*/;
}
}

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

@ -74,7 +74,7 @@
/* Styled Title */ /* Styled Title */
@styledTitleMargin: 0em; @styledTitleMargin: 0em;
@styledTitlePadding: 0.75em 1em; @styledTitlePadding: 0.75em 1em;
@styledTitleFontWeight: bold;
@styledTitleFontWeight: @bold;
@styledTitleColor: @unselectedTextColor; @styledTitleColor: @unselectedTextColor;
@styledTitleTransition: background-color @defaultDuration @defaultEasing; @styledTitleTransition: background-color @defaultDuration @defaultEasing;
@styledTitleBorder: 1px solid @borderColor; @styledTitleBorder: 1px solid @borderColor;

12
src/themes/default/modules/dropdown.variables

@ -56,7 +56,7 @@
@itemVerticalPadding: @mini; @itemVerticalPadding: @mini;
@itemHorizontalPadding: @large; @itemHorizontalPadding: @large;
@itemPadding: @itemVerticalPadding @itemHorizontalPadding; @itemPadding: @itemVerticalPadding @itemHorizontalPadding;
@itemFontWeight: normal;
@itemFontWeight: @normal;
@itemLineHeight: 1em; @itemLineHeight: 1em;
@itemLineHeightOffset: (@itemLineHeight - 1em); @itemLineHeightOffset: (@itemLineHeight - 1em);
@itemTextTransform: none; @itemTextTransform: none;
@ -74,7 +74,7 @@
/* Menu Header */ /* Menu Header */
@menuHeaderColor: @darkTextColor; @menuHeaderColor: @darkTextColor;
@menuHeaderFontSize: @relative11px; @menuHeaderFontSize: @relative11px;
@menuHeaderFontWeight: bold;
@menuHeaderFontWeight: @bold;
@menuHeaderTextTransform: uppercase; @menuHeaderTextTransform: uppercase;
@menuHeaderMargin: 1rem 0rem 0.75rem; @menuHeaderMargin: 1rem 0rem 0.75rem;
@menuHeaderPadding: 0em @itemHorizontalPadding; @menuHeaderPadding: 0em @itemHorizontalPadding;
@ -112,7 +112,7 @@
/* Message */ /* Message */
@messagePadding: @selectionItemPadding; @messagePadding: @selectionItemPadding;
@messageFontWeight: normal;
@messageFontWeight: @normal;
@messageColor: @unselectedTextColor; @messageColor: @unselectedTextColor;
/* Floated Content */ /* Floated Content */
@ -198,7 +198,7 @@
@selectionFocusMenuBoxShadow: @raisedShadow; @selectionFocusMenuBoxShadow: @raisedShadow;
/* Visible */ /* Visible */
@selectionVisibleTextFontWeight: normal;
@selectionVisibleTextFontWeight: @normal;
@selectionVisibleTextColor: @hoveredTextColor; @selectionVisibleTextColor: @hoveredTextColor;
@selectionVisibleBorderColor: @focusedFormMutedBorderColor; @selectionVisibleBorderColor: @focusedFormMutedBorderColor;
@ -234,7 +234,7 @@
/* Inline */ /* Inline */
@inlineIconMargin: 0em @relative7px 0em @relative3px; @inlineIconMargin: 0em @relative7px 0em @relative3px;
@inlineTextColor: inherit; @inlineTextColor: inherit;
@inlineTextFontWeight: bold;
@inlineTextFontWeight: @bold;
@inlineMenuDistance: @relative3px; @inlineMenuDistance: @relative3px;
@inlineMenuBorderRadius: @borderRadius; @inlineMenuBorderRadius: @borderRadius;
@ -294,7 +294,7 @@
@activeItemZIndex: @menuZIndex + 1; @activeItemZIndex: @menuZIndex + 1;
@activeItemBackground: transparent; @activeItemBackground: transparent;
@activeItemBoxShadow: none; @activeItemBoxShadow: none;
@activeItemFontWeight: bold;
@activeItemFontWeight: @bold;
@activeItemColor: @selectedTextColor; @activeItemColor: @selectedTextColor;
/* Selected */ /* Selected */

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

@ -33,7 +33,7 @@
@headerColor: @darkTextColor; @headerColor: @darkTextColor;
@headerFontSize: @huge; @headerFontSize: @huge;
@headerBoxShadow: none; @headerBoxShadow: none;
@headerFontWeight: bold;
@headerFontWeight: @bold;
@headerFontFamily: @headerFont; @headerFontFamily: @headerFont;
@headerBorder: 1px solid @borderColor; @headerBorder: 1px solid @borderColor;

5
src/themes/default/modules/popup.variables

@ -17,8 +17,8 @@
@verticalPadding: 0.833em; @verticalPadding: 0.833em;
@horizontalPadding: 1em; @horizontalPadding: 1em;
@fontWeight: normal;
@fontStyle: normal;
@fontWeight: @normal;
@fontStyle: @normal;
@borderRadius: @defaultBorderRadius; @borderRadius: @defaultBorderRadius;
/*------------------- /*-------------------
@ -35,6 +35,7 @@
/* Header */ /* Header */
@headerFontFamily: @headerFont; @headerFontFamily: @headerFont;
@headerFontWeight: @bold;
@headerFontSize: @relativeLarge; @headerFontSize: @relativeLarge;
@headerDistance: @relative7px; @headerDistance: @relative7px;
@headerLineHeight: 1.2; @headerLineHeight: 1.2;

4
src/themes/default/modules/progress.variables

@ -42,7 +42,7 @@
@progressOffset: -0.5em; @progressOffset: -0.5em;
@progressColor: @invertedLightTextColor; @progressColor: @invertedLightTextColor;
@progressTextShadow: none; @progressTextShadow: none;
@progressFontWeight: bold;
@progressFontWeight: @bold;
@progressTextAlign: left; @progressTextAlign: left;
/* Label */ /* Label */
@ -57,7 +57,7 @@
@labelOffset: (@labelHeight - 1.3em); @labelOffset: (@labelHeight - 1.3em);
@labelColor: @textColor; @labelColor: @textColor;
@labelTextShadow: none; @labelTextShadow: none;
@labelFontWeight: bold;
@labelFontWeight: @bold;
@labelTextAlign: center; @labelTextAlign: center;
@labelTransition: color 0.4s @defaultEasing; @labelTransition: color 0.4s @defaultEasing;

8
src/themes/default/modules/search.variables

@ -49,7 +49,7 @@
/* Result Content */ /* Result Content */
@resultTitleFont: @headerFont; @resultTitleFont: @headerFont;
@resultTitleMargin: -@headerLineHeightOffset 0em 0em; @resultTitleMargin: -@headerLineHeightOffset 0em 0em;
@resultTitleFontWeight: bold;
@resultTitleFontWeight: @bold;
@resultTitleFontSize: @relativeMedium; @resultTitleFontSize: @relativeMedium;
@resultTitleColor: @darkTextColor; @resultTitleColor: @darkTextColor;
@ -66,7 +66,7 @@
@messageVerticalPadding: 1em; @messageVerticalPadding: 1em;
@messageHorizontalPadding: 1em; @messageHorizontalPadding: 1em;
@messageHeaderFontSize: @medium; @messageHeaderFontSize: @medium;
@messageHeaderFontWeight: bold;
@messageHeaderFontWeight: @bold;
@messageHeaderColor: @textColor; @messageHeaderColor: @textColor;
@messageDescriptionDistance: 0.25rem; @messageDescriptionDistance: 0.25rem;
@messageDescriptionFontSize: 1em; @messageDescriptionFontSize: 1em;
@ -77,7 +77,7 @@
@actionBackground: @darkWhite; @actionBackground: @darkWhite;
@actionPadding: @relativeSmall @relativeMedium; @actionPadding: @relativeSmall @relativeMedium;
@actionColor: @textColor; @actionColor: @textColor;
@actionFontWeight: bold;
@actionFontWeight: @bold;
@actionAlign: center; @actionAlign: center;
@ -154,5 +154,5 @@
@categoryNameFontSize: 1em; @categoryNameFontSize: 1em;
@categoryNameWhitespace: nowrap; @categoryNameWhitespace: nowrap;
@categoryNamePadding: 0.4em 1em; @categoryNamePadding: 0.4em 1em;
@categoryNameFontWeight: bold;
@categoryNameFontWeight: @bold;
@categoryNameColor: @lightTextColor; @categoryNameColor: @lightTextColor;

4
src/themes/default/views/ad.variables

@ -7,7 +7,7 @@
@testBackground: @lightBlack; @testBackground: @lightBlack;
@testColor: @white; @testColor: @white;
@testFontWeight: bold;
@testFontWeight: @bold;
@testText: 'Ad'; @testText: 'Ad';
@testFontSize: @relativeMedium; @testFontSize: @relativeMedium;
@testMobileFontSize: @relativeTiny;
@testMobileFontSize: @relativeTiny;

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

@ -71,7 +71,7 @@
/* Header */ /* Header */
@headerMargin: ''; @headerMargin: '';
@headerFontWeight: bold;
@headerFontWeight: @bold;
@headerFontSize: @relativeBig; @headerFontSize: @relativeBig;
@headerLineHeightOffset: -(@lineHeight - 1em) / 2; @headerLineHeightOffset: -(@lineHeight - 1em) / 2;
@headerColor: @darkTextColor; @headerColor: @darkTextColor;

2
src/themes/default/views/comment.variables

@ -48,7 +48,7 @@
@authorFontSize: 1em; @authorFontSize: 1em;
@authorColor: @textColor; @authorColor: @textColor;
@authorHoverColor: @linkHoverColor; @authorHoverColor: @linkHoverColor;
@authorFontWeight: bold;
@authorFontWeight: @bold;
/* Metadata */ /* Metadata */
@metadataDisplay: inline-block; @metadataDisplay: inline-block;

8
src/themes/default/views/feed.variables

@ -54,13 +54,13 @@
@datePadding: 0em; @datePadding: 0em;
@dateColor: @lightTextColor; @dateColor: @lightTextColor;
@dateFontSize: @relativeMedium; @dateFontSize: @relativeMedium;
@dateFontWeight: normal;
@dateFontStyle: normal;
@dateFontWeight: @normal;
@dateFontStyle: @normal;
/* Summary */ /* Summary */
@summaryMargin: 0em; @summaryMargin: 0em;
@summaryFontSize: @relativeMedium; @summaryFontSize: @relativeMedium;
@summaryFontWeight: bold;
@summaryFontWeight: @bold;
@summaryColor: @textColor; @summaryColor: @textColor;
/* Summary Image */ /* Summary Image */
@ -81,7 +81,7 @@
@summaryDateColor: @dateColor; @summaryDateColor: @dateColor;
/* User */ /* User */
@userFontWeight: bold;
@userFontWeight: @bold;
@userDistance: 0em; @userDistance: 0em;
@userImageWidth: @summaryImageWidth; @userImageWidth: @summaryImageWidth;
@userImageHeight: @summaryImageHeight; @userImageHeight: @summaryImageHeight;

2
src/themes/default/views/item.variables

@ -68,7 +68,7 @@
/* Header */ /* Header */
@headerMargin: -@lineHeightOffset 0em 0em; @headerMargin: -@lineHeightOffset 0em 0em;
@headerFontWeight: bold;
@headerFontWeight: @bold;
@headerFontSize: @relativeBig; @headerFontSize: @relativeBig;
@headerColor: @darkTextColor; @headerColor: @darkTextColor;

8
src/themes/default/views/statistic.variables

@ -25,7 +25,7 @@
/* Value */ /* Value */
@valueFont: @pageFont; @valueFont: @pageFont;
@valueFontWeight: normal;
@valueFontWeight: @normal;
@valueLineHeight: 1em; @valueLineHeight: 1em;
@valueColor: @black; @valueColor: @black;
@valueTextTransform: uppercase; @valueTextTransform: uppercase;
@ -35,7 +35,7 @@
@topLabelDistance: 0rem; @topLabelDistance: 0rem;
@bottomLabelDistance: 0rem; @bottomLabelDistance: 0rem;
@labelFont: @headerFont; @labelFont: @headerFont;
@labelFontWeight: bold;
@labelFontWeight: @bold;
@labelColor: @textColor; @labelColor: @textColor;
@labelLineHeight: @relativeLarge; @labelLineHeight: @relativeLarge;
@labelTextTransform: uppercase; @labelTextTransform: uppercase;
@ -43,7 +43,7 @@
/* Text */ /* Text */
@textValueLineHeight: 1em; @textValueLineHeight: 1em;
@textValueMinHeight: 2em; @textValueMinHeight: 2em;
@textValueFontWeight: bold;
@textValueFontWeight: @bold;
/* Label Image */ /* Label Image */
@imageHeight: 3rem; @imageHeight: 3rem;
@ -95,4 +95,4 @@
@hugeTextValueSize: 2.5rem; @hugeTextValueSize: 2.5rem;
@hugeValueSize: 6rem; @hugeValueSize: 6rem;
@hugeHorizontalValueSize: 5rem;
@hugeHorizontalValueSize: 5rem;
Loading…
Cancel
Save