From c7ae533034201db52f8dfb5a8956103ecd890cd7 Mon Sep 17 00:00:00 2001 From: Ricardo Ribeiro Date: Wed, 17 May 2017 07:29:46 +0100 Subject: [PATCH 1/4] Fix torrent view text overflowing --- nyaa/static/css/main.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nyaa/static/css/main.css b/nyaa/static/css/main.css index 1743595..2433f5f 100644 --- a/nyaa/static/css/main.css +++ b/nyaa/static/css/main.css @@ -99,6 +99,12 @@ table.torrent-list thead th.sorting_desc:after { } } +@media (min-width: 992px){} + .col-md-5 { + word-wrap: break-word; + } +} + /* elasticsearch term highlight */ .hlt1 { font-style: normal; From 88dc797d87fd9816a446c7754ebe7e47f852f443 Mon Sep 17 00:00:00 2001 From: Ricardo Ribeiro Date: Wed, 17 May 2017 07:30:03 +0100 Subject: [PATCH 2/4] Replace spacebars for tabs --- nyaa/static/css/main.css | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/nyaa/static/css/main.css b/nyaa/static/css/main.css index 2433f5f..f910e59 100644 --- a/nyaa/static/css/main.css +++ b/nyaa/static/css/main.css @@ -94,8 +94,8 @@ table.torrent-list thead th.sorting_desc:after { @media (max-width: 991px){ .col-md-5 { - margin-left: 20px; - margin-bottom: 10px; + margin-left: 20px; + margin-bottom: 10px; } } @@ -107,10 +107,10 @@ table.torrent-list thead th.sorting_desc:after { /* elasticsearch term highlight */ .hlt1 { - font-style: normal; - display: inline-block; - padding: 0 3px; - border-radius: 3px; - border: 1px solid rgba(100, 56, 0, 0.8); - background: rgba(200,127,0,0.3); + font-style: normal; + display: inline-block; + padding: 0 3px; + border-radius: 3px; + border: 1px solid rgba(100, 56, 0, 0.8); + background: rgba(200,127,0,0.3); } From 192777c462f6ffcf280a17f7468b17905fe5cd80 Mon Sep 17 00:00:00 2001 From: Ricardo Ribeiro Date: Wed, 17 May 2017 07:31:31 +0100 Subject: [PATCH 3/4] Fix typo --- nyaa/static/css/main.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nyaa/static/css/main.css b/nyaa/static/css/main.css index f910e59..7b4878c 100644 --- a/nyaa/static/css/main.css +++ b/nyaa/static/css/main.css @@ -99,7 +99,7 @@ table.torrent-list thead th.sorting_desc:after { } } -@media (min-width: 992px){} +@media (min-width: 992px){ .col-md-5 { word-wrap: break-word; } From 5d0162fe54f7aad35727ec58dac12d40cd884d6a Mon Sep 17 00:00:00 2001 From: Ricardo Ribeiro Date: Wed, 17 May 2017 15:34:08 +0100 Subject: [PATCH 4/4] Restrict rules with more selectors --- nyaa/static/css/main.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nyaa/static/css/main.css b/nyaa/static/css/main.css index 7b4878c..0cf1ccb 100644 --- a/nyaa/static/css/main.css +++ b/nyaa/static/css/main.css @@ -93,14 +93,14 @@ table.torrent-list thead th.sorting_desc:after { } @media (max-width: 991px){ - .col-md-5 { + .panel-body .col-md-5 { margin-left: 20px; margin-bottom: 10px; } } @media (min-width: 992px){ - .col-md-5 { + .panel-body .col-md-5 { word-wrap: break-word; } }