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

_buttons.scss « partials « styles « src - github.com/GDGToulouse/devfest-theme-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0d98adf739ad8304718152550c4a77afa9a59d08 (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
button,
a.btn, span.btn,
input[type=button], input[type=reset], input[type=submit] {
  display: inline-flex;
  align-items: center;
  border: thin solid var(--darken-3);
  background: var(--darken-1);
  padding: var(--space-3);
  color: inherit;
  text-transform: uppercase;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 100;
  cursor: pointer;
  text-shadow: var(--extruded-light);
  --focus-color: var(--darken-1);
  --active-color: var(--darken-1);

  &.btn-lg {
    padding: .5rem 1rem;
    font-size: 1.25rem;
    line-height: 1.5;
    border-radius: .3rem;
  }

  &.primary {
    background-color: var(--primary);
    color: var(--primary-txt);
    text-shadow: var(--extruded-dark);
    --focus-color: var(--lighten-1);
    --active-color: var(--lighten-1);
  }

  // Icons

  &.btn-icon-only {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lighten-1);
    border-radius: 50%;
    margin-left: 1ch;
    padding: var(--space-2);
    border-color: transparent;

    .icon {
      margin: var(--space-2);
      --size: 1.5rem;
      width: var(--size, 1.5rem);
      height: var(--size, 1.5rem);
      display: inline-block;
      content: '';
      background-repeat: no-repeat;
    }
  }

  &:hover, &:focus {
    background-image: linear-gradient(to right, var(--focus-color), var(--focus-color) 100%);
    text-decoration: none;
  }

  .icon {
    --size: 1rem;
    width: var(--size, 1rem);
    height: var(--size, 1rem);
  }
}

form:invalid button,
button[aria-disabled],
a.btn[aria-disabled],
span.btn[aria-disabled] {
  opacity: .5;
  cursor: not-allowed;
  filter: grayscale(100%);;
}


a.goto-top {
  position: fixed;
  display: flex;
  bottom: 2em;
  right: 2em;
  width: 1em;
  height: 1em;
  justify-content: center;
  border: .75em solid var(--primary);
  align-items: center;
  font-size: 200%;
  background-color: var(--primary);
  color: var(--primary-txt);
  border-radius: 50%;
}