Skip to content

Commit c78adb4

Browse files
committed
Update
1 parent ef245af commit c78adb4

File tree

2 files changed

+74
-4
lines changed

2 files changed

+74
-4
lines changed

templates/user/star_list.tmpl

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{if .IsStarList }}
1+
{{if false }}
22
<div class="star-list">
33
<!-- Header -->
44
<div class="top">
@@ -28,14 +28,36 @@
2828
</div>
2929
<!-- Create List-->
3030
<div>
31-
<a class="ui small primary button">Create list</a>
31+
<details>
32+
<summary class="btn">Create list</summary>
33+
<details-dialog class="box">
34+
<div class="box-header">
35+
<div class="box-title">
36+
<h1>Create list</h1>
37+
<button>Close</button>
38+
</div>
39+
</div>
40+
<form action="#" method="post">
41+
<input type="text" value="test" placeholder="⭐️ Name this list">
42+
<input type="text" value="test" placeholder="Write a description">
43+
<div class="btn-group">
44+
<div>
45+
<button>Delete list</button>
46+
</div>
47+
<div>
48+
<button>Save list</button>
49+
</div>
50+
</div>
51+
</form>
52+
</details-dialog>
53+
</details>
3254
</div>
3355
</div>
3456
</div>
3557

3658
<!-- List -->
3759
<div id="profile-lists-container">
38-
<div class="box">
60+
<div class="list-box">
3961
<a href="https://ilo.nz" class="box-row">
4062
<h3 class="name">Vim</h3>
4163
<div class="repositories">

web_src/css/user.css

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,55 @@
113113
justify-content: space-between;
114114
}
115115

116-
#profile-lists-container .box {
116+
.star-list details>summary {
117+
transition: 80ms cubic-bezier(0.33, 1, 0.68, 1);
118+
transition-property: color, background-color, box-shadow, border-color;
119+
}
120+
121+
.star-list .box {
122+
width: 448px;
123+
border-color: #d1d9e0;
124+
border-radius: 0.375rem;
125+
border-style: solid;
126+
border-width: 0.0625rem;
127+
}
128+
129+
.star-list details-dialog {
130+
position: fixed;
131+
margin: 10vh auto;
132+
top: 0;
133+
left: 50%;
134+
transform: translateX(-50%);
135+
z-index: 999;
136+
max-height: 80vh;
137+
max-width: 90vw;
138+
overflow: auto;
139+
border-shadow: 3px 3px 3px 3px 5px black;
140+
}
141+
142+
.star-list .box-header {
143+
background-color: #f6f8fa;
144+
height: 37.75px;
145+
}
146+
147+
.star-list h1 {
148+
margin-left: 10px;
149+
font-size: 0.875rem;
150+
font-weight: 600;
151+
height: 37.75px;
152+
line-height: 37.75px;
153+
}
154+
155+
.star-list .box-title {
156+
height: 37.75px;
157+
line-height: 37.75px;
158+
font-size: 0.875rem;
159+
font-weight: 600;
160+
display: flex;
161+
justify-content: space-between;
162+
}
163+
164+
#profile-lists-container .list-box {
117165
margin-top: 10px;
118166
background-color: var(--color-body);
119167
border-color: #d1d9e0;

0 commit comments

Comments
 (0)