_buttons.scss 1.87 KB
Newer Older
1
.ebi-button {
2
3
4
5
6
7
8
9
10
  font-weight: 700;
  line-height: 1;
  align-self: center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border: 4px solid $primary;
11
  box-shadow: 8px 8px 0 $primary--dark;
12
13
14
15
16
17
18
19
20
  display: inline-block;
  margin: 0 1rem 1rem 0;
  outline: 0;
  padding: 0.5em 1em;
  position: relative;
  text-align: center;
  text-decoration: none !important;
  transform: translate(0);
  transition: all 125ms linear;
21
  cursor: pointer;
22

23
24
25
  background-color: $color--white;
  color: $primary;
  font-size: 1rem;
26

27
28
29
30
  &:hover,
  &:focus {
    box-shadow: 4px 4px 0 $color--blue--dark;
    transform: translate(4px, 4px);
31
32
    background-color: $color--white;
    color: $primary;
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
    border: 4px solid $primary;
  }
  &:active {
    box-shadow: none;
    transform: translate(8px, 8px);

    // Override datatables buttons' btn-secondary bootstrap styles.
    background-color: $color--white !important;
    color: $primary !important;
    border: 4px solid $primary !important;
  }

  &--big {
    background-color: $primary;
    color: $color--white;
    font-size: 1.5rem;

    &:hover,
    &:focus {
      box-shadow: 4px 4px 0 $color--blue--dark;
      transform: translate(4px, 4px);
      background-color: $primary;
      color: $color--white;
    }
57

58
59
60
    &:active {
      box-shadow: none;
      transform: translate(8px, 8px);
61
62
63
    }
  }
}
64

65
66
67
68
69
70
71
72
73
74
75
// .btn {
//   background-color: $color--white;
//   color: $primary;
//   font-size: 1rem;
//   font-weight: 700;
//   border: 4px solid $primary;
//   border-radius: 0;
//   padding: 0.5em 1em;
//   text-decoration: none !important;
//   transition: all 100ms linear;
//   cursor: pointer;
76

77
78
79
80
81
82
//   &:hover,
//   &:focus {
//     background-color: $primary;
//     color: $color--white;
//     border-color: $primary;
//   }
83

84
85
86
87
//   &--big {
//     font-size: 1.25rem;
//   }
// }