Skip to content

Commit ef245af

Browse files
committed
Update
1 parent 001808a commit ef245af

File tree

2 files changed

+125
-0
lines changed

2 files changed

+125
-0
lines changed

templates/user/star_list.tmpl

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{if .IsStarList }}
12
<div class="star-list">
23
<!-- Header -->
34
<div class="top">
@@ -62,3 +63,37 @@
6263
</div>
6364
</div>
6465
</div>
66+
{{else if true }}
67+
<div class="star-list-repos">
68+
<div class="top">
69+
<h2>Test</h2>
70+
<div>
71+
<details>
72+
<summary class="btn">Edit list</summary>
73+
<details-dialog class="box">
74+
<div class="box-header">
75+
<div class="box-title">
76+
<h1>Edit list</h1>
77+
<button>Close</button>
78+
</div>
79+
</div>
80+
<form action="#" method="post">
81+
<input type="text" value="test" placeholder="⭐️ Name this list">
82+
<input type="text" value="test" placeholder="Write a description">
83+
<div class="btn-group">
84+
<div>
85+
<button>Delete list</button>
86+
</div>
87+
<div>
88+
<button>Save list</button>
89+
</div>
90+
</div>
91+
</form>
92+
</details-dialog>
93+
</details>
94+
</div>
95+
</div>
96+
<div class="description">Test</div>
97+
<div class="repositories">1 repositories</div>
98+
</div>
99+
{{end}}

web_src/css/user.css

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,96 @@
166166
margin-right: 10px;
167167
}
168168

169+
.star-list-repos .top {
170+
height: 37.75px;
171+
line-height: 37.75px;
172+
display: flex;
173+
justify-content: space-between;
174+
}
175+
176+
.star-list-repos h2 {
177+
display: block;
178+
margin: 0;
179+
padding: 0;
180+
height: inherit;
181+
line-height: inherit;
182+
}
183+
184+
.star-list-repos .btn {
185+
padding: 5px 16px;
186+
color: #25292e;
187+
background-color: #f6f8fa;
188+
list-style: none;
189+
box-shadow: 0px 1px 0px 0px #1f232880a;
190+
border-radius: 6px;
191+
font-size: 16px;
192+
border: 1px solid #d1d9e0;
193+
line-height: 20px;
194+
}
195+
196+
.star-list-repos details>summary {
197+
transition: 80ms cubic-bezier(0.33, 1, 0.68, 1);
198+
transition-property: color, background-color, box-shadow, border-color;
199+
}
200+
201+
.star-list-repos .box {
202+
width: 448px;
203+
border-color: #d1d9e0;
204+
border-radius: 0.375rem;
205+
border-style: solid;
206+
border-width: 0.0625rem;
207+
}
208+
209+
.star-list-repos details-dialog {
210+
position: fixed;
211+
margin: 10vh auto;
212+
top: 0;
213+
left: 50%;
214+
transform: translateX(-50%);
215+
z-index: 999;
216+
max-height: 80vh;
217+
max-width: 90vw;
218+
overflow: auto;
219+
border-shadow: 3px 3px 3px 3px 5px black;
220+
}
221+
222+
.star-list-repos .box-header {
223+
background-color: #f6f8fa;
224+
height: 37.75px;
225+
}
226+
227+
.star-list-repos h1 {
228+
margin-left: 10px;
229+
font-size: 0.875rem;
230+
font-weight: 600;
231+
height: 37.75px;
232+
line-height: 37.75px;
233+
}
234+
235+
.star-list-repos .box-title {
236+
height: 37.75px;
237+
line-height: 37.75px;
238+
font-size: 0.875rem;
239+
font-weight: 600;
240+
display: flex;
241+
justify-content: space-between;
242+
}
243+
244+
.star-list-repos .btn-group {
245+
display: flex;
246+
justify-content: space-between;
247+
}
248+
249+
.star-list-repos .description {
250+
font-size: 16px;
251+
margin-top: 8px;
252+
margin-bottom: 16px;
253+
}
254+
255+
.star-list-repos .repositories {
256+
color: #59536e;
257+
}
258+
169259
#readme_profile {
170260
padding: 1em 2em;
171261
border-radius: var(--border-radius);

0 commit comments

Comments
 (0)