~cadence/cloudtube

ref: 739f537bc7f09d3a8f65de444076e71d87922d14 cloudtube/sass/includes/buttons.sass -rw-r--r-- 1.5 KiB
739f537bCadence Ember Setting to alter recommended videos display 10 months ago
                                                                                
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
@use "sass:selector"
@use "colors.sass" as c

@mixin button-base
  -webkit-appearance: none
  -moz-appearance: none
  color: c.$fg-bright
  border: none
  border-radius: 4px
  padding: 8px
  margin: 0
  text-decoration: none
  line-height: 1.25

  @at-root #{selector.unify(&, "select")}
    padding: 8px 27px 8px 8px
    background: url(/static/images/arrow-down-wide.svg) right 53% no-repeat c.$bg-accent-x

  @at-root #{selector.unify(&, "a")}
    padding: 7px 8px

  @at-root #{selector.unify(&, "button")}
    cursor: pointer

  .button-icon
    position: relative
    top: 3px
    margin-right: 8px
    margin-left: 2px

@mixin button-bg
  @include button-base

  background-color: c.$bg-accent-x

@mixin border-button
  @include button-bg

  border: 1px solid c.$edge-grey

@mixin button-size
  margin: 4px
  font-size: 16px

@mixin button-hover
  &:hover
    background-color: c.$bg-accent

  &:active
    background-color: c.$bg-dark

.base-border-look
  @include border-button

.border-look
  @include border-button
  @include button-size
  @at-root #{selector.unify(&, "a, button")}
    @include button-hover

.menu-look
  @include button-size
  -webkit-appearance: none
  -moz-appearance: none
  color: c.$fg-bright
  text-decoration: none
  line-height: 1.25
  margin: 0
  padding: 8px 20px
  background: c.$bg-accent
  border: solid c.$bg-darker
  border-width: 1px 0px 0px
  text-align: left

  &:last-child
    border-width: 1px 0px 1px

  &:hover
    background: c.$bg-accent-x

  &:active
    background: c.$bg-darker