지원이 중단된 브라우저를 사용하고 있습니다.
브라우저 업그레이드를 통해 최적화된 화면을 볼 수 있습니다.

Home button
Post
Cancel

button

html

1
2
<a href="#" class="o-button o-button--1x o-button--gray">a태그</a>
<button type="button" class="o-button o-button--1x o-button--gray">button 태그</button>

css

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
/*---------------------------------------------
  Button
 ----------------------------------------------*/
.o-button {
  display: inline-block;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #222;
  appearance: none;
  transition: background 200ms;

  // disabled
  &:disabled,
  &.is-disabled {
    background-color: #bbb;
    cursor: default;
  }

  // size
  &--1x {
    height: 45px;
    padding: 0 25px;
    line-height: 45px;
  }
  &--2x {
    height: 50px;
    line-height: 50px;
  }
  &--3x {
    height: 55px;
    line-height: 55px;
  }
  &--full {
    display: block;
    width: 100%;
    text-align: center
  }

  // color
  &-gray {
    border-color: #444;
    background-color: #444;
    color: #fff;
  }
  &--white {
    border: 1px solid #ccc;
    background-color: #fff;
    color: #222;
  }

  // etc
  &--line {
    border: 1px solid #ccc;
  }
}

.t-button-wrap {
  padding: 30px 18px;
}

.t-flex-wrap {
  display: flex;

  .o-button {
    flex: 1;
  }
}
This post is licensed under CC BY 4.0 by the author.