Skip to content

Commit 38ed631

Browse files
💄 Oyla sayfası css düzelt (#38)
1 parent cae6d8b commit 38ed631

File tree

3 files changed

+20
-25
lines changed

3 files changed

+20
-25
lines changed

oyla/sayfa.css

+9-15
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,11 @@
2323
}
2424
}
2525

26-
#oyy:hover {
27-
box-shadow: 2px 10px 50px rgb(0 0 0 / 15%);
28-
}
29-
3026
#oyy.open_form {
3127
max-width: 800px;
3228
width: 80%;
3329
max-height: 1000px;
3430
cursor: default;
35-
transition-property: width, max-height;
36-
transition-duration: 0.1s, 0.1s;
37-
transition-delay: 0, 0.1s;
38-
transition-timing-function: ease-in;
3931
}
4032

4133
#oyytitle {
@@ -75,6 +67,7 @@
7567

7668
.oyy_tablabel.sol {
7769
border-left: none;
70+
width: 34%;
7871
}
7972

8073
@media (max-width: 320px) {
@@ -185,14 +178,16 @@
185178
justify-content: center;
186179
align-items: center;
187180
width: 90px;
188-
border: 1px solid rgb(0 0 0 / 15%);
189-
box-sizing: border-box;
190181
border-radius: 10px;
191182
margin: 5px;
192183
cursor: pointer;
193184
padding: 0.5em 0;
194185
}
195186

187+
.oyytli.sel {
188+
background: rgb(0 0 0 / 5%);
189+
}
190+
196191
.oyynp {
197192
display: flex;
198193
width: 60px;
@@ -226,7 +221,7 @@
226221
width: 80%;
227222
background-color: #fff;
228223
box-shadow: 2px 2px 10px rgb(0 0 0 / 15%);
229-
border-radius: 2px;
224+
border-radius: 10px;
230225
margin-bottom: 3em;
231226
}
232227

@@ -247,12 +242,11 @@
247242
transition-duration: 0.3s;
248243
transition-timing-function: ease-in;
249244
border-bottom: 1px solid rgba(0 0 0 / 10%);
250-
border-radius: 2px;
251245
}
252246

253247
@media (max-width: 425px) {
254248
.oyok {
255-
max-height: 310px;
249+
max-height: 280px;
256250
}
257251
}
258252

@@ -261,8 +255,8 @@
261255
cursor: default;
262256
}
263257

264-
.oyok:hover {
265-
box-shadow: 2px 10px 50px rgb(0 0 0 / 15%);
258+
.oyok:last-child {
259+
border-radius: 10px;
266260
}
267261

268262
.oyao_top {

oyla/sayfa.html

+5-9
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h2><a href="/">KimlikDAO</a></h2>
1919
</div>
2020
<div id="oy">
2121
<div id="oyy">
22-
<div id="oyytitle" data-en="Propose">Yeni Oylama Öner</div>
22+
<div id="oyytitle" data-en="Create Proposal">Yeni Oylama Öner</div>
2323
<div id="oyytabs">
2424
<input type="radio" id="oyytab0" name="tabs" checked="checked">
2525
<label for="oyytab0" class="oyy_tablabel sol" data-en="TCKT Price Change">TCKT Ücret Değişikliği</label>
@@ -57,14 +57,10 @@ <h2><a href="/">KimlikDAO</a></h2>
5757
</div>
5858
<div id=oyys0x1 class="oyysto">ETH <img src="/al/ödeme/ETH.svg" height=24 width=24>
5959
</div>
60-
<div id=oyys0xa86a class="oyysto">AVAX <img src="/al/ödeme/AVAX.svg" height=24
61-
width=24></div>
62-
<div id=oyys0x89 class="oyysto">MATIC <img src="/al/ödeme/MATIC.svg" height=24
63-
width=24></div>
64-
<div id=oyys0xfa class="oyysto">FTM <img src="/al/ödeme/FTM.svg" height=24
65-
width=24></div>
66-
<div id=oyys0xa4b1 class="oyysto">ETH <img src="/al/ödeme/ETH.svg" height=24
67-
width=24></div>
60+
<div id=oyys0xa86a class="oyysto">AVAX <img src="/al/ödeme/AVAX.svg" height=24 width=24></div>
61+
<div id=oyys0x89 class="oyysto">MATIC <img src="/al/ödeme/MATIC.svg" height=24 width=24></div>
62+
<div id=oyys0xfa class="oyysto">FTM <img src="/al/ödeme/FTM.svg" height=24 width=24></div>
63+
<div id=oyys0xa4b1 class="oyysto">ETH <img src="/al/ödeme/ETH.svg" height=24 width=24></div>
6864
</div>
6965
</div>
7066
</div>

oyla/sayfa.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ dom.adla("oyy").onclick = () => {
2121
/** @param {string} yeniAğ Ağ değişince UI'da gösterir*/
2222
const fiyatDeğişikliğiFormuHazırla = (yeniAğ) => {
2323
let seçilmişToken;
24+
for (let i = 0; i < dom.adla("oyytul").childElementCount; ++i) {
25+
dom.adla("oyytul").children[i].classList.remove("sel")
26+
}
2427
dom.göster(dom.adla("oyy" + yeniAğ));
2528
// Diğer Ağ tokenlarını UI'dan cıkar
2629
for (const diğerAğ in Cüzdan.Paralar) {
@@ -39,16 +42,18 @@ const fiyatDeğişikliğiFormuHazırla = (yeniAğ) => {
3942
// Li'lere click Handler ekle
4043
dom.adla("oyytul").onclick = (e) => {
4144
if (e.target.nodeName == "UL") return;
45+
if (seçilmişToken) dom.adla("oyy" + seçilmişToken).classList.remove("sel");
4246
const id = e.target.nodeName == "LI"
4347
? e.target.id.slice(3)
4448
: e.target.parentElement.id.slice(3);
4549
for (let i = 0; i < dom.adla("oyystoc").childElementCount; ++i) {
4650
dom.gizle(dom.adla("oyystoc").children[i])
4751
}
4852
dom.adlaGöster("oyys" + id);
53+
dom.adla("oyy" + id).classList.add("sel");
4954
seçilmişToken = id;
5055
}
51-
// Onayla iptal click handler
56+
// Onayla iptal click handler ekle
5257
dom.adla("oyyo").onclick = () => {
5358
const fiyat = dom.adla("oyyyf").value;
5459
if (fiyat == null || fiyat == undefined || fiyat == "") return;

0 commit comments

Comments
 (0)