diff --git a/recipes/tyzden.recipe b/recipes/tyzden.recipe index 0eca273b9f..7465e85000 100644 --- a/recipes/tyzden.recipe +++ b/recipes/tyzden.recipe @@ -1,7 +1,7 @@ #!/usr/bin/env python2 # vim:fileencoding=utf-8 # -# Copyright 2014 - 2015 Martin Račák +# Copyright 2014 - 2016 Martin Račák # Copyright 2011 Miroslav Vasko # # This program is free software: you can redistribute it and/or modify @@ -46,7 +46,13 @@ class Tyzden(BasicNewsRecipe): dict(name='div', attrs={'class': 'detail__title article__title'}), dict(name='div', attrs={'class': 'article'}), ] - extra_css = """.detail__content h2::before { + extra_css = """*, *::before, *::after { + -moz-box-sizing: border-box; + -webkit-box-sizing: border-box; + box-sizing: border-box; + } + + .detail__content h2::before { color: #000; content: "."; display: inline; @@ -54,15 +60,57 @@ class Tyzden(BasicNewsRecipe): .highlight { color: #bf1f10; + } + + .content-photo__image-credit, + .photo__image-credit { + font-size: 11px; + font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif; + text-transform: uppercase; + } + + .image-title { + border-bottom: 3px solid #bf1f10; + display: block; + padding-bottom: 3px; + line-height: 22px; + font-size: 16px; + font-family: 'TheMix_Bold', 'Georgia', 'Times', 'Times New Roman', serif; + font-weight: 500; + } + + .teaser--mag-feature { + margin-top: 25px; + padding: 10px 0 10px; + width: 100%; + box-sizing: content-box; + border-top: 2px dotted #555; + border-bottom: 2px dotted #555; + font-size: 20px; + } + + .teaser__wrapper { + display: block; + } + + .teaser a { + outline: none; + text-decoration: none; + color: inherit; + } + + .teaser__title { + font-size: 26px; }""" def get_browser(self): br = BasicNewsRecipe.get_browser(self) br.open(self.base_url + '/' + self.piano_param) + br.set_cookie('_t', '9bcb7dc397cf9516cbc504b700cf14e', '.tyzden.sk') br.set_cookie('pianovisitkey', '', '.tyzden.sk') if self.username is not None and self.password is not None: br.select_form(nr=2) - br['username'] = self.username + br['email'] = self.username br['password'] = self.password br.submit() return br