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
84 changes: 6 additions & 78 deletions components/01-atoms/buttons/_buttons.scss
Original file line number Diff line number Diff line change
@@ -1,31 +1,23 @@
@mixin button(
$bg: $white,
$color: $red,
$hoverBg: $red,
$hoverColor: $white,
$iconColor: $red,
$iconHoverColor: $white
$color: $gray-darker,
$hoverBg: $gray-lightest,
$hoverColor: $gray-darker,
$iconColor: $gray-light,
$iconHoverColor: $gray
) {
background-color: $bg;
border: none;
color: $color;
cursor: pointer;
line-height: $line-height-large;
display: flex;
align-items: center;
justify-content: center;
text-decoration: none;
text-align: center;
border-radius: 0.2rem;
font-size: $font-small;
font-weight: 600;

@include medium {
font-size: $font-medium;
}

@include padding-xs(right left);
@include padding-xxs(top bottom);
padding: $space $space-double;

&:visited {
color: $color;
Expand All @@ -51,67 +43,3 @@
fill: $iconColor;
}
}

.button {
@include button;

&--alt {
@include button($red, $white, $red-lighter, $white, $white, $white);
}

&--alt-red {
@include button($white, $red, $red-lighter, $white, $red, $white);
}

&--outline {
@include button(transparent, $red, $red, $white);

border: 2px solid $red;
}

&--outline-alt {
@include button(transparent, $white, $red-lighter, $white);

border: 2px solid $white;
}

&--download {
@include button($gray, $white, $red-darker, $white);
}

&--link {
@include button($white, $red, $white, $red-light);

text-decoration: underline;
}

&--transparent {
@include button(transparent, $black, transparent, $black, $black, $black);
}

&--border-bottom {
@include button(transparent, $black, transparent, $black, $black, $black);

display: flex;
justify-content: space-between;
position: relative;
z-index: 1;
font-size: $font-medium;
text-align: start;

&:not(:last-child)::before {
content: '';
position: absolute;
left: 50%;
bottom: 0;
height: 1px;
width: 100%;
transform: translate(-50%, 0);
border-bottom: 1px solid $black;
}
}

&--shadow {
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}
}
4 changes: 0 additions & 4 deletions components/01-atoms/buttons/button-alt-red.yml

This file was deleted.

4 changes: 0 additions & 4 deletions components/01-atoms/buttons/button-alt.yml

This file was deleted.

5 changes: 0 additions & 5 deletions components/01-atoms/buttons/button-download.yml

This file was deleted.

4 changes: 0 additions & 4 deletions components/01-atoms/buttons/button-link.yml

This file was deleted.

4 changes: 0 additions & 4 deletions components/01-atoms/buttons/button-outline.yml

This file was deleted.

25 changes: 0 additions & 25 deletions components/01-atoms/buttons/buttons.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ import React from 'react';
import button from './button.twig';

import buttonData from './button.yml';
import buttonAltData from './button-alt.yml';
import buttonAltDataRed from './button-alt-red.yml';
import buttonOutlineData from './button-outline.yml';
import buttonDownloadData from './button-download.yml';
import buttonLinkData from './button-link.yml';

/**
* Storybook Definition.
Expand All @@ -17,23 +12,3 @@ export default { title: 'Atoms/Button' };
export const example = () => (
<div dangerouslySetInnerHTML={{ __html: button(buttonData) }} />
);

export const exampleAlt = () => (
<div dangerouslySetInnerHTML={{ __html: button(buttonAltData) }} />
);

export const exampleAltRed = () => (
<div dangerouslySetInnerHTML={{ __html: button(buttonAltDataRed) }} />
);

export const exampleOutline = () => (
<div dangerouslySetInnerHTML={{ __html: button(buttonOutlineData) }} />
);

export const exampleDownload = () => (
<div dangerouslySetInnerHTML={{ __html: button(buttonDownloadData) }} />
);

export const exampleLink = () => (
<div dangerouslySetInnerHTML={{ __html: button(buttonLinkData) }} />
);
82 changes: 0 additions & 82 deletions components/02-molecules/accordion/_accordion.scss

This file was deleted.

15 changes: 0 additions & 15 deletions components/02-molecules/accordion/accordion-one-col.yml

This file was deleted.

17 changes: 0 additions & 17 deletions components/02-molecules/accordion/accordion-two-col.yml

This file was deleted.

103 changes: 0 additions & 103 deletions components/02-molecules/accordion/accordion.js

This file was deleted.

Loading