(merge this first) small css improvements & small enhancements (#1529)
* Update main.css * Update tomorrow.css * Update listing.jet.html * Update torrents.jet.html * Update admin.jet.html
Cette révision appartient à :
Parent
cacbceb9e2
révision
388e0e0622
5 fichiers modifiés avec 32 ajouts et 37 suppressions
|
@ -109,7 +109,7 @@ body {
|
|||
float: right;
|
||||
}
|
||||
|
||||
.h-left {
|
||||
.h-left, .h-right {
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
|
@ -469,9 +469,11 @@ th, .home-td, .user-td {
|
|||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.user-td { padding: 2px 0; }
|
||||
.user-td {
|
||||
padding: 2px 0;
|
||||
}
|
||||
.user-td.tr-cat {
|
||||
padding: 4px 5px 4px 1px;
|
||||
padding: 4px 5px 4px 1px!important;
|
||||
min-width: 74px!important;
|
||||
}
|
||||
|
||||
|
@ -727,9 +729,12 @@ html, body {
|
|||
.tr-cat {
|
||||
width: 71px;
|
||||
}
|
||||
th, .home-td, .user-td {
|
||||
th, .home-td, {
|
||||
padding: 2px 2px!important;
|
||||
}
|
||||
.user-td {
|
||||
padding: 2px 1px!important;
|
||||
}
|
||||
}
|
||||
/* end of category shrinking */
|
||||
|
||||
|
@ -746,6 +751,9 @@ html, body {
|
|||
.visible-md {
|
||||
display: block
|
||||
}
|
||||
.user-td.tr-cat {
|
||||
width: 70px;
|
||||
}
|
||||
.user-td.tr-date {
|
||||
width: 100px;
|
||||
}
|
||||
|
@ -1352,9 +1360,7 @@ input.filelist-checkbox:checked+table.table-filelist {
|
|||
padding: 2px 16px;
|
||||
background: #111;
|
||||
/* Old browsers */
|
||||
background: -moz-linear-gradient(bottom, #222 0%, #111 100%);
|
||||
background: -webkit-linear-gradient(bottom, #222 0%, #111 100%);
|
||||
background: linear-gradient(to top, #222 0%, #111 100%);
|
||||
background: #497ebf;
|
||||
color: white;
|
||||
}
|
||||
.modal-header h2 {
|
||||
|
@ -1376,9 +1382,7 @@ input.filelist-checkbox:checked+table.table-filelist {
|
|||
padding: 2px 16px;
|
||||
background: #222;
|
||||
/* Old browsers */
|
||||
background: -moz-linear-gradient(bottom, #111 0%, #222 100%);
|
||||
background: -webkit-linear-gradient(bottom, #111 0%, #222 100%);
|
||||
background: linear-gradient(to top, #111 0%, #222 100%);
|
||||
background: #262c33;
|
||||
color: white;
|
||||
}
|
||||
|
||||
|
@ -1417,7 +1421,7 @@ input.filelist-checkbox:checked+table.table-filelist {
|
|||
background-color: #fefefe;
|
||||
margin: auto;
|
||||
padding: 0;
|
||||
border: 1px solid #888;
|
||||
border: 1px solid #7d7e82;
|
||||
width: 80%;
|
||||
margin-top: 20%;
|
||||
max-width: 1000px;
|
||||
|
@ -1882,6 +1886,7 @@ span.tag {
|
|||
padding: 0 5%;
|
||||
max-height: 93px;
|
||||
overflow: hidden;
|
||||
display: block!important;
|
||||
}
|
||||
#ad-container * {
|
||||
width: 728px;
|
||||
|
@ -1911,7 +1916,7 @@ span.tag {
|
|||
vertical-align: middle;
|
||||
height: 36px;
|
||||
padding: 10px 14px;
|
||||
text-decoration: initial;
|
||||
word-spacing: 0;
|
||||
border-right: 1px solid #b3b3b3;
|
||||
}
|
||||
#admin-header .nav-btn.active, #admin-header .nav-btn:hover, #admin-header:hover .nav-btn.active:hover, #admin-header .nav-btn:focus {
|
||||
|
|
|
@ -209,7 +209,7 @@ td.tr-le, .error-text {
|
|||
background: #8149bf;
|
||||
}
|
||||
.modal-footer {
|
||||
background: #191919;
|
||||
background: #1d1c1f;
|
||||
}
|
||||
.modal-footer span button {
|
||||
border-color: black;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<div id="admin-header">
|
||||
<a href="{{URL.Parse("/mod/")}}" class="nav-btn{{if URL.String() == "/mod/"}} active{{end}}">{{ T("moderation")}}</a>
|
||||
<a href="{{URL.Parse("/mod/torrents")}}" class="nav-btn{{if URL.String() == "/mod/torrents"}} active{{end}}">{{ T("torrents")}}</a>
|
||||
<a href="{{URL.Parse("/mod/torrents")}}" class="nav-btn{{if len(URL.String()) > 11}}{{if URL.String()[:12] == "/mod/torrent"}} active{{end}}{{end}}">{{ T("torrents")}}</a>
|
||||
<a href="{{URL.Parse("/mod/users")}}" class="nav-btn{{if URL.String() == "/mod/users"}} active{{end}}">{{ T("users")}}</a>
|
||||
<a href="{{URL.Parse("/mod/comments")}}" class="nav-btn{{if URL.String() == "/mod/comments"}} active{{end}}">{{ T("comments")}}</a>
|
||||
<a href="{{URL.Parse("/mod/oauth_client")}}" class="nav-btn{{if URL.String() == "/mod/oauth_client"}} active{{end}}">{{ T("oauth_clients_list")}}</a>
|
||||
<a href="{{URL.Parse("/mod/announcement")}}" class="nav-btn{{if URL.String() == "/mod/announcement"}} active{{end}}">{{ T("announcements")}}</a>
|
||||
<a href="{{URL.Parse("/mod/oauth_client")}}" class="nav-btn{{if len(URL.String()) > 16}}{{ if URL.String()[:17] == "/mod/oauth_client"}} active{{end}}{{end}}">{{ T("oauth_clients_list")}}</a>
|
||||
<a href="{{URL.Parse("/mod/announcement")}}" class="nav-btn{{if len(URL.String()) > 16}}{{ if URL.String()[:17] == "/mod/announcement"}} active{{end}}{{end}}">{{ T("announcements")}}</a>
|
||||
<a href="{{URL.Parse("/mod/reports")}}" class="nav-btn{{if URL.String() == "/mod/reports"}} active{{end}}">{{ T("torrent_reports")}}</a>
|
||||
<a href="{{URL.Parse("/mod/reassign")}}" class="nav-btn{{if URL.String() == "/mod/reassign"}} active{{end}}">{{ T("torrent_reassign")}}</a>
|
||||
</div>
|
||||
|
|
|
@ -59,20 +59,16 @@
|
|||
</td>
|
||||
{{ end }}
|
||||
<td class="tr-cat home-td">
|
||||
{{ if Sukebei() }}
|
||||
<div class="nyaa-cat sukebei-cat-{{ .Category }}{{ .SubCategory }}">
|
||||
{{ else}}
|
||||
<div class="nyaa-cat nyaa-cat-{{ .SubCategory}}">
|
||||
{{end}}
|
||||
<a href="{{ URL.Parse("/search?c="+.Category+"_"+ .SubCategory) }}" title="{{ T(CategoryName(.Category, .SubCategory)) }}" class="category">
|
||||
{{if .Languages[0] != "" }}
|
||||
<a href="{{ URL.Parse("/search?c="+.Category+"_"+ .SubCategory +"&lang=") }}{{ range key, language := .Languages }}{{ language }}{{ if len(.Languages) > 1 && (key+1) < len(.Languages) }},{{ end }}{{ end }}">
|
||||
<img src="/img/blank.gif" alt="{{ range key, language := .Languages }}{{ LanguageNameFromCode(language, T) }}{{ if len(.Languages) > 1 && (key+1) < len(.Languages) }},{{ end }}{{ end }}" class="flag flag-{{ (len(.Languages) == 1) ? FlagCode(.Languages[0]) : "multiple" }}" title="{{ range key, language := .Languages }}{{ LanguageNameFromCode(language, T) }}{{ if len(.Languages) > 1 && (key+1) < len(.Languages) }},{{ end }}{{ end }}"/>
|
||||
</a>
|
||||
{{end}}
|
||||
<div class="nyaa-cat {{ if Sukebei() }}sukebei-cat-{{ .Category }}{{else}}nyaa-cat-{{end}}{{ .SubCategory}}">
|
||||
<a href="{{ URL.Parse("/search?c="+.Category+"_"+ .SubCategory) }}" title="{{ T(CategoryName(.Category, .SubCategory)) }}" class="category">
|
||||
{{if .Languages[0] != "" }}
|
||||
<a href="{{ URL.Parse("/search?c="+.Category+"_"+ .SubCategory +"&lang=") }}{{ range key, language := .Languages }}{{ language }}{{ if len(.Languages) > 1 && (key+1) < len(.Languages) }},{{ end }}{{ end }}">
|
||||
<img src="/img/blank.gif" alt="{{ range key, language := .Languages }}{{ LanguageNameFromCode(language, T) }}{{ if len(.Languages) > 1 && (key+1) < len(.Languages) }},{{ end }}{{ end }}" class="flag flag-{{ (len(.Languages) == 1) ? FlagCode(.Languages[0]) : "multiple" }}" title="{{ range key, language := .Languages }}{{ LanguageNameFromCode(language, T) }}{{ if len(.Languages) > 1 && (key+1) < len(.Languages) }},{{ end }}{{ end }}"/>
|
||||
</a>
|
||||
</div>
|
||||
</td>
|
||||
{{end}}
|
||||
</a>
|
||||
</div>
|
||||
</td>
|
||||
<td class="tr-name home-td"{{ if len(.Comments) == 0 }}colspan="2"{{ end }}>
|
||||
<a href="/view/{{ .ID }}">
|
||||
{{.Name}}
|
||||
|
|
|
@ -17,11 +17,7 @@
|
|||
{{if torrent.Status == 2}}remake{{else if torrent.Status == 3}}trusted{{else if torrent.Status == 4}}aplus{{end}}
|
||||
{{if t.Hidden && User.CurrentOrAdmin(t.Uploader.ID) }} hidden{{end}}">
|
||||
<td class="tr-cat user-td">
|
||||
{{ if Sukebei() }}
|
||||
<div class="nyaa-cat sukebei-cat-{{ torrent.Category }}{{ torrent.SubCategory}}">
|
||||
{{ else }}
|
||||
<div class="nyaa-cat nyaa-cat-{{ torrent.SubCategory }}">
|
||||
{{ end }}
|
||||
<div class="nyaa-cat {{ if Sukebei() }}sukebei-cat-{{ torrent.Category }}{{else}}nyaa-cat-{{end}}{{ torrent.SubCategory}}">
|
||||
<a href="{{URL.Parse ("/search?c="+ torrent.Category + "_" +torrent.SubCategory) }}" title="{{T(CategoryName(torrent.Category, torrent.SubCategory))}}" class="category">
|
||||
{{ if torrent.Languages[0] != "" }}
|
||||
<a href="{{ URL.Parse("/search?c="+torrent.Category+"_"+ torrent.SubCategory +"&lang=") }}{{ range key, language := torrent.Languages }}{{ language }}{{ if len(torrent.Languages) > 1 && (key+1) < len(torrent.Languages) }},{{ end }}{{ end }}">
|
||||
|
@ -40,11 +36,9 @@
|
|||
<a href="{{torrent.Magnet}}" title="{{ T("magnet_link") }}">
|
||||
<div class="icon-magnet"></div>
|
||||
</a>
|
||||
{{if torrent.TorrentLink != ""}}
|
||||
<a href="{{torrent.TorrentLink}}" title="{{ T("torrent_file") }}">
|
||||
<a href="{{torrent.TorrentLink}}" title="{{ T("torrent_file") }}" {{if !torrentFileExists(torrent.Hash)}}class="hidden"{{end}}>
|
||||
<div class="icon-floppy"></div>
|
||||
</a>
|
||||
{{end}}
|
||||
</td>
|
||||
<td class="tr-size user-td hide-xs">
|
||||
{{ fileSize(torrent.Filesize, T) }}
|
||||
|
|
Référencer dans un nouveau ticket