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

_button.scss « components « sass « assets - github.com/zzossig/hugo-theme-zdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ee38ef7e478af2d9f2c5a3eb86c7f1819891e677 (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
.button {
  border: none;
  outline: none;
  padding: 0.75rem;
  border-radius: 0.25rem;
  text-decoration: none;
  cursor: pointer;

  @include transition(all, 0.15s, ease-in);

  &[data-color="default"] {
    @include themify($themes) {
      color: themed('landing-button-default');
      background-color: transparent;
      border: 1px solid themed('landing-button-default');

      @include on-event {
        color: themed('body-background-color');
        border: 1px solid darken(themed('landing-button-default'), 15%);
        background-color: themed('landing-button-default');
      }
    }
  }
  
  &[data-color="primary"] {
    @include themify($themes) {
      color: themed('landing-button-primary');
      background-color: transparent;
      border: 1px solid themed('landing-button-primary');

      @include on-event {
        color: themed('body-background-color');
        border: 1px solid darken(themed('landing-button-primary'), 15%);
        background-color: themed('landing-button-primary');
      }
    }
  }
}

.editBtn {
  border: none;
  outline: none;
  padding: 0.75rem;
  margin: 0 0.95rem;
  text-decoration: none;
  cursor: pointer;
  font-family: $title-font;
  background-color: transparent;

  @include themify($themes) {
    color: themed('landing-button-default');
    @include on-event {
      color: themed('body-color');
      background-color: themed('dropdown-hover-background-color');
    }
  }

  @media only screen and (max-width: 600px) {
    display: none;
  }
}