Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_buttons.scss « scss « assets - github.com/themefisher/bigspring-hugo-startup-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f313080988063c92b4932d788b8ee43b407c6762 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/* Button style */
.btn {
  font-size: 16px;
  font-family: $primary-font;
  font-weight: 600;
  text-transform: capitalize;
  padding: 15px 30px;
  border-radius: 30px;
  border: 0;
  position: relative;
  z-index: 1;
  transition: .2s ease;
  white-space: nowrap;

  &::before {
    position: absolute;
    content: "";
    height: 100%;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    border-radius: inherit;
    transition: inherit;
    background-color: inherit;
    border: 1px solid transparent;
  }

  &:hover,
  &:active,
  &:focus {
    outline: 0;
    @extend .shadow;

    &::before {
      height: 110%;
      width: 110%;
    }
  }

  &-sm {
    padding: 12px 30px;
    font-size: 15px;
  }
}

.btn-primary {
  background-color: $primary-color;
  color: $white;
  border-color: $primary-color;

  &:active,
  &:hover,
  &.focus,
  &.active {
    background-color: $primary-color !important;
    border-color: $primary-color !important;
  }
}

.btn-outline-primary {
  background-color: transparent;
  color: $text-color-dark;
  border-color: transparent;

  &:active,
  &:hover,
  &.focus,
  &.active {
    background-color: transparent !important;
    border-color: $primary-color !important;
    color: $primary-color;
  }
  &::before{
    border-color: $primary-color;
  }
}

.btn-link {
  color: $primary-color;

  i {
    font-size: 12px;
    margin-left: 5px;
    transition: .2s ease;
  }

  &:active,
  &:hover,
  &.focus,
  &.active {
    color: $primary-color;
    text-decoration: none;

    i {
      margin-left: 10px;
    }
  }
}