Skip to content

Commit

Permalink
fix: remove Master
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Dec 13, 2021
1 parent a4bcedc commit 8021552
Show file tree
Hide file tree
Showing 92 changed files with 270 additions and 266 deletions.
4 changes: 4 additions & 0 deletions master.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"name": "styles",
"github": {
"name": "master-style"
},
"assets": [
"src/package.json",
"README*",
Expand Down
2 changes: 1 addition & 1 deletion src/animation-delay.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ANIMATION, DASH, DELAY } from './constants/css-property-keyword';
import { MasterStyle } from '@master/style';

export class MasterAnimationDelayStyle extends MasterStyle {
export class AnimationDelayStyle extends MasterStyle {
static override prefixes = /^(animation-delay|\*delay):/;
static override properties = [ANIMATION + DASH + DELAY];
}
2 changes: 1 addition & 1 deletion src/animation-direction.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ANIMATION, DASH, DIRECTION } from './constants/css-property-keyword';
import { MasterStyle } from '@master/style';

export class MasterAnimationDirectionStyle extends MasterStyle {
export class AnimationDirectionStyle extends MasterStyle {
static override prefixes = /^(animation-direction|\*direction):/;
static override properties = [ANIMATION + DASH + DIRECTION];
}
2 changes: 1 addition & 1 deletion src/animation-fill-mode.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ANIMATION, DASH, FILL, MODE } from './constants/css-property-keyword';
import { MasterStyle } from '@master/style';

export class MasterAnimationFillModeStyle extends MasterStyle {
export class AnimationFillModeStyle extends MasterStyle {
static override prefixes = /^(animation-fill-mode|\*fill-mode):/;
static override properties = [ANIMATION + DASH + FILL + DASH + MODE];
}
2 changes: 1 addition & 1 deletion src/animation-iteration-count.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ANIMATION, COUNT, DASH, ITERATION } from './constants/css-property-keyword';
import { MasterStyle } from '@master/style';

export class MasterAnimationIterationCountStyle extends MasterStyle {
export class AnimationIterationCountStyle extends MasterStyle {
static override prefixes = /^(animation-iteration-count|\*iteration-count):/;
static override properties = [ANIMATION + DASH + ITERATION + DASH + COUNT];
}
2 changes: 1 addition & 1 deletion src/animation-name.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ANIMATION, DASH, NAME } from './constants/css-property-keyword';
import { MasterStyle } from '@master/style';

export class MasterAnimationNameStyle extends MasterStyle {
export class AnimationNameStyle extends MasterStyle {
static override prefixes = /^(animation-name|\*name):/;
static override properties = [ANIMATION + DASH + NAME];
}
2 changes: 1 addition & 1 deletion src/animation-play-state.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ANIMATION, DASH, PLAY_STATE } from './constants/css-property-keyword';
import { MasterStyle } from '@master/style';

export class MasterAnimationPlayStateStyle extends MasterStyle {
export class AnimationPlayStateStyle extends MasterStyle {
static override prefixes = /^(animation-play-state|\*play-state):/;
static override properties = [ANIMATION + DASH + PLAY_STATE];
}
2 changes: 1 addition & 1 deletion src/animation-timing-function.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ANIMATION, DASH, PLAY_STATE, TIMING_FUNCTION } from './constants/css-property-keyword';
import { MasterStyle } from '@master/style';

export class MasterAnimationTimingFunctionStyle extends MasterStyle {
export class AnimationTimingFunctionStyle extends MasterStyle {
static override prefixes = /^(animation-timing-function|\*easing):/;
static override properties = [ANIMATION + DASH + TIMING_FUNCTION];
}
2 changes: 1 addition & 1 deletion src/animation.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ANIMATION } from './constants/css-property-keyword';
import { MasterStyle } from '@master/style';

export class MasterAnimationStyle extends MasterStyle {
export class AnimationStyle extends MasterStyle {
static override prefixes = /^animation:/;
static override symbol = '*';
static override properties = [ANIMATION];
Expand Down
2 changes: 1 addition & 1 deletion src/backdrop-filter.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BACKDROP, DASH, FILTER } from './constants/css-property-keyword';
import { MasterStyle } from '@master/style';

export class MasterBackdropFilterStyle extends MasterStyle {
export class BackdropFilterStyle extends MasterStyle {
static override prefixes = /^(bd|backdrop-filter):/;
static override properties = [BACKDROP + DASH + FILTER];
}
2 changes: 1 addition & 1 deletion src/background-attachment.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MasterStyle } from '@master/style';
import { ATTACHMENT, BACKGROUND, DASH } from './constants/css-property-keyword';

export class MasterBackgroundAttachmentStyle extends MasterStyle {
export class BackgroundAttachmentStyle extends MasterStyle {
static override prefixes = /^bg-attachment:(bg:(fixed|local|scroll))/;
static override properties = [BACKGROUND + DASH + ATTACHMENT];
}
2 changes: 1 addition & 1 deletion src/background-blend-mode.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MasterStyle } from '@master/style';
import { BACKGROUND, BLEND, DASH, MODE } from './constants/css-property-keyword';

export class MasterBackgroundBlendModeStyle extends MasterStyle {
export class BackgroundBlendModeStyle extends MasterStyle {
static override prefixes = /^bg-blend:/;
static override properties = [BACKGROUND + DASH + BLEND + DASH + MODE];
}
2 changes: 1 addition & 1 deletion src/background-clip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { WEBKIT_PREFIX } from './constants/css-browser-prefix';

const BACKGROUND_CLIP = BACKGROUND + DASH + CLIP;

export class MasterBackgroundClipStyle extends MasterStyle {
export class BackgroundClipStyle extends MasterStyle {
static override prefixes = /^bg-clip:/;
static override properties = [
WEBKIT_PREFIX + BACKGROUND_CLIP,
Expand Down
2 changes: 1 addition & 1 deletion src/background-color.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MasterStyle } from '@master/style';
import { BACKGROUND, COLOR, DASH } from './constants/css-property-keyword';

export class MasterBackgroundColorStyle extends MasterStyle {
export class BackgroundColorStyle extends MasterStyle {
static override prefixes = /^(bg-color:|bg:transparent)/;
static override properties = [BACKGROUND + DASH + COLOR];
}
2 changes: 1 addition & 1 deletion src/background-image.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MasterStyle } from '@master/style';
import { BACKGROUND, DASH, IMAGE } from './constants/css-property-keyword';

export class MasterBackgroundImageStyle extends MasterStyle {
export class BackgroundImageStyle extends MasterStyle {
static override prefixes = /^bg-image:/;
static override properties = [BACKGROUND + DASH + IMAGE];
}
2 changes: 1 addition & 1 deletion src/background-origin.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MasterStyle } from '@master/style';
import { BACKGROUND, DASH, ORIGIN } from './constants/css-property-keyword';

export class MasterBackgroundOriginStyle extends MasterStyle {
export class BackgroundOriginStyle extends MasterStyle {
static override prefixes = /^bg-origin:/;
static override properties = [BACKGROUND + DASH + ORIGIN];
}
2 changes: 1 addition & 1 deletion src/background-position.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MasterStyle } from '@master/style';
import { BACKGROUND, DASH, POSITION } from './constants/css-property-keyword';

export class MasterBackgroundPositionStyle extends MasterStyle {
export class BackgroundPositionStyle extends MasterStyle {
static override prefixes = /^(bg-position:|bg:(top|bottom|right|left|center))/;
static override properties = [BACKGROUND + DASH + POSITION];
}
2 changes: 1 addition & 1 deletion src/background-repeat.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MasterStyle } from '@master/style';
import { BACKGROUND, DASH, REPEAT } from './constants/css-property-keyword';

export class MasterBackgroundRepeatStyle extends MasterStyle {
export class BackgroundRepeatStyle extends MasterStyle {
static override prefixes = /^(bg-repeat:|bg:(repeat|no-repeat|repeat-x|repeat-y))/;
static override properties = [BACKGROUND + DASH + REPEAT];
}
2 changes: 1 addition & 1 deletion src/background-size.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MasterStyle } from '@master/style';
import { BACKGROUND, DASH, SIZE } from './constants/css-property-keyword';

export class MasterBackgroundSizeStyle extends MasterStyle {
export class BackgroundSizeStyle extends MasterStyle {
static override prefixes = /^(bg-size:|bg:(cover|contain))/;
static override properties = [BACKGROUND + DASH + SIZE];
}
2 changes: 1 addition & 1 deletion src/background.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MasterStyle } from '@master/style';
import { BACKGROUND } from './constants/css-property-keyword';

export class MasterBackgroundStyle extends MasterStyle {
export class BackgroundStyle extends MasterStyle {
static override prefixes = /^bg:/;
static override properties = [BACKGROUND];
}
2 changes: 1 addition & 1 deletion src/border-color.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MasterStyle } from '@master/style';
import { BORDER, COLOR, DASH } from './constants/css-property-keyword';

export class MasterBorderColorStyle extends MasterStyle {
export class BorderColorStyle extends MasterStyle {
static override prefixes = /^b-color:/;
static override properties = [BORDER + DASH + COLOR];
}
2 changes: 1 addition & 1 deletion src/border-radius.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const BORDER_TOP_RIGHT_RADIUS = BORDER + DASH + TOP + DASH + RIGHT + DASH + RADI
const BORDER_BOTTOM_LEFT_RADIUS = BORDER + DASH + BOTTOM + DASH + LEFT + DASH + RADIUS;
const BORDER_BOTTOM_RIGHT_RADIUS = BORDER + DASH + BOTTOM + DASH + RIGHT + DASH + RADIUS;

export class MasterBorderRadiusStyle extends MasterStyle {
export class BorderRadiusStyle extends MasterStyle {
static override prefixes = /^(r(t|b|l|r)?(t|b|l|r)?:)/;
static override semantics = {
[ROUNDED]: '1e9em',
Expand Down
2 changes: 1 addition & 1 deletion src/border-style.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MasterStyle } from '@master/style';
import { BORDER, DASH, STYLE } from './constants/css-property-keyword';

export class MasterBorderStyleStyle extends MasterStyle {
export class BorderStyleStyle extends MasterStyle {
static override prefixes = /^b-style:/;
static override properties = [BORDER + DASH + STYLE];
}
2 changes: 1 addition & 1 deletion src/border-width.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MasterStyle } from '@master/style';
import { BORDER, DASH, WIDTH } from './constants/css-property-keyword';

export class MasterBorderWidthStyle extends MasterStyle {
export class BorderWidthStyle extends MasterStyle {
static override prefixes = /^b-width:/;
static override properties = [BORDER + DASH + WIDTH];
}
2 changes: 1 addition & 1 deletion src/border.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MasterStyle } from '@master/style';
import { BORDER } from './constants/css-property-keyword';

export class MasterBorderStyle extends MasterStyle {
export class BorderStyle extends MasterStyle {
static override prefixes = /^b:/;
static override properties = [BORDER];
}
2 changes: 1 addition & 1 deletion src/box-shadow.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MasterStyle } from '@master/style';
import { BOX, DASH, SHADOW } from './constants/css-property-keyword';

export class MasterBoxShadowStyle extends MasterStyle {
export class BoxShadowStyle extends MasterStyle {
static override prefixes = /^shadow:/;
static override properties = [BOX + DASH + SHADOW];
}
2 changes: 1 addition & 1 deletion src/box-sizing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { MasterStyle } from '@master/style';
const CONTENT_BOX = CONTENT + DASH + BOX;
const BORDER_BOX = BORDER + DASH + BOX;

export class MasterBoxSizingStyle extends MasterStyle {
export class BoxSizingStyle extends MasterStyle {
static override properties = [BOX + DASH + SIZING];
static override semantics = {
[CONTENT_BOX]: CONTENT_BOX,
Expand Down
2 changes: 1 addition & 1 deletion src/clear.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CLEAR } from './constants/css-property-keyword';
import { MasterStyle } from '@master/style';

export class MasterClearStyle extends MasterStyle {
export class ClearStyle extends MasterStyle {
static override prefixes = /^clear:/;
static override properties = [CLEAR];
}
2 changes: 1 addition & 1 deletion src/cursor.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MasterStyle } from '@master/style';
import { CURSOR } from './constants/css-property-keyword';

export class MasterCursorStyle extends MasterStyle {
export class CursorStyle extends MasterStyle {
static override prefixes = /^cursor:/;
static override properties = [CURSOR];
}
2 changes: 1 addition & 1 deletion src/display.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BLOCK, CONTENTS, DASH, DISPLAY, FLEX, GRID, INLINE } from './constants/css-property-keyword';
import { MasterStyle } from '@master/style';

export class MasterDisplayStyle extends MasterStyle {
export class DisplayStyle extends MasterStyle {
static override prefixes = /^(display|d):/;
static override properties = [DISPLAY];
static override semantics = {
Expand Down
2 changes: 1 addition & 1 deletion src/fill.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FILL } from './constants/css-property-keyword';
import { MasterStyle } from '@master/style';

export class MasterFillStyle extends MasterStyle {
export class FillStyle extends MasterStyle {
static override prefixes = /^fill:/;
static override properties = [FILL];
}
2 changes: 1 addition & 1 deletion src/filter.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FILTER } from './constants/css-property-keyword';
import { MasterStyle } from '@master/style';

export class MasterFilterStyle extends MasterStyle {
export class FilterStyle extends MasterStyle {
static override prefixes = /^filter:/;
static override properties = [FILTER];
}
2 changes: 1 addition & 1 deletion src/float.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FLOAT } from './constants/css-property-keyword';
import { MasterStyle } from '@master/style';

export class MasterFloatStyle extends MasterStyle {
export class FloatStyle extends MasterStyle {
static override prefixes = /^float:/;
static override properties = [FLOAT];
}
2 changes: 1 addition & 1 deletion src/font-family.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DASH, FAMILY, FONT, F_PREFIX } from './constants/css-property-keyword';
import { MasterStyle } from '@master/style';

export class MasterFontFamilyStyle extends MasterStyle {
export class FontFamilyStyle extends MasterStyle {
static override prefixes = /^f-family:/;
static override properties = [FONT + DASH + FAMILY];
static override semantics = {
Expand Down
2 changes: 1 addition & 1 deletion src/font-size.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DASH, FONT, SIZE } from './constants/css-property-keyword';
import { MasterStyle } from '@master/style';

export class MasterFontSizeStyle extends MasterStyle {
export class FontSizeStyle extends MasterStyle {
static override prefixes = /^(f-size:|f:[0-9])/;
static override properties = [FONT + DASH + SIZE];
}
2 changes: 1 addition & 1 deletion src/font-smoothing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { MasterStyle } from '@master/style';
const WEBKIT_FONT_SMOOTHING = WEBKIT_PREFIX + FONT + DASH + SMOOTHING;
const MOZ_OSX_FONT_SMOOTHING = MOZ_PREFIX + OSX + FONT + DASH + SMOOTHING;

export class MasterFontSmoothingStyle extends MasterStyle {
export class FontSmoothingStyle extends MasterStyle {
static override defaultUnit = '';
static override semantics = {
[F_PREFIX + SMOOTH]: {
Expand Down
2 changes: 1 addition & 1 deletion src/font-style.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DASH, FONT, STYLE } from './constants/css-property-keyword';
import { MasterStyle } from '@master/style';

export class MasterFontStyleStyle extends MasterStyle {
export class FontStyleStyle extends MasterStyle {
static override prefixes = /^(f-style:|f:italic)/;
static override properties = [FONT + DASH + STYLE];
}
2 changes: 1 addition & 1 deletion src/font-variant-numeric.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DASH, FONT, NUMERIC, VARIANT } from './constants/css-property-keyword';
import { MasterStyle } from '@master/style';

export class MasterFontVariantNumericStyle extends MasterStyle {
export class FontVariantNumericStyle extends MasterStyle {
static override prefixes = /^(f-variant-numeric:|f:(ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stached-fractions))/;
static override properties = [FONT + DASH + VARIANT + DASH + NUMERIC];
}
2 changes: 1 addition & 1 deletion src/font-weight.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DASH, FONT, F_PREFIX, WEIGHT } from './constants/css-property-keyword';
import { MasterStyle } from '@master/style';

export class MasterFontWeightStyle extends MasterStyle {
export class FontWeightStyle extends MasterStyle {
static override prefixes = /^f-weight:/;
static override properties = [FONT + DASH + WEIGHT];
static override defaultUnit = '';
Expand Down
2 changes: 1 addition & 1 deletion src/gap.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { COLUMN, DASH, GAP, ROW, X, Y } from './constants/css-property-keyword';
import { MasterStyle } from '@master/style';

export class MasterGapStyle extends MasterStyle {
export class GapStyle extends MasterStyle {
static override prefixes = /^gap(-x|-y)?:/;
override get properties(): { [key: string]: any } {
switch (this.prefix[4]) {
Expand Down
2 changes: 1 addition & 1 deletion src/grid-columns.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { COLUMNS, COMMA, DASH, DISPLAY, FR, GRID, MAX, MIN, REPEAT, TEMPLATE } from './constants/css-property-keyword';
import { MasterStyle } from '@master/style';

export class MasterGridColumnsStyle extends MasterStyle {
export class GridColumnsStyle extends MasterStyle {
static override prefixes = /^cols:/;
static override defaultUnit = '';
override get properties(): { [key: string]: any } {
Expand Down
Loading

0 comments on commit 8021552

Please sign in to comment.