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

質問編集履歴

2

追加内容

2025/11/06 01:36

投稿

yus
yus

スコア2

title CHANGED
File without changes
body CHANGED
@@ -3,6 +3,9 @@
3
3
  jQueryで上書きする場合どのようなコードになるでしょうか。
4
4
  よろしくお願いいたします。
5
5
 
6
+ また、下記のような複数モーダルを使用しています。
7
+ https://125naroom.com/web/3202#%e3%83%a2%e3%83%bc%e3%83%80%e3%83%ab%e3%81%ae%e3%82%b5%e3%83%b3%e3%83%97%e3%83%ab%ef%bc%88%e5%90%8c%e3%81%98%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ab%e8%a4%87%e6%95%b0%e3%83%a2%e3%83%bc%e3%83%80%e3%83%ab%ef%bc%89
8
+
6
9
  『Remodal』↓
7
10
  https://vodkabears.github.io/remodal/
8
11
 

1

コードの追加

2025/11/06 01:26

投稿

yus
yus

スコア2

title CHANGED
File without changes
body CHANGED
@@ -14,10 +14,156 @@
14
14
 
15
15
  ### 該当のソースコード
16
16
 
17
+ ```HTML
18
+
19
+ <section class="modal_space">
20
+ <a href="#modal_02" class="btn btn_pink">詳細はこちら</a>
21
+ <div class="remodal" data-remodal-id="modal_02">
22
+ <div class="remodal-rerative">
23
+ <div data-remodal-action="cancel" class="remodal-cancel remodal-cancel_btn">×</div>
24
+ <p class="modal_maintitle">求人詳細</p>
25
+ <ul class="modal_list">
26
+ <li class="modal_item">
27
+ <p class="modal_title">最寄り駅</p>
28
+ <p class="modal_txt">東京メトロ南北線沿線</p>
29
+ </li>
30
+ <li class="modal_item">
31
+ <p class="modal_title">定員数</p>
32
+ <p class="modal_txt">64名</p>
33
+ </li>
34
+ <li class="modal_item">
35
+ <p class="modal_title">勤務時間</p>
36
+ <p class="modal_txt">13:00 ~ 18:00/13:30 ~ 18:30</p>
37
+ </li>
38
+ <li class="modal_item">
39
+ <p class="modal_title">勤務日</p>
40
+ <p class="modal_txt">月~金/週1 ~ 2日</p>
41
+ </li>
42
+ <li class="modal_item">
43
+ <p class="modal_title">担当業務</p>
44
+ <p class="modal_txt">フリー、保育補助</p>
45
+ </li>
46
+ <li class="modal_item">
47
+ <p class="modal_title">待遇</p>
48
+ <p class="modal_txt">有給休暇・産育休あり・交通費全額支給・社会保険完備</p>
49
+ </li>
50
+ </ul>
51
+ </div>
52
+ <button data-remodal-action="cancel" class="remodal-cancel">閉じる</button>
53
+ </div>
54
+ </section>
17
55
  ```
18
- 特になし
19
- ```
20
56
 
57
+ ```CSS
58
+ /* modal */
59
+ .btn {
60
+ display: flex;
61
+ justify-content: center;
62
+ align-items: center;
63
+ width: 240px;
64
+ height: 38px;
65
+ box-sizing: border-box;
66
+ text-decoration: none;
67
+ transition-duration: 0.3s;
68
+ font-family: "M PLUS Rounded 1c", sans-serif;
69
+ font-size: 1rem;
70
+ font-weight: 600;
71
+ color: #f68210;
72
+ border: 2px solid #f68210;
73
+ background: transparent;
74
+ text-align: center;
75
+ border-radius: 20px;
76
+ position: relative;
77
+ top: -119px;
78
+ margin: 0 auto;
79
+ }
80
+ .btn:hover {
81
+ background: #b4b1a0;
82
+ color: #ffffff;
83
+ }
84
+
85
+ .btn_pink{
86
+ color: #fd5a56;
87
+ border: 2px solid #fd5a56;
88
+ }
89
+
90
+ .remodal {
91
+ position: relative;
92
+ padding: 35px;
93
+ }
94
+ .remodal img {
95
+ width: 100%;
96
+ height: auto;
97
+ vertical-align: top;
98
+ }
99
+ .remodal-cancel {
100
+ color: #fff;
101
+ background: #f68210;
102
+ width: 100%;
103
+ margin-top: 25px;
104
+ }
105
+ .remodal-cancel:hover {
106
+ background: #333;
107
+ }
108
+
109
+ .remodal-cancel_btn{
110
+ position: absolute;
111
+ top: -2%;
112
+ left: 75%;
113
+ font-size: 1rem;
114
+ color: #fff;
115
+ background: #f68210;
116
+ width: 0%;
117
+ text-align: center;
118
+ }
119
+
120
+ .modal_space{
121
+ margin-bottom: -70px;
122
+ }
123
+
124
+ .modal_maintitle{
125
+ font-family: "M PLUS Rounded 1c", sans-serif;
126
+ font-size: 1.4rem;
127
+ font-weight: 700;
128
+ color: #f68210;
129
+ text-align: left;
130
+ }
131
+
132
+ .modal_title{
133
+ font-family: "M PLUS Rounded 1c", sans-serif;
134
+ font-size: 1.2rem;
135
+ font-weight: 550;
136
+ color: #f68210;
137
+ }
138
+
139
+ .modal_txt{
140
+ font-family: "M PLUS Rounded 1c", sans-serif;
141
+ font-size: 1rem;
142
+ font-weight: 500;
143
+ color: #54393d;
144
+ margin-top: 10px;
145
+ }
146
+
147
+ .modal_list{
148
+ margin: 10px 0px;
149
+ }
150
+
151
+ .modal_item{
152
+ margin-top: 20px;
153
+ text-align: left;
154
+ }
155
+
156
+ .modal_item::after{
157
+ content: "";
158
+ width: 100%;
159
+ height: 1px;
160
+ background-color: #f68210;
161
+ display: block;
162
+ margin-top: 5px;
163
+ }
164
+
165
+ ```jQueryはRemodalのremodal.min.jsを使用
166
+
21
167
  ### 試したこと・調べたこと
22
168
  - [x] teratailやGoogle等で検索した
23
169
  - [ ] ソースコードを自分なりに変更した