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: ba79540f8d6c37368e3d6ab28524b935a0c4a154 (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
.button {
  border: none;
  outline: none;
  padding: 0.75rem;
  margin-top: 2.5rem;
  margin-right: 0.5rem;
  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');
      }
    }
  }
}