Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Note

Warning: Styling mentioned on this page is limited. Please refer to https://styleguide.asce.org/section-components.html#asgref-components-buttons for a more comprehensive representation.

Contents

Table of Contents
minLevel1
maxLevel7

Default Style

2
outlinetrue
stylenone
exclude(C|c)ontents
typeflat
separatorpipe

Default Button Style

Default State

Property

Value

Notes

1

background-color

#ffffff

White

2

color

#1a1a1a

Black

3

font-size

1.125rem

4

font-weight

800

5

text-align

center

6

padding

15px 35px

7

border

solid 2px transparent

8

border-radius

30px

...

Use the color #0273ba, Blue, for border-color if a gradient is not possible using the method described above.

Altered States - :hover, :focus, and :active

Property

Value

Note

1

background-image

linear-gradient(40deg, #253a6e 6%, #059bd6 98%)

2

color

#ffffff

White

3

background-color

transparent

Altered State - :disabled

Property

Value

Note

1

background

rgb(148, 148, 148)

2

color

rgb(255, 255, 255)

White

3

border-color

rgb(148, 148, 148)

...

White Button Style

Default State

...

languagesass

...

Property

Value

Note

1

background-color

#ffffff

White

2

color

#1a1a1a

Black

3

font-size

1.125rem

4

font-weight

800

5

text-align

center

6

padding

15px 35px

7

border

solid 2px transparent

8

border-radius

30px

There is an ::after pseudo element with:

Code Block
languagecss
background-image: linear-gradient(40deg, #9fd64d 6%, #9fd64d 98%);

View https://styleguide.asce.org/section-components.html#asgref-components-buttons for details.

Use the color #9fd64d, Green , for border-color if a gradient is not possible using the method described above.

Altered States - :hover, :focus, and :active

Property

Value

Note

1

background-image

linear-gradient(40deg, #9fd64d 6%, #9fd64d 98%)

Green

2

color

#012a52

Blue shade 2

3

background-color

transparent

Altered State - :disabled

Property

Value

Note

1

background

rgb(148, 148, 148)

2

color

rgb(255, 255, 255)

White

3

border-color

rgb(148, 148, 148)

...

Gray Button Style

Default State

Property

Value

Note

1

background-color

#edeff1

Gray

2

color

#1a1a1a

Black

3

font-size

1.125rem

4

font-weight

800

5

text-align

center

6

padding

15px 35px

7

border

solid 2px transparent

8

border-radius

30px

There is an ::after pseudo element with:

Code Block
languagecss
background-image: linear-gradient(40deg, #059bd6 #9fd64d 6%, #9fd64d#253a6e 98%);
            margin: 0;
            border-radius: inherit;
            transition: 0.15s ease-in-out;
            z-index: -1;
        }
    }
}

Altered States

Code Block
languagesass
.btn, .button {
    &.-white {
        &:active, &:hover, &:focus, &.-focused {
            background-image: linear-gradient(40deg, #9fd64d 6%, #9fd64d 98%);
            color: #012a52;
            outline: 0;
            margin: 0;
            background-color: transparent;
        }
    }
}

View https://styleguide.asce.org/section-components.html#asgref-components-buttons for details.

Use the color #0273ba, Blue, for border-color if a gradient is not possible using the method described above.

Altered States - :hover, :focus, and :active

Property

Value

Note

1

background-image

linear-gradient(40deg, #253a6e 6%, #059bd6 98%)

2

color

#ffffff

White

3

background-color

transparent

Altered State - :disabled

Property

Value

Note

1

background

rgb(148, 148, 148)

2

color

rgb(255, 255, 255)

White

3

border-color

rgb(148, 148, 148)