diff --git a/nyaa/static/css/bootstrap-xl-mod.css b/nyaa/static/css/bootstrap-xl-mod.css new file mode 100644 index 0000000..8187043 --- /dev/null +++ b/nyaa/static/css/bootstrap-xl-mod.css @@ -0,0 +1,277 @@ +/* +* CSS file with Bootstrap grid classes for screens bigger than 1600px. Just add this file after the Bootstrap CSS file and you will be able to juse col-xl, col-xl-push, hidden-xl, etc. +* +* Author: Marc van Nieuwenhuijzen +* Company: WebVakman +* Site: WebVakman.nl +* +* Edited to be for >=1480px with container width of 1400px for Nyaa.si +* Also edited to not fuck up column gutters. +*/ + +@media (min-width: 1200px) and (max-width: 1479px) { + .hidden-lg { + display: none !important; + } +} + + +.visible-xl-block, +.visible-xl-inline, +.visible-xl-inline-block, +.visible-xl{ + display: none !important; +} + + + +@media (min-width: 1480px) { + .container { + width: 1400px; + } + + .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12 { + position: relative; + min-height: 1px; + padding-right: 15px; + padding-left: 15px; + + float: left; + } + + .col-xl-12 { + width: 100%; + } + + .col-xl-11 { + width: 91.66666667%; + } + + .col-xl-10 { + width: 83.33333333%; + } + + .col-xl-9 { + width: 75%; + } + + .col-xl-8 { + width: 66.66666667%; + } + + .col-xl-7 { + width: 58.33333333%; + } + + .col-xl-6 { + width: 50%; + } + + .col-xl-5 { + width: 41.66666667%; + } + + .col-xl-4 { + width: 33.33333333%; + } + + .col-xl-3 { + width: 25%; + } + + .col-xl-2 { + width: 16.66666667%; + } + + .col-xl-1 { + width: 8.33333333%; + } + + .col-xl-pull-12 { + right: 100%; + } + + .col-xl-pull-11 { + right: 91.66666667%; + } + + .col-xl-pull-10 { + right: 83.33333333%; + } + + .col-xl-pull-9 { + right: 75%; + } + + .col-xl-pull-8 { + right: 66.66666667%; + } + + .col-xl-pull-7 { + right: 58.33333333%; + } + + .col-xl-pull-6 { + right: 50%; + } + + .col-xl-pull-5 { + right: 41.66666667%; + } + + .col-xl-pull-4 { + right: 33.33333333%; + } + + .col-xl-pull-3 { + right: 25%; + } + + .col-xl-pull-2 { + right: 16.66666667%; + } + + .col-xl-pull-1 { + right: 8.33333333%; + } + + .col-xl-pull-0 { + right: auto; + } + + .col-xl-push-12 { + left: 100%; + } + + .col-xl-push-11 { + left: 91.66666667%; + } + + .col-xl-push-10 { + left: 83.33333333%; + } + + .col-xl-push-9 { + left: 75%; + } + + .col-xl-push-8 { + left: 66.66666667%; + } + + .col-xl-push-7 { + left: 58.33333333%; + } + + .col-xl-push-6 { + left: 50%; + } + + .col-xl-push-5 { + left: 41.66666667%; + } + + .col-xl-push-4 { + left: 33.33333333%; + } + + .col-xl-push-3 { + left: 25%; + } + + .col-xl-push-2 { + left: 16.66666667%; + } + + .col-xl-push-1 { + left: 8.33333333%; + } + + .col-xl-push-0 { + left: auto; + } + + .col-xl-offset-12 { + margin-left: 100%; + } + + .col-xl-offset-11 { + margin-left: 91.66666667%; + } + + .col-xl-offset-10 { + margin-left: 83.33333333%; + } + + .col-xl-offset-9 { + margin-left: 75%; + } + + .col-xl-offset-8 { + margin-left: 66.66666667%; + } + + .col-xl-offset-7 { + margin-left: 58.33333333%; + } + + .col-xl-offset-6 { + margin-left: 50%; + } + + .col-xl-offset-5 { + margin-left: 41.66666667%; + } + + .col-xl-offset-4 { + margin-left: 33.33333333%; + } + + .col-xl-offset-3 { + margin-left: 25%; + } + + .col-xl-offset-2 { + margin-left: 16.66666667%; + } + + .col-xl-offset-1 { + margin-left: 8.33333333%; + } + + .col-xl-offset-0 { + margin-left: 0; + } + + .visible-xl { + display: block !important; + } + + table.visible-xl { + display: table; + } + + tr.visible-xl { + display: table-row !important; + } + + th.visible-xl, td.visible-xl { + display: table-cell !important; + } + + .visible-xl-block { + display: block !important; + } + + .visible-xl-inline { + display: inline !important; + } + + .visible-xl-inline-block { + display: inline-block !important; + } + + .hidden-xl { + display: none !important; + } +} diff --git a/nyaa/static/css/main.css b/nyaa/static/css/main.css index 3de5bd9..6df5123 100755 --- a/nyaa/static/css/main.css +++ b/nyaa/static/css/main.css @@ -1,8 +1,3 @@ -@media (min-width: 1480px) { - .container { - width: 1400px; - } -} .panel-heading-collapse a:after { font-family:'Glyphicons Halflings'; content:"\e114"; @@ -101,6 +96,10 @@ table.torrent-list tbody tr td a:visited { padding: 1em 0; } +.markdown-source { + min-height: 360px; +} + @media (max-width: 991px){ .panel-body .col-md-5 { margin-left: 20px; @@ -282,3 +281,4 @@ a.text-purple:hover, a.text-purple:active, a.text-purple:focus { color: #a760e0; .btn.active span.glyphicon-unchecked { display: none; } + diff --git a/nyaa/templates/edit.html b/nyaa/templates/edit.html index 74d31aa..46ed917 100755 --- a/nyaa/templates/edit.html +++ b/nyaa/templates/edit.html @@ -17,18 +17,18 @@
-
+
{{ render_field(form.display_name, class_='form-control', placeholder='Display name') }}
-
+
{{ render_field(form.category, class_='form-control')}}
-
+
{{ render_field(form.information, class_='form-control', placeholder='Your website or IRC channel') }}
-
+

{# Only allow changing anonymous status when an uploader exists #} @@ -79,13 +79,13 @@
-
+
{{ render_markdown_editor(form.description, field_name='description') }}
-
+
diff --git a/nyaa/templates/layout.html b/nyaa/templates/layout.html index faf920c..3e7b8b3 100755 --- a/nyaa/templates/layout.html +++ b/nyaa/templates/layout.html @@ -18,6 +18,7 @@ make the navbar not look awful on tablets. --> + - + diff --git a/nyaa/templates/upload.html b/nyaa/templates/upload.html index 4001421..0883f82 100755 --- a/nyaa/templates/upload.html +++ b/nyaa/templates/upload.html @@ -18,24 +18,24 @@ {% if config.ENFORCE_MAIN_ANNOUNCE_URL %}

Important: Please include {{ config.MAIN_ANNOUNCE_URL }} in your trackers

{% endif %}
-
+
{{ render_upload(upload_form.torrent_file, accept=".torrent") }}
-
+
{{ render_field(upload_form.display_name, class_='form-control', placeholder='Display name') }}
-
+
{{ render_field(upload_form.category, class_='form-control')}}
-
+
{{ render_field(upload_form.information, class_='form-control', placeholder='Your website or IRC channel') }}
-
+

@@ -76,14 +76,14 @@
-
+
{{ render_markdown_editor(upload_form.description, field_name='description') }}
{% if config.USE_RECAPTCHA and not g.user %}
-
+
{% for error in upload_form.recaptcha.errors %} {{ error }} {% endfor %} @@ -95,7 +95,7 @@
-
+