質問するログイン新規登録

質問編集履歴

2

cssのソースの追加

2019/03/12 04:08

投稿

ShoSakata
ShoSakata

スコア20

title CHANGED
File without changes
body CHANGED
@@ -29,4 +29,62 @@
29
29
  nowchecked = $(this).val();
30
30
  }
31
31
  });
32
+ ```
33
+
34
+ ```css
35
+ .checkboxTab {
36
+ max-width: 900px;
37
+ font-size: 0;
38
+ letter-spacing: 0;
39
+ overflow: hidden;
40
+ }
41
+ .checkboxTab ul {
42
+ margin-left: -4px;
43
+ padding-inline-start: 0px;
44
+ }
45
+ .checkboxTab ul li {
46
+ float: left;
47
+ width: 136px;
48
+ height: 45px;
49
+ margin: 0 4px 8px;
50
+ display: table;
51
+ }
52
+
53
+ .checkboxTab input {
54
+ display: none;
55
+ -webkit-appearance: inherit;
56
+ border: none;
57
+ position: absolute;
58
+ z-index: 2;
59
+ top: 0;
60
+ left: 0;
61
+ background-color: #000;
62
+ position: relative;
63
+ width: 100%;
64
+ height: 100%;
65
+ }
66
+
67
+ .checkboxTab input:checked + label { background-color: #000; color: #fff;}
68
+
69
+ .checkboxTab label {
70
+ display: table-cell;
71
+ vertical-align: middle;
72
+ font-size: 1.55rem;
73
+ font-weight: 500;
74
+ background-color: #e5e5e5;
75
+ text-align: center;
76
+ border-radius: 3px;
77
+ color: inherit;
78
+ line-height: 1;
79
+ cursor: pointer;
80
+ transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
81
+ }
82
+ .checkboxTab label[for="consistency"] {
83
+ font-size: 1.3rem;
84
+ }
85
+ .checkboxTab label:hover {
86
+ background-color: #000;
87
+ color: #fff;
88
+ }
89
+ .checkboxTab .mini { font-size: 1.2rem; }
32
90
  ```

1

タグ(css)の追加

2019/03/12 04:08

投稿

ShoSakata
ShoSakata

スコア20

title CHANGED
File without changes
body CHANGED
File without changes