Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .travis.yml

This file was deleted.

106 changes: 106 additions & 0 deletions axis/_button.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
/* ------ */
/* Button */
/* ------ */

:root {

/* Mixin: Button

Creates a basic button. */
--button {
padding: calc(var(--button-med-size) * .6) calc(var(--button-med-size) * .8);
font-size: var(--button-med-size);
@apply --transition;
cursor: pointer;
line-height: 1em;
text-decoration: none;
display: inline-block;
border: var(--outline-button-stroke) solid var(--button-bg-color);
border-radius: var(--button-radius);
background-color: var(--button-bg-color);
color: var(--button-text-color);
user-select: none;

&:hover, &:active {
border: var(--outline-button-stroke) solid color(var(--button-bg-color) shade(20%));
background-color: color(var(--button-bg-color) shade(20%));
}
}

/* --- Button modifiers --- */

/* Mixin: Large button

Make the default button bigger. Note: must be applied after --button. */
--button-large {
padding: calc(var(--button-large-size) * .6) calc(var(--button-large-size));
font-size: var(--button-large-size);
}

/* Mixin: Small button

Make the default button smaller. Note: must be applied after --button. */
--button-small {
padding: calc(var(--button-small-size) * .6) calc(var(--button-small-size) * .8) calc(var(--button-small-size) * .5);
font-size: var(--button-small-size);
}

/* Mixin: Outline button

Creates an outline-style button. Note: must be applied after --button. */
--button-outline {
background: var(--outline-button-bg-color);
color: var(--outline-button-stroke-color);
border: var(--outline-button-stroke) solid var(--outline-button-stroke-color);

&:hover {
background: var(--outline-button-bg-hover-color);
border: var(--outline-button-stroke) solid var(--outline-button-stroke-hover-color);
color: var(--outline-button-stroke-hover-color);
}
}

/* Mixin: Disabled button

Sometimes you dont want buttons to be clicked. This is one of those times.
Note: must be applied after --button. */
--button-disabled {
cursor: not-allowed;
background-color: color(var(--base-gray) tint(70%));
border: var(--outline-button-stroke) solid color(var(--base-gray) tint(70%));

&:hover {
background-color: color(var(--base-gray) tint(70%));
border: var(--outline-button-stroke) solid color(var(--base-gray) tint(70%));
}
}

/* Additive Mixin: Buttons

WARNING: Creates classes in your css and styles them - not to be used inside
an element.

Adds Axis' styles to buttons. */
--buttons {
button,
.btn {
@apply --button;

&.large {
@apply --button-large;
}

&.small {
@apply --button-small;
}

&.outline {
@apply --button-outline;
}

&.disabled {
@apply --button-disabled;
}
}
}
}
62 changes: 62 additions & 0 deletions axis/_code.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/* ----------- */
/* Code Blocks */
/* ----------- */

:root {
/* Mixin: Code

Styles inline code snippets. Fits nicely within a pagaraph. */
--code {
background-color: color(var(--base-gray) lightness(96%));
border: 1px solid color(var(--base-gray) lightness(85%));
border-radius: var(--global-border-radius);
color: var(--color-accent);
font-family: var(--font-monospace);
font-size: .8rem;
padding: .08rem .2rem;
white-space: normal;
}

/* Mixin: Pre

Default styling for code blocks. */
--pre {
background-color: color(var(--base-gray) lightness(96%));
border: 1px solid color(var(--base-gray) lightness(80%));
border-radius: var(--global-border-radius);
display: block;
font-family: var(--font-monospace);
font-size: .8rem;
line-height: inherit;
margin: 0 0 var(--default-margin);
padding: .5rem .8rem;
white-space: pre-wrap;
}


/* Mixin: Pre Dark

Dark theme for code blocks. Note: must be applied after --pre.*/
--pre-dark {
background-color: color(var(--base-gray) lightness(20%));
color: color(var(--base-gray) lightness(75%));
border: 1px solid color(var(--base-gray) lightness(14%));
}


/* Additive Mixin: Code blocks

WARNING: Creates classes in your css and styles them - not to be used inside
an element.

Adds Axis' styles to code blocks. */
--code-blocks {
code {
@apply --code;
}

pre {
@apply --pre;
}
}
}
Loading