Remove useless shit (#1439)
* Remove useless shit * Fix refine button on IE * Fix header being bigger than it should * Fix various issues with header when logged as admin * More cleanup & small fixes * Remove useless inline styling * Forgot a number * Update main.css * Remove useless <link>
Cette révision appartient à :
Parent
2088f8a1c1
révision
b41ea25728
3 fichiers modifiés avec 29 ajouts et 60 suppressions
|
@ -77,12 +77,10 @@ body {
|
|||
|
||||
.header .container {
|
||||
position: relative;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.header .container>div {
|
||||
line-height: 60px;
|
||||
vertical-align: middle;
|
||||
padding: 0 1rem;
|
||||
}
|
||||
|
||||
|
@ -92,8 +90,6 @@ body {
|
|||
|
||||
.h-left {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
text-align: left;
|
||||
}
|
||||
.header.content-admin .h-left {
|
||||
position: initial;
|
||||
|
@ -101,21 +97,19 @@ body {
|
|||
}
|
||||
|
||||
.h-right {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
text-align: right;
|
||||
}
|
||||
.header.content-admin .h-right {
|
||||
position: initial;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.h-logo {
|
||||
height: 60px;
|
||||
}
|
||||
|
||||
.header.content-admin .h-right {
|
||||
position: initial;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.h-logo, .h-nav {
|
||||
display: inline-block;
|
||||
float: left;
|
||||
}
|
||||
|
||||
|
@ -129,9 +123,6 @@ body {
|
|||
vertical-align: middle;
|
||||
padding: 0 10px;
|
||||
text-decoration: none;
|
||||
background: none;
|
||||
border: none;
|
||||
max-width: 100%;
|
||||
}
|
||||
.nav-btn.log-in div {
|
||||
display: none;
|
||||
|
@ -148,6 +139,7 @@ body {
|
|||
|
||||
.header .h-search .form-input {
|
||||
font-size: 80%;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
.header .h-search select.form-input {
|
||||
|
@ -167,8 +159,7 @@ input::placeholder {
|
|||
select.form-input {
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
padding-right: 1.5rem;
|
||||
padding: 4px 1.5rem 4px 5px;
|
||||
padding: 4px 1.5rem 4px 5px;
|
||||
background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 48"><path fill="%23676767" d="M24 34l18-20H6"/></svg>');
|
||||
background-position: right center;
|
||||
background-repeat: no-repeat;
|
||||
|
@ -194,9 +185,7 @@ select.form-input {
|
|||
padding: 0;
|
||||
width: 22px;
|
||||
height: 25px;
|
||||
box-shadow: none;
|
||||
border: none;
|
||||
vertical-align: middle;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
@ -237,7 +226,6 @@ select.form-input {
|
|||
}
|
||||
|
||||
.header .h-user {
|
||||
display: inline-block;
|
||||
width: 150px;
|
||||
}
|
||||
|
||||
|
@ -245,10 +233,12 @@ select.form-input {
|
|||
float: right;
|
||||
padding: 0;
|
||||
height: 60px;
|
||||
width: 150px;
|
||||
width: 100%;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
border: none;
|
||||
background: none;
|
||||
}
|
||||
|
||||
.header .h-user button:focus {
|
||||
|
@ -287,8 +277,6 @@ select.form-input {
|
|||
}
|
||||
|
||||
.header .h-user .user-menu .nav-btn {
|
||||
float: none;
|
||||
display: block;
|
||||
padding: 0px 10px!important;
|
||||
height: 43px;
|
||||
line-height: 40px;
|
||||
|
@ -300,20 +288,12 @@ select.form-input {
|
|||
}
|
||||
|
||||
.header .h-user .user-info {
|
||||
font-size: 10pt;
|
||||
font-weight: bold;
|
||||
display: block;
|
||||
float: right;
|
||||
height: 60px;
|
||||
line-height: 60px;
|
||||
/* Property is ignored due to the display. With 'display: block', vertical-align should not be used. */
|
||||
vertical-align: middle;
|
||||
/* Hardcoded so the div always fills up all available space while floating right */
|
||||
max-width: 91px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.h-user .nav-btn.notif>.badge {
|
||||
|
@ -328,8 +308,6 @@ select.form-input {
|
|||
.user-avatar img {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
width: auto;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
#content {
|
||||
|
@ -341,7 +319,6 @@ select.form-input {
|
|||
/* #content { padding-top: 70px; } */
|
||||
|
||||
.content {
|
||||
border-radius: 3px;
|
||||
padding: 5px 10px;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
@ -632,12 +609,6 @@ textarea {
|
|||
max-width: 100%;
|
||||
}
|
||||
|
||||
#footer {
|
||||
width: 100%;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.footer {
|
||||
text-align: center;
|
||||
padding: 1rem 0 1.2rem 0;
|
||||
|
@ -700,13 +671,14 @@ html, body {
|
|||
.header .h-user .user-menu {
|
||||
right: 92px;
|
||||
}
|
||||
.header.content-admin .user-menu {
|
||||
right: 16px!important;
|
||||
}
|
||||
.header .h-user .user-info {
|
||||
display: none;
|
||||
}
|
||||
.header .h-user>.nav-btn {
|
||||
padding: 0 3px!important;
|
||||
font-size: 85%;
|
||||
width: 100%;
|
||||
}
|
||||
.header .h-user>a.nav-btn {
|
||||
padding: 0!important;
|
||||
|
@ -772,7 +744,6 @@ html, body {
|
|||
}
|
||||
.refine-btn,.language {
|
||||
position: relative!important;
|
||||
bottom: initial!important;
|
||||
width: 100%!important;
|
||||
}
|
||||
.language {
|
||||
|
@ -1273,7 +1244,7 @@ input.filelist-checkbox:checked+table.table-filelist {
|
|||
}
|
||||
|
||||
#description-box code {
|
||||
white-space: normal;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
/* Markdown editor fixes */
|
||||
|
@ -1585,7 +1556,7 @@ input.filelist-checkbox:checked+table.table-filelist {
|
|||
|
||||
.header.content-admin .user-menu {
|
||||
position: absolute;
|
||||
top: 57px;
|
||||
top: 63px;
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
|
@ -1856,27 +1827,27 @@ span.tag {
|
|||
}
|
||||
|
||||
.upload-tag-form h3 {
|
||||
margin: 10px 0;
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
.upload-tag-form .form-group {
|
||||
width: 167px;
|
||||
display:inline-block;
|
||||
margin-bottom: 5px;
|
||||
margin-right: 5px;
|
||||
width: 167px;
|
||||
display:inline-block;
|
||||
margin-bottom: 5px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.upload-tag-form label {
|
||||
display:inline-block;
|
||||
width: 100%;
|
||||
font-size: unset;
|
||||
margin-bottom: 1px;
|
||||
display:inline-block;
|
||||
width: 100%;
|
||||
font-size: unset;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
|
||||
.upload-tag-form input,.upload-tag-form select {
|
||||
height: 25px;
|
||||
padding: 3px 3px;
|
||||
width: 100%;
|
||||
height: 25px;
|
||||
padding: 3px 3px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
||||
|
@ -1889,6 +1860,6 @@ span.tag {
|
|||
html[lang="ja-jp"] .header .nav-btn { padding: 0 8px;}
|
||||
@media (max-width: 1100px) {
|
||||
html[lang="ja-jp"] .header .h-user>.nav-btn {
|
||||
font-size: 75%;
|
||||
font-size: 75%;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,8 +41,6 @@
|
|||
<link rel="stylesheet" href="/css/flags/flags.min.css"/>
|
||||
<!-- Search Box for Google -->
|
||||
<script type="application/ld+json">{"@context":"https://schema.org","@type":"WebSite","url":"{{Config.WebAddress.Nyaa}}/","potentialAction":{"@type":"SearchAction","target":"{{Config.WebAddress.Nyaa}}/search?q={search_term_string}","query-input":"required name=search_term_string"} }</script>
|
||||
<!-- Markdown icons -->
|
||||
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
|
||||
{{block additional_header()}}{{end}}
|
||||
</head>
|
||||
<body {{if Sukebei()}}class="sukebei"{{end}}>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
{{block search_refine(url="") }}
|
||||
<div style="{{ if !Search.ShowRefine }}display:none;{{ end }}" class="box refine">
|
||||
</span>
|
||||
<form style="display: grid;" method="GET" action="{{ url }}">
|
||||
<form method="GET" action="{{ url }}">
|
||||
<h3>{{ T("refine_search") }}</h3>
|
||||
<div>
|
||||
<div class="refine-container-1">
|
||||
|
|
Référencer dans un nouveau ticket