Skip to content

Commit

Permalink
strictly autofix with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Dec 18, 2022
1 parent a439660 commit c3915f3
Show file tree
Hide file tree
Showing 68 changed files with 557 additions and 408 deletions.
8 changes: 6 additions & 2 deletions src/definitions/collections/grid.less
Original file line number Diff line number Diff line change
Expand Up @@ -1454,11 +1454,15 @@
& when (@variationGridDivided) {
/* Divided Reversed */
.ui[class*="computer reversed"].divided.grid:not([class*="vertically divided"]) > .column:first-child,
.ui[class*="computer reversed"].divided.grid:not([class*="vertically divided"]) > .row > .column:first-child {
.ui[class*="computer reversed"].divided.grid:not([class*="vertically divided"])
> .row
> .column:first-child {
box-shadow: @dividedBorder;
}
.ui[class*="computer reversed"].divided.grid:not([class*="vertically divided"]) > .column:last-child,
.ui[class*="computer reversed"].divided.grid:not([class*="vertically divided"]) > .row > .column:last-child {
.ui[class*="computer reversed"].divided.grid:not([class*="vertically divided"])
> .row
> .column:last-child {
box-shadow: none;
}

Expand Down
13 changes: 10 additions & 3 deletions src/definitions/collections/menu.less
Original file line number Diff line number Diff line change
Expand Up @@ -402,11 +402,18 @@
}
}
@media only screen and (min-width: @tabletBreakpoint) {
.ui.menu:not(.secondary):not(.text):not(.tabular):not(.borderless) > .container > .item:not(.right):not(.borderless):first-child {
.ui.menu:not(.secondary):not(.text):not(.tabular):not(.borderless)
> .container
> .item:not(.right):not(.borderless):first-child {
border-left: @dividerSize solid @dividerBackground;
}
.ui.menu:not(.secondary):not(.text):not(.tabular):not(.borderless) > .container > .right.item:not(.borderless):last-child,
.ui.menu:not(.secondary):not(.text):not(.tabular):not(.borderless) > .container > .right.menu > .item:not(.borderless):last-child {
.ui.menu:not(.secondary):not(.text):not(.tabular):not(.borderless)
> .container
> .right.item:not(.borderless):last-child,
.ui.menu:not(.secondary):not(.text):not(.tabular):not(.borderless)
> .container
> .right.menu
> .item:not(.borderless):last-child {
border-right: @dividerSize solid @dividerBackground;
}
}
Expand Down
22 changes: 13 additions & 9 deletions src/definitions/elements/button.less
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@
}

.ui.animated.button .content {
will-change: transform, opacity;
will-change:
transform,
opacity;
}
.ui.animated.button .visible.content {
position: relative;
Expand Down Expand Up @@ -256,7 +258,9 @@
/* Vertical */
.ui.vertical.animated.button .visible.content,
.ui.vertical.animated.button .hidden.content {
transition: top @animationDuration @animationEasing, transform @animationDuration @animationEasing;
transition:
top @animationDuration @animationEasing,
transform @animationDuration @animationEasing;
}
.ui.vertical.animated.button .visible.content {
transform: translateY(0);
Expand All @@ -282,7 +286,9 @@
/* Fade */
.ui.fade.animated.button .visible.content,
.ui.fade.animated.button .hidden.content {
transition: opacity @animationDuration @animationEasing, transform @animationDuration @animationEasing;
transition:
opacity @animationDuration @animationEasing,
transform @animationDuration @animationEasing;
}
.ui.fade.animated.button .visible.content {
left: auto;
Expand Down Expand Up @@ -695,7 +701,8 @@

.ui.compact.labeled.icon.buttons .button,
.ui.compact.labeled.icon.button {
padding: @compactVerticalPadding (@compactHorizontalPadding + @labeledIconWidth) (@compactVerticalPadding + @shadowOffset);
padding: @compactVerticalPadding (@compactHorizontalPadding + @labeledIconWidth)
(@compactVerticalPadding + @shadowOffset);
}

.ui.compact.labeled.icon.buttons .button > .icon,
Expand Down Expand Up @@ -897,11 +904,8 @@
.ui.tertiary.button {
transition: color @defaultDuration @defaultEasing !important;
border-radius: 0;
margin:
(@verticalPadding - @tertiaryVerticalPadding)
(@horizontalMargin)
(@verticalPadding + @shadowOffset + @verticalMargin - @tertiaryVerticalPadding)
0 !important;
margin: (@verticalPadding - @tertiaryVerticalPadding) (@horizontalMargin)
(@verticalPadding + @shadowOffset + @verticalMargin - @tertiaryVerticalPadding) 0 !important;
padding: @tertiaryVerticalPadding @tertiaryHorizontalPadding !important;

& when (@tertiaryWithUnderline = true) {
Expand Down
5 changes: 2 additions & 3 deletions src/definitions/elements/icon.less
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,7 @@ i.icons {
}
}

& when ((@variationIconGroups) or (@variationIconCorner))
and ((@variationIconBordered) or (@variationIconCircular)) {
& when ((@variationIconGroups) or (@variationIconCorner)) and ((@variationIconBordered) or (@variationIconCircular)) {
/*************************************************
Bordered/circular with corner or group icons
*************************************************/
Expand Down Expand Up @@ -527,7 +526,7 @@ and ((@variationIconBordered) or (@variationIconCircular)) {
}
}
});
};
}

& when (@variationIconDeprecated) {
/* Deprecated *In/Out Naming Conflict) */
Expand Down
3 changes: 2 additions & 1 deletion src/definitions/elements/input.less
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,8 @@
padding-right: @labeledMargin;
}
}
.ui.ui[class*="corner labeled"]:not([class*="left corner labeled"]).icon:not([class*="left icon"]).input > .ui.dropdown {
.ui.ui[class*="corner labeled"]:not([class*="left corner labeled"]).icon:not([class*="left icon"]).input
> .ui.dropdown {
& > .search {
padding-right: @labeledAndIconMargin + @labeledIconInputMargin;
}
Expand Down
7 changes: 5 additions & 2 deletions src/definitions/modules/dropdown.less
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@
border-radius: @menuBorderRadius;
transition: @menuTransition;
z-index: @menuZIndex;
will-change: transform, opacity;
will-change:
transform,
opacity;
}

.ui.dropdown .menu > * {
Expand Down Expand Up @@ -652,7 +654,8 @@ select.ui.dropdown {
}

.ui.inverted.dropdown .scrollhint.menu:not(.hidden)::before {
border-image: linear-gradient(to bottom, @invertedScrollhintStartColor, @invertedScrollhintEndColor) 1 100%;
border-image: linear-gradient(to bottom, @invertedScrollhintStartColor, @invertedScrollhintEndColor)
1 100%;
}

@keyframes scrollhint {
Expand Down
7 changes: 6 additions & 1 deletion src/definitions/modules/modal.less
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@
flex: 0 0 auto;
border-radius: @borderRadius;
user-select: text;
will-change: top, left, margin, transform, opacity;
will-change:
top,
left,
margin,
transform,
opacity;
}

.ui.modal > :first-child:not(.close):not(.dimmer),
Expand Down
8 changes: 6 additions & 2 deletions src/definitions/modules/toast.less
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@
margin-bottom: @toastBoxMarginBottom;
border-radius: @defaultBorderRadius;
cursor: default;
will-change: transform, opacity;
will-change:
transform,
opacity;
&:hover {
opacity: @toastOpacityOnHover;
}
Expand Down Expand Up @@ -589,7 +591,9 @@
}

.ui.hoverfloating.message:hover when (@variationToastMessage) and (@variationToastFloating) {
box-shadow: 0 0 0 1px inset, @floatingShadow;
box-shadow:
0 0 0 1px inset,
@floatingShadow;
}

.ui.center.toast-container .toast-box,
Expand Down
19 changes: 9 additions & 10 deletions src/themes/amazon/elements/button.variables
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,19 @@
-------------------- */

/* Button Variables */
@pageFont: Helvetica Neue, Helvetica, Arial, sans-serif;
@pageFont:
Helvetica Neue,
Helvetica,
Arial,
sans-serif;
@textTransform: none;
@textColor: #111;
@fontWeight: normal;
@transition:
opacity @defaultDuration @defaultEasing,
background-color @defaultDuration @defaultEasing,
color @defaultDuration @defaultEasing,
background @defaultDuration @defaultEasing
;
background @defaultDuration @defaultEasing;

@hoverBackgroundColor: #e0e0e0;

Expand All @@ -24,18 +27,14 @@
@backgroundImage: linear-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.1));
@boxShadow:
0 1px 0 1px rgba(255, 255, 255, 0.3) inset,
0 0 0 1px #adb2bb inset
;
0 0 0 1px #adb2bb inset;

@coloredBackgroundImage: linear-gradient(rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.2));
@coloredBoxShadow:
0 1px 0 0 rgba(255, 255, 255, 0.2) inset
;
@coloredBoxShadow: 0 1px 0 0 rgba(255, 255, 255, 0.2) inset;

@downBoxShadow:
0 0 0 1px #adb2bb inset,
0 1px 3px rgba(0, 0, 0, 0.2) inset
;
0 1px 3px rgba(0, 0, 0, 0.2) inset;

@labeledIconBackgroundColor: #313a43;
@labeledIconColor: #fff;
Expand Down
5 changes: 4 additions & 1 deletion src/themes/bookish/elements/header.variables
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
Header
-------------------- */

@headerFont: "Karma", "Times New Roman", serif;
@headerFont:
"Karma",
"Times New Roman",
serif;
@fontWeight: @normal;

@iconSize: 1.5em;
Expand Down
16 changes: 8 additions & 8 deletions src/themes/bootstrap3/elements/button.variables
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
-------------------- */

/* Button Variables */
@pageFont: Helvetica Neue, Helvetica, Arial, sans-serif;
@pageFont:
Helvetica Neue,
Helvetica,
Arial,
sans-serif;
@textTransform: none;
@fontWeight: @normal;
@textColor: rgba(51, 51, 51, 1);
Expand Down Expand Up @@ -38,24 +42,20 @@
@basicHoverBackground: transparent;
@basicDownBoxShadow:
0 0 0 1px #adadad inset,
0 3px 5px rgba(0, 0, 0, 0.125) inset
;
0 3px 5px rgba(0, 0, 0, 0.125) inset;

@groupButtonOffset: 0 0 0 -1px;
@verticalGroupOffset: 0 0 -1px 0;

/* States */

@hoverBackgroundColor: #e6e6e6;
@hoverBoxShadow:
0 0 0 1px #adadad inset
;
@hoverBoxShadow: 0 0 0 1px #adadad inset;

@downBackgroundColor: #e6e6e6;
@downBoxShadow:
0 0 0 1px #adadad inset,
0 3px 5px rgba(0, 0, 0, 0.125) inset
;
0 3px 5px rgba(0, 0, 0, 0.125) inset;

@activeBackgroundColor: #e6e6e6;

Expand Down
5 changes: 4 additions & 1 deletion src/themes/chubby/elements/button.variables
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
-------------------- */

/* Button Variables */
@pageFont: "Source Sans Pro", Arial, sans-serif;
@pageFont:
"Source Sans Pro",
Arial,
sans-serif;

@textTransform: none;
@fontWeight: @normal;
Expand Down
7 changes: 6 additions & 1 deletion src/themes/chubby/elements/header.variables
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
Header
-------------------- */

@headerFont: "Source Sans Pro", Helvetica Neue, Helvetica, Arial, sans-serif;
@headerFont:
"Source Sans Pro",
Helvetica Neue,
Helvetica,
Arial,
sans-serif;
@fontWeight: bold;
@textTransform: none;

Expand Down
18 changes: 6 additions & 12 deletions src/themes/classic/elements/button.variables
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
@backgroundImage: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.09));
@boxShadow:
0 0 0 1px @borderColor inset,
@shadowBoxShadow
;
@shadowBoxShadow;

/* Padding */
@verticalPadding: 0.8em;
Expand All @@ -28,8 +27,7 @@
@groupBoxShadow: none;
@groupButtonBoxShadow:
0 0 0 1px @borderColor inset,
@shadowBoxShadow
;
@shadowBoxShadow;
@verticalBoxShadow: 0 0 0 1px @borderColor inset;
@groupButtonOffset: 0 0 0 -1px;
@verticalGroupOffset: 0 0 -1px 0;
Expand All @@ -50,8 +48,7 @@
@focusBackgroundImage: none;
@focusBoxShadow:
0 0 1px rgba(81, 167, 232, 0.8) inset,
0 0 3px 2px rgba(81, 167, 232, 0.8)
;
0 0 3px 2px rgba(81, 167, 232, 0.8);
@focusColor: @hoveredTextColor;
@iconFocusOpacity: 0.85;

Expand All @@ -60,8 +57,7 @@
@downBackgroundImage: "";
@downBoxShadow:
0 0 0 1px rgba(0, 0, 0, 0.1) inset,
0 1px 4px 0 rgba(0, 0, 0, 0.1) inset !important
;
0 1px 4px 0 rgba(0, 0, 0, 0.1) inset !important;
@downColor: @pressedTextColor;

/* Active */
Expand All @@ -70,16 +66,14 @@
@activeColor: @selectedTextColor;
@activeBoxShadow:
0 0 0 1px rgba(0, 0, 0, 0.1) inset,
0 1px 4px 0 rgba(0, 0, 0, 0.1) inset !important
;
0 1px 4px 0 rgba(0, 0, 0, 0.1) inset !important;

/* Active + Hovered */
@activeHoverBackgroundColor: #dadada;
@activeHoverBackgroundImage: none;
@activeHoverBoxShadow:
0 0 0 1px rgba(0, 0, 0, 0.1) inset,
0 1px 4px 0 rgba(0, 0, 0, 0.1) inset !important
;
0 1px 4px 0 rgba(0, 0, 0, 0.1) inset !important;
@activeHoverColor: @selectedTextColor;

/* Loading */
Expand Down
5 changes: 4 additions & 1 deletion src/themes/classic/elements/header.variables
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
Element
-------------------- */

@headerFont: "Open Sans", Arial, sans-serif;
@headerFont:
"Open Sans",
Arial,
sans-serif;

@blockBackground: @offWhite @subtleGradient;
@blockBoxShadow: @subtleShadow;
6 changes: 2 additions & 4 deletions src/themes/classic/views/card.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
@width: 300px;
@boxShadow:
0 0 0 1px @borderColor,
0 3px 0 0 @borderColor
;
0 3px 0 0 @borderColor;
@border: none;
@zIndex: "";

Expand Down Expand Up @@ -87,8 +86,7 @@
@hoverBorder: none;
@hoverBoxShadow:
0 0 0 1px @selectedBorderColor,
0 3px 0 0 @selectedBorderColor
;
0 3px 0 0 @selectedBorderColor;

/* -------------------
Variations
Expand Down
Loading

0 comments on commit c3915f3

Please sign in to comment.