Skip to content

Commit

Permalink
#16: Remove inline css (#26)
Browse files Browse the repository at this point in the history
* Move inline css to file
  • Loading branch information
amir-elgayed authored Sep 17, 2021
1 parent 5599b2c commit 90aadae
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
16 changes: 1 addition & 15 deletions server/controllers/templates/web_templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,21 +316,7 @@ var LockTemplate = template.Must(template.New("lock.html.tmpl").Parse(`
<ol>
{{ range .Queue}}
<li>
<!-- TODO @amir-elgayed move to CSS file -->
<div style= "margin-left: 20px;
text-align: left;
padding: 0 20px;
color: #555;
font-size: 11px;
font-weight: 600;
line-height: 38px;
letter-spacing: .1rem;
white-space: nowrap;
background-color: transparent;
border-radius: 4px;
border: 1px solid #bbb;
box-sizing: border-box;"
>
<div class="queue-item">
<code>Url</code>: <a href="{{.PullUrl}}">{{.PullUrl}}</a>
</br>
<code>Author</code>: {{.Author}}
Expand Down
2 changes: 1 addition & 1 deletion server/static/bindata_assetfs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions server/static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,19 @@ tbody {
#region-list {
margin-top: 8px;
}
.queue-item {
margin-left: 20px;
padding: 0 20px;
color: #555;
font-size: 11px;
font-weight: 600;
line-height: 38px;
letter-spacing: .1rem;
white-space: nowrap;
border-radius: 4px;
border: 1px solid #bbb;
box-sizing: border-box;
}

/* Larger than phone */
@media (min-width: 550px) {
Expand Down

0 comments on commit 90aadae

Please sign in to comment.