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

質問編集履歴

1

情報の追加

2021/02/03 09:40

投稿

ty_tech
ty_tech

スコア1

title CHANGED
File without changes
body CHANGED
@@ -77,7 +77,74 @@
77
77
  });
78
78
  ```
79
79
 
80
+ # 追記①
81
+ ###### SCSSの記述
82
+ ```
80
83
 
84
+ .held_tabs{
85
+ width:80%;
86
+ margin:10px auto;
87
+ position:relative;
88
+ }
89
+ .tab-buttons span{
90
+ font:400 14px 'open sans',sans-serif;
91
+ color:#333;
92
+ background:#eee;
93
+ cursor:pointer;
94
+ border-bottom:2px solid #ddd;
95
+ display:block;
96
+ width:33.3%;
97
+ float:left;
98
+ text-align:center;
99
+ height:40px;
100
+ line-height:40px;
101
+ }
102
+ .tab-content{
103
+ text-align: center;
104
+ width:100%;
105
+ border-bottom:3px solid #ddd;
106
+ padding:15px;
107
+ background:#eee;
108
+ display:inline-block;
109
+ font:400 13px 'open sans',sans-serif;
110
+ color:#333;
111
+ }
112
+ #display_mark{
113
+ width:33.3%;
114
+ height:2px;
115
+ background:#333;
116
+ display:block;
117
+ position:absolute;
118
+ top:40px;
119
+ transition: all .3s ease-in;
120
+ -o-transition: all .3s ease-in;
121
+ -webkit-transition: all .3s ease-in;
122
+ -moz-transition: all .3s ease-in;
123
+ }
124
+ #display_mark.in_held_tab{
125
+ left:0;
126
+ transition: all .3s ease-in;
127
+ -o-transition: all .3s ease-in;
128
+ -webkit-transition: all .3s ease-in;
129
+ -moz-transition: all .3s ease-in;
130
+ }
131
+ #display_mark.before_held{
132
+ left:33.3%;
133
+ transition: all .3s ease-in;
134
+ -o-transition: all .3s ease-in;
135
+ -webkit-transition: all .3s ease-in;
136
+ -moz-transition: all .3s ease-in;
137
+ }
138
+ #display_mark.after_held{
139
+ left:66.6%;
140
+ transition: all .3s ease-in;
141
+ -o-transition: all .3s ease-in;
142
+ -webkit-transition: all .3s ease-in;
143
+ -moz-transition: all .3s ease-in;
144
+ }
145
+ ```
146
+
147
+
81
148
  ### 行った事
82
149
  初期表示を設定すればいいと思い下記を付け加えましたがうまくいきません。。
83
150
  (使い方が間違っている..? 汗)