From edb609f73970fa3e57be82d147b2fc7deb65fda7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20=C4=86wirko?= Date: Tue, 3 Feb 2015 08:38:47 +0100 Subject: [PATCH 1/5] polish translation - only lang files --- i18n/pl.i18n.json | 302 ++++++++++++++++++ packages/telescope-daily/i18n/pl.i18n.json | 5 + packages/telescope-email/i18n/pl.i18n.json | 3 + packages/telescope-embedly/i18n/pl.i18n.json | 7 + packages/telescope-invites/i18n/pl.i18n.json | 3 + .../telescope-newsletter/i18n/pl.i18n.json | 15 + .../telescope-notifications/i18n/pl.i18n.json | 14 + .../telescope-post-by-feed/i18n/pl.i18n.json | 5 + packages/telescope-search/i18n/pl.i18n.json | 6 + .../telescope-singleday/i18n/pl.i18n.json | 11 + .../i18n/pl.i18n.json | 5 + packages/telescope-tags/i18n/pl.i18n.json | 4 + 12 files changed, 380 insertions(+) create mode 100644 i18n/pl.i18n.json create mode 100644 packages/telescope-daily/i18n/pl.i18n.json create mode 100644 packages/telescope-email/i18n/pl.i18n.json create mode 100644 packages/telescope-embedly/i18n/pl.i18n.json create mode 100644 packages/telescope-invites/i18n/pl.i18n.json create mode 100644 packages/telescope-newsletter/i18n/pl.i18n.json create mode 100644 packages/telescope-notifications/i18n/pl.i18n.json create mode 100644 packages/telescope-post-by-feed/i18n/pl.i18n.json create mode 100644 packages/telescope-search/i18n/pl.i18n.json create mode 100644 packages/telescope-singleday/i18n/pl.i18n.json create mode 100644 packages/telescope-subscribe-to-posts/i18n/pl.i18n.json create mode 100644 packages/telescope-tags/i18n/pl.i18n.json diff --git a/i18n/pl.i18n.json b/i18n/pl.i18n.json new file mode 100644 index 000000000..aaa82c5b2 --- /dev/null +++ b/i18n/pl.i18n.json @@ -0,0 +1,302 @@ +{ + //Navigation + "menu": "Menu", + "view": "Widok", + "top": "Na topie", + "new": "Najnowsze", + "best": "Najlepsze", + "digest": "Dzisiaj", + "users": "Użytkownicy", + "settings": "Ustawienia", + "admin": "Admin", + "post": "Nowy temat", + "toolbox": "Narzędzia", + "sign_up_sign_in": "Zarejestruj/Zaloguj", + "my_account": "Moje konto", + "view_profile": "Profil", + "edit_account": "Edytuj konto", + + //Main + "new_posts": "Nowe Posty", + + // Settings Schema + "title": "Tytuł", + "siteUrl": "URL strony", + "tagline": "Podtytuł", + "requireViewInvite": "Wymagaj zaproszenia żeby przeglądać", + "requirePostInvite": "Wymagaj zaproszenia żeby pisać", + "requirePostsApproval": "Zatwierdzanie nowych postów", + "defaultEmail": "Standardowy Email", + "scoreUpdateInterval": "Częstotliwość przeliczania punktów", + "defaultView": "Standardowy widok", + "postInterval": "Interwał czasowy dla nowych postów", + "commentInterval": "Interwał czasowy dla nowych komentarzy", + "maxPostsPerDay": "Maksymalna liczba postów w jednym dniu", + "startInvitesCount": "Licznik zaproszeń", + "postsPerPage": "Postów na stronę", + "logoUrl": "URL Logo", + "logoHeight": "Wysokość Logo", + "logoWidth": "Szerokość Logo", + "language": "Język", + "backgroundCSS": "Tło CSS", + "buttonColor": "Kolor przycisków", + "buttonTextColor": "Kolor tekstu na przyciskach", + "headerColor": "Kolor dla nagłówka", + "headerTextColor": "Kolor tekstu dla nagłówka", + "twitterAccount": "Konto Twitter", + "googleAnalyticsId": "Google Analytics ID", + "mixpanelId": "Mixpanel ID", + "clickyId": "Clicky ID", + "footerCode": "Kod w stopce", + "extraCode": "Dodatkowy kod", + "emailFooter": "Stopka Email", + "notes": "Notatki", + "debug": "Debug Mode", + + // Settings Fieldsets + "general": "Główne", + "invites": "Zaproszenia", + "email": "Email", + "scoring": "Scoring", + "posts": "Posty", + "comments": "Comments", + "logo": "Logo", + "extras": "Extras", + "colors": "Kolory", + "integrations": "Integracje", + + // Settings Help Text + + // Post Schema + "createdAt": "Utworzony", + "postedAt": "Dodany", + "url": "URL", + "title": "Tytuł", + "body": "Treść", + "htmlBody": "Treść HTML", + "viewCount": "Liczba odświeżeń", + "commentCount": "Liczba komentarzy", + "commenters": "Komentujący", + "lastCommentedAt": "Ostatnio komentował", + "clickCount": "Liczba kliknięć", + "baseScore": "Bazowy wynik", + "upvotes": "Pozytywne", + "upvoters": "Głosujący pozytywnie", + "downvotes": "Negatywne", + "downvoters": "Głosujący negatywnie", + "score": "Wynik", + "status": "Status", + "sticky": "Przyklejony", + "inactive": "Nieaktywny", + "author": "Autor", + "userId": "Użytkownik", + "sorry_we_couldnt_find_any_posts": "Przepraszamy, ale w tej chwili nie ma tutaj żadnych postów.", + + //Commments + "your_comment_has_been_deleted": "Twój komentarz został usunięty.", + "comment_": "Komentuj", + "delete_comment": "Usuń komentarz", + "add_comment": "Dodaj komentarz", + "upvote": "plus", + "downvote": "minus", + "link": "link", + "edit": "Edytuj", + "reply": "Odpowiedz", + "no_comments": "Brak komentarzy.", + + //Errors + "you_are_already_logged_in": "Jesteś już zalogowany", + "sorry_this_is_a_private_site_please_sign_up_first": "Musisz się najpierw zarejestrować.", + "thanks_for_signing_up": "Dzięki za rejestrację!", + "the_site_is_currently_invite_only_but_we_will_let_you_know_as_soon_as_a_spot_opens_up": "Tą stronę mogą oglądać jedynie zaproszone osoby", + "sorry_you_dont_have_the_rights_to_view_this_page": "Niestety nie masz odpowiednich praw dostępu żeby widzieć tą stronę.", + "sorry_you_do_not_have_the_rights_to_comments": "Niestety nie masz odpowiednich praw dostępu żeby móc dodawać komentarze.", + "not_found": "Nie znaleziono!", + "were_sorry_whatever_you_were_looking_for_isnt_here": "Niestety nie ma tutaj tego czego szukałeś...", + + //Notifications + "no_notifications": "Brak powiadomień", + "1_notification": "1 powiadomienie", + "notifications": "powiadomień", + "mark_all_as_read": "Oznacz wszystkie jako przeczytane", + + // Post deleted + "your_post_has_been_deleted": "Twój post został usunięty.", + + // Post submit & edit + "created": "Utworzone", + "title": "Tytuł", + "suggest_title": "Zasugeruj tytuł", + "url": "URL", + "short_url": "Krótki URL", + "body": "Body", + "category": "Kategoria", + "categories": "Kategorie", + "inactive_": "Nieaktywny?", + "sticky_": "Przyklejony?", + "submission_date": "Data utworzenia", + "submission_time": "Godzina utworzenia", + "date": "Data", + "submission": "Wpis", + "note_this_post_is_still_pending_so_it_has_no_submission_timestamp_yet": "Ten post ciągle czeka na zatwierdzenie.", + "user": "Użytkownik", + "status_": "Status", + "approved": "Zaakceptowany", + "rejected": "Odrzucony", + "delete_post": "Usuń post", + "thanks_your_post_is_awaiting_approval": "Twój post czeka na zatwierdzenie.", + "sorry_couldnt_find_a_title": "Podaj tytuł...", + "please_fill_in_an_url_first": "Podaj URL", + + // Post item + "share": "Udostępnij", + "discuss": "Komentuj", + "upvote_": "Plus", + "sticky": "Przyklejony", + "status": "status", + "votes": "głosy", + "basescore": "wynik bazowy", + "score": "wynik", + "clicks": "kliknięcia", + "views": "wyświetlenia", + "inactive": "nieaktywny", + "comment": "komentarz", + "comments": "komentarze", + "point": "punkt", + "points": "punktów", + + //User /client/views/users/account/user_account.html + "please_complete_your_profile_below_before_continuing": "Uzupełnij profil.", + "account": "Konto", + "username": "Nick", + "display_name": "Nazwa wyświetlana", + "email": "Email", + "bio": "Bio", + "twitter_username": "Twitter", + "github_username": "GitHub", + "site_url" : "Strona WWW", + "password": "Hasło", + "change_password": "Zmienić hasło?", + "old_password": "Stare hasło", + "new_password": "Nowe hasło", + "email_notifications": "Notyfikacje email", + "new_users" : "Nowi użytkownicy", + "new_posts": "Nowe posty", + "comments_on_my_posts": "Komentarze do moich postów", + "replies_to_my_comments": "Odpowiedzi na moje komentarze", + "forgot_password": "Zapomniałeś hasło?", + "profile_updated": "Profil został zaktualizowany", + "please_fill_in_your_email_below_to_finish_signing_up": "Uzupełnij email.", + "invite": "Zaproś", + "uninvite": "Wyproś", + "make_admin": "Mianuj admina", + "unadmin": "Zdejmij admina", + "delete_user": "Usuń użytkownika", + "are_you_sure_you_want_to_delete": "Jesteś pewny, że chcesz usunąć ", + "reset_password": "Resetuj hasło", + "password_reset_link_sent": "Link z nowym hasłem został wysłany!", + "name": "Imię", + "posts": "Posty", + "comments_": "Komentarze", + "karma": "Karma", + "is_invited": "Czy jest zaproszony?", + "is_admin": "Czy jest adminem?", + "delete": "Usuń", + "member_since": "Zarejestrowany od", + "edit_profile": "Edytuj profil", + "sign_in": "Zaloguj", + "sign_in_": "Zaloguj!", + "sign_up_": "Zarejestruj!", + "dont_have_an_account": "Nie masz konta?", + "already_have_an_account": "Masz już konto?", + "sign_up": "Zarejestruj", + "please_fill_in_all_fields": "Uzupełnij pola", + "invite_": "Zaproś ", + "left": " left", + "invite_none_left": "Zaproszenia (brak)", + "all": "Wszyscy", + "invited": "Zaproszeni", + "uninvited": "Niezaproszeni", + "filter_by": "Filtruj po", + "sort_by": "Sortuj po", + + //helpers + "sorry_you_do_not_have_access_to_this_page": "Przepraszamy, nie masz dostępu.", + "please_sign_in_first": "Zaloguj się.", + "sorry_you_have_to_be_an_admin_to_view_this_page": "Musisz być adminem żeby to zobaczyć.", + "sorry_you_dont_have_permissions_to_add_new_items": "Nie masz uprawnień do dodawania.", + "sorry_you_cannot_edit_this_post": "Nie możesz edytować tego postu.", + "sorry_you_cannot_edit_this_comment": "Nie możesz edytować tego komentarza.", + + //Collections + "you_need_to_login_and_be_an_admin_to_add_a_new_category": "Musisz się zalogować jako admin aby móc dodawać nowe kategorie.", + "you_need_to_login_or_be_invited_to_post_new_comments": "Musisz być zalogowany lub zaproszony aby dodawaćc nowe komentarze.", + "please_wait": "Proszę czekać ", + "seconds_before_commenting_again": " sekund zanim znowu będziesz móc komentować", + "your_comment_is_empty": "Twój komentarz jest pusty.", + "you_dont_have_permission_to_delete_this_comment": "Nie możesz usunąć tego komentarza.", + "you_need_to_login_or_be_invited_to_post_new_stories": "Musisz być zalogowany lub zaproszony aby dodawać nowe posty.", + "please_fill_in_a_headline": "Please fill in a headline", + "this_link_has_already_been_posted": "Ten link już istnieje", + "sorry_you_cannot_submit_more_than": "Nie możesz dodawać więcej niż ", + "posts_per_day": " postów na dzień", + "someone_replied_to_your_comment_on": "Ktoś odpowiedział na twój komentarz w", + "has_replied_to_your_comment_on": " odpowiedział na twój komentarz w", + "read_more": "Czytaj dalej", + "a_new_comment_on_your_post": "Nowy komentarz", + "you_have_a_new_comment_by": "Pojawił się nowy komentarz ", + "on_your_post": " dla twojego posta", + "has_created_a_new_post": " utworzył nowy post", + "your_account_has_been_approved": "Twoje konto zostało zaakceptowane.", + "welcome_to": "Witaj na ", + "start_posting": "Zacznij pisać.", + + // Translation needed (found during migration to tap:i18n) + "please_fill_in_a_title": "Wypełnij tytuł", + "seconds_before_posting_again": " sekund zanim znowu będziesz mógł napisać", + "upvoted": "minus", + "posted_date": "Data", + "posted_time": "Godzina", + "posted_date": "Data", + "posted_time": "Godzina", + "profile": "Profil", + "sign_out": "Wyloguj się", + "you_ve_been_signed_out": "Zostałeś prawidłowo wylogowany!", + "invitedcount": "Liczba zaproszeń", + "invites": "Zaproszenia", + "invited": "Zaproszony?", + "admin": "Admin", + "actions": "Akcje", + "invites_left": "zaproszeń pozostało", + "id": "ID", + "name": "Imię:", + "bio": "Bio:", + "github": "GitHub", + "site": "Strona WWW", + "upvoted_posts": "Głosy pozytywne", + "downvoted_posts": "Głosy negatywne", + "mark_as_read": "Oznacz jako przeczytane", + + //Common + "pending": "Oczekuje", + "loading": "Ładowanie...", + "submit": "Wyślij", + "you_must_be_logged_in": "Musisz być zalogowany.", + "are_you_sure": "Jesteś pewny?", + "please_log_in_first": "Najpierw się zaloguj.", + "please_log_in_to_comment": "Aby komentować musisz być zalogowany.", + "sign_in_sign_up_with_twitter": "Zarejestruj/Zaloguj się przez Twitter", + "load_more": "Więcej", + + "most_popular_posts": "Aktualnie najpopularniejsze posty.", + "newest_posts": "Najnowsze posty.", + "highest_ranked_posts_ever": "Najwyżej oceniane posty wszechczasów.", + + "the_profile_of": "Profil", + + "posts_awaiting_moderation": "Posty czekające na moderację.", + "future_scheduled_posts": "Posty na przyszłość.", + "users_dashboard": "Pulpit użytkowników.", + "telescope_settings_panel": "Ustawienia.", + "various_utilities": "Narzędzia." +} \ No newline at end of file diff --git a/packages/telescope-daily/i18n/pl.i18n.json b/packages/telescope-daily/i18n/pl.i18n.json new file mode 100644 index 000000000..63ccac839 --- /dev/null +++ b/packages/telescope-daily/i18n/pl.i18n.json @@ -0,0 +1,5 @@ +{ + "daily": "Dziennie", + "day_by_day_view": "Najpopularniejsze posty każdego dnia.", + "load_next_days": "Wczytaj kolejne dni" +} \ No newline at end of file diff --git a/packages/telescope-email/i18n/pl.i18n.json b/packages/telescope-email/i18n/pl.i18n.json new file mode 100644 index 000000000..8b927da89 --- /dev/null +++ b/packages/telescope-email/i18n/pl.i18n.json @@ -0,0 +1,3 @@ +{ + "has_created_a_new_post": "dodał nowego posta" +} \ No newline at end of file diff --git a/packages/telescope-embedly/i18n/pl.i18n.json b/packages/telescope-embedly/i18n/pl.i18n.json new file mode 100644 index 000000000..63f751f88 --- /dev/null +++ b/packages/telescope-embedly/i18n/pl.i18n.json @@ -0,0 +1,7 @@ +{ + "thumbnail": "Miniatura", + "thumbnailUrl": "Miniatura", + "regenerate_thumbnail": "Przeładuj miniaturę", + "clear_thumbnail": "Usuń miniaturę", + "please_fill_in_embedly_key": "Podaj swój klucz API z Embedly aby włączyć miniatury obrazków." +} \ No newline at end of file diff --git a/packages/telescope-invites/i18n/pl.i18n.json b/packages/telescope-invites/i18n/pl.i18n.json new file mode 100644 index 000000000..41a622460 --- /dev/null +++ b/packages/telescope-invites/i18n/pl.i18n.json @@ -0,0 +1,3 @@ +{ + "translation_key": "translation string" +} \ No newline at end of file diff --git a/packages/telescope-newsletter/i18n/pl.i18n.json b/packages/telescope-newsletter/i18n/pl.i18n.json new file mode 100644 index 000000000..b845213fe --- /dev/null +++ b/packages/telescope-newsletter/i18n/pl.i18n.json @@ -0,0 +1,15 @@ +{ + "receive_the_best_of": "Otrzymuj najlepsze z", + "right_in_your_inbox": "prosto do twojej skrzynki.", + "get_newsletter": "Zapisz się do Newslettera", + "thanks_for_subscribing": "Dziękujemy!", + "newsletter": "newsletter", + "showBanner": "Pokaż Baner", + "mailChimpAPIKey": "MailChimp API Key", + "mailChimpListId": "MailChimp List ID", + "postsPerNewsletter": "Liczba postów przypadająca na jeden Newsletter", + "newsletterFrequency": "Częstotliwość Newslettera", + "newsletterTime": "Godzina, w której ma być wysłany Newsletter", + "enableNewsletter": "Włącz Newsletter", + "autoSubscribe": "Auto Subskrybcja" +} \ No newline at end of file diff --git a/packages/telescope-notifications/i18n/pl.i18n.json b/packages/telescope-notifications/i18n/pl.i18n.json new file mode 100644 index 000000000..c4fc790b0 --- /dev/null +++ b/packages/telescope-notifications/i18n/pl.i18n.json @@ -0,0 +1,14 @@ +{ + "left_a_new_comment_on": "dodał nowy komentarz w", + "has_replied_to_your_comment_on": "odpowiedział na twój komentarz w", + "mark_as_read": "Oznacz jako przeczytane", + "no_notifications": "Brak powiadomień", + "you_have_been_unsubscribed_from_all_notifications": "Zostałeś wypisany ze wszystkich powiadomień.", + "user_not_found": "Użytkownik nie został odnaleziony", + "1_notification": "1 powiadomienie", + "notifications": "powiadomień", + "notifications_fieldset": "Powiadomienia", + "emailNotifications": "Powiadomienia Email", + "your_post": "Twój post", + "has_been_approved": "został zaakceptowany" +} \ No newline at end of file diff --git a/packages/telescope-post-by-feed/i18n/pl.i18n.json b/packages/telescope-post-by-feed/i18n/pl.i18n.json new file mode 100644 index 000000000..c54c5d492 --- /dev/null +++ b/packages/telescope-post-by-feed/i18n/pl.i18n.json @@ -0,0 +1,5 @@ +{ + "feed_already_exists": "Kanał z tym samym URL już istnieje.", + "you_need_to_login_and_be_an_admin_to_add_a_new_feed": "Musisz się zalogować jako admin aby dodawać nowe kanały.", + "import_new_posts_from_feeds": "Zaimportuj nowe posty z kanałów." +} \ No newline at end of file diff --git a/packages/telescope-search/i18n/pl.i18n.json b/packages/telescope-search/i18n/pl.i18n.json new file mode 100644 index 000000000..3a701afc0 --- /dev/null +++ b/packages/telescope-search/i18n/pl.i18n.json @@ -0,0 +1,6 @@ +{ + "load_more": "Wczytaj więcej", + "search": "Szukaj", + "search_logs": "Historia wyszukiwań", + "see_what_people_are_searching_for": "Zobacz co wyszukują użytkownicy." +} \ No newline at end of file diff --git a/packages/telescope-singleday/i18n/pl.i18n.json b/packages/telescope-singleday/i18n/pl.i18n.json new file mode 100644 index 000000000..6c5b002d1 --- /dev/null +++ b/packages/telescope-singleday/i18n/pl.i18n.json @@ -0,0 +1,11 @@ +{ + "the_top_5_posts_of_each_day": "Najlepsze 5 postów z każdego dnia.", + "previous_day": "Poprzedni dzień", + "next_day": "Następny dzień", + "sorry_no_posts_for_today": "Brak postów na dzisiaj", + "sorry_no_posts_for": "Brak postów na ", + "today": "Dzisiaj", + "yesterday": "Wczoraj", + "single_day": "Jeden dzień", + "posts_of_a_single_day": "Posty z jednego dnia." +} \ No newline at end of file diff --git a/packages/telescope-subscribe-to-posts/i18n/pl.i18n.json b/packages/telescope-subscribe-to-posts/i18n/pl.i18n.json new file mode 100644 index 000000000..87ce3e294 --- /dev/null +++ b/packages/telescope-subscribe-to-posts/i18n/pl.i18n.json @@ -0,0 +1,5 @@ +{ + "subscribed_posts": "Posty które subskrybujesz", + "subscribe_to_thread": "Subskrybuj", + "unsubscribe_from_thread": "Nie subskrybuj" +} \ No newline at end of file diff --git a/packages/telescope-tags/i18n/pl.i18n.json b/packages/telescope-tags/i18n/pl.i18n.json new file mode 100644 index 000000000..c6869d6a6 --- /dev/null +++ b/packages/telescope-tags/i18n/pl.i18n.json @@ -0,0 +1,4 @@ +{ + "categories": "Kategorie", + "add_and_remove_categories": "Dodaj/Usuń kategorie." +} \ No newline at end of file From a774b5b2e4fcfbf118ec37d405e7ba771b4df60c Mon Sep 17 00:00:00 2001 From: Kiko Beats Date: Sat, 7 Feb 2015 19:59:06 +0100 Subject: [PATCH 2/5] Update _posts.scss --- .../lib/client/scss/modules/_posts.scss | 512 +++++++++--------- 1 file changed, 244 insertions(+), 268 deletions(-) diff --git a/packages/telescope-theme-hubble/lib/client/scss/modules/_posts.scss b/packages/telescope-theme-hubble/lib/client/scss/modules/_posts.scss index c2f1d7026..582c3b00d 100644 --- a/packages/telescope-theme-hubble/lib/client/scss/modules/_posts.scss +++ b/packages/telescope-theme-hubble/lib/client/scss/modules/_posts.scss @@ -1,90 +1,85 @@ - // ------------------------------------ posts ------------------------------------ // -.posts-wrapper{ +.posts-wrapper { padding: 0; margin-bottom: 20px; } - -.single-post .posts{ +.single-post .posts { margin-bottom: 10px; - .post{ + .post { border-radius: 3px; @extend .has-shadow; } } - // ------------------------------------ post ------------------------------------ // -.post{ +.post { padding: 10px 0px 10px 10px; border-radius: 0px; margin-bottom: 0px; - border-bottom:1px solid $lightest-grey; + border-bottom: 1px solid $lightest-grey; display: flex; align-items: center; - position:relative; - width:100%; + position: relative; + width: 100%; background: white; - &:first-child{ + &:first-child { border-radius: 3px 3px 0px 0px; } - &:last-child{ + &:last-child { border-radius: 0px 0px 3px 3px; } - &.animate{ + &.animate { transition: ease-out, top, 400ms, 0ms; } - &.inactive{ - .post-content{ - background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVQYV2NkIALMnDlTkpGQOpCi9PT053gVwhSBDMOpEFkRToXoirAqxKYIQyEuRSgK8SmCKySkCKyQGEUghQC5OyXvW/4BHwAAAABJRU5ErkJggg=='); + &.inactive { + .post-content { + background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVQYV2NkIALMnDlTkpGQOpCi9PT053gVwhSBDMOpEFkRToXoirAqxKYIQyEuRSgK8SmCKySkCKyQGEUghQC5OyXvW/4BHwAAAABJRU5ErkJggg=='); } } - } - // ------------------------------ posts-list layout ------------------------------ // -.posts-list{ - .post-module{ +.posts-list { + .post-module { flex-shrink: 0; flex-grow: 0; margin-right: 10px; } - .post-rank{ - @include small{ + .post-rank { + @include small { display: none; } - .post-rank-inner{ - height: 25px; - position: relative; + .post-rank-inner { + height: 25px; + position: relative; } - span{ - position:absolute; - top:0px; - left:-60px; - display:block; - height:25px; - line-height:25px; - width:30px; - text-align:right; - font-size:18px; - // font-weight:bold; - color:black(0.2); + span { + position: absolute; + top: 0px; + left: -60px; + display: block; + height: 25px; + line-height: 25px; + width: 30px; + text-align: right; + font-size: 18px; + // font-weight: bold; + color: black(0.2); } } - .post-upvote{ + .post-upvote { order: 1; - @include small{ + @include small { display: none; } } - .post-content{ + .post-content { order: 2; width: 100%; // can shrink on mobile or desktop flex-shrink: 1; - @include medium-large{ + @include medium-large { // but can only grow on desktop flex-grow: 1; // only be a flex container on desktop @@ -92,66 +87,68 @@ } align-items: center; } - .post-info{ + .post-info { flex-grow: 1; } - .post-share{ + .post-share { order: 3; } - .post-discuss{ + .post-discuss { order: 7; padding-top: 6px; - @include small{ + @include small { display: none; } } - .post-share, .post-discuss{ + .post-share, + .post-discuss { // width: 60px; text-align: center; // height: 60px; // position: relative; // top: -5px; } - .post-actions{ + .post-actions { order: 8; - @include small{ + @include small { display: block; } } - .post-avatars{ + .post-avatars { order: 6; - @include small{ - display: none; - } - } - .show-actions{ - .post-content{ + @include small { display: none; } - .post-share, .post-discuss, .post-upvote{ + } + .show-actions { + .post-content { + display: none; + } + .post-share, + .post-discuss, + .post-upvote { flex-grow: 1; display: block; } - } - .action-label{ - @include small{ + } + .action-label { + @include small { display: block; } } } - // ------------------------------ posts-grid layout ------------------------------ // -.posts-grid{ - @include medium-large{ +.posts-grid { + @include medium-large { display: flex; - flex-wrap: wrap; - } - .post{ - @include medium-large{ + flex-wrap: wrap; + } + .post { + @include medium-large { width: calc((100% - 20px)/3); margin-right: 10px; - &:nth-of-type(3n){ + &:nth-of-type(3n) { margin-right: 0; } } @@ -160,7 +157,7 @@ padding: 0; position: relative; padding-bottom: 40px; - &:after{ + &:after { content: " "; display: block; position: absolute; @@ -170,8 +167,8 @@ border-bottom: 1px solid $lightest-grey; } } - .post-rank{ - span{ + .post-rank { + span { position: absolute; top: 0px; right: 0px; @@ -188,142 +185,139 @@ // box-shadow: 0px 0px 2px white(0.5); } } - .post-upvote{ + .post-upvote { position: absolute; left: 3px; bottom: 3px; } - .post-content{ + .post-content { display: block; } - .post-thumbnail{ + .post-thumbnail { margin-right: 0px; - a{ + a { width: 100%; } } - .post-info{ + .post-info { padding: 10px; } - .no-thumbnail .post-info{ + .no-thumbnail .post-info { padding-right: 35px; } - .post-avatars{ + .post-avatars { position: absolute; right: 48px; bottom: 0px; padding: 8px 0px; } - .post-discuss{ + .post-discuss { position: absolute; right: 8px; bottom: 0px; padding: 8px 0px 2px 0px; } } - // -------------------------------- post modules --------------------------------- // -.post-module.post-rank{ +.post-module.post-rank { margin: 0; } - -.post-upvote{ - .upvote-link{ +.post-upvote { + .upvote-link { position: relative; // top: 17px; // transform: translateY(-50%); display: block; text-align: center; - i{ + i { opacity: 0.4; display: inline-block; border-radius: 50%; - border: 1px solid rgba($red, 0.3); - font-size:10px; + border: 1px solid rgba($red, + 0.3); + font-size: 10px; width: 24px; height: 24px; - text-align:center; - // line-height:$grid-unit; - color:rgba($red, 0.8); - text-shadow:0px 1px 0px white; + text-align: center; + // line-height: $grid-unit; + color: rgba($red, + 0.8); + text-shadow: 0px 1px 0px white; line-height: 2.3; margin: 5px; - &:before{ + &:before { top: 0px; } - &.icon-check{ - display:none; + &.icon-check { + display: none; } } - .action-label{ - display:none; + .action-label { + display: none; } - &.not-voted:hover{ - i{ - opacity: 1; - text-shadow:none; + &.not-voted:hover { + i{opacity: 1; + text-shadow: none; } } - &.voted{ - cursor:default; - i.icon-up{ - display:none; + &.voted { + cursor: default; + i.icon-up { + display: none; } - i.icon-check{ + i.icon-check { border: 1px solid rgba($blue, 0.6); display: inline-block; - color:rgba($blue, 0.8); + color: rgba($blue, 0.8); opacity: 0.5; } } } } - -.post-content{ +.post-content { min-height: $grid-unit - 30px; - .post-sticky{ + .post-sticky { display: block; position: absolute; right: -40px; top: 16px; font-size: 24px; - i{ + i { color: $light-text; } - span{ + span { display: none; } } } - -.post-avatars{ - display: inline-block; - display: flex; - .author-avatar{ - display: block; - } - .post-commenters{ - display: block; - border-left: 1px solid black(0.2); - padding-left: 5px; - } - .avatar-link{ - display: inline-block; - margin-right: 5px; - &:last-child{ - margin-right: 0px; - } - } - .avatar{ - display: inline-block; - height: 24px; - width: 24px; - vertical-align: middle; - } +.post-avatars { + display: inline-block; + display: flex; + .author-avatar { + display: block; + } + .post-commenters { + display: block; + border-left: 1px solid black(0.2); + padding-left: 5px; + } + .avatar-link { + display: inline-block; + margin-right: 5px; + &:last-child { + margin-right: 0px; + } + } + .avatar { + display: inline-block; + height: 24px; + width: 24px; + vertical-align: middle; + } } -.post-author{ - .avatar{ +.post-author { + .avatar { display: inline-block; width: 20px; height: 20px; @@ -331,22 +325,20 @@ margin-right: 5px; } } - -.post-discuss{ - .action-label{ +.post-discuss { + .action-label { display: none; } } - -.post-actions{ +.post-actions { display: none; text-align: right; - a{ + a { display: block; width: 36px; height: 36px; padding: 6px; - span{ + span { display: block; height: 100%; width: 100%; @@ -360,126 +352,122 @@ } } } - -.post-share{ +.post-share { display: none; } // -------------------------------- post content --------------------------------- // -.post-heading{ +.post-heading { margin-bottom: 3px; line-height: 1.2; - .post-title{ - @include small{ + .post-title { + @include small { font-size: 15px; } - @include medium-large{ - font-size:18px; + @include medium-large { + font-size: 18px; } - font-weight:normal; - &:visited{ - color:$grey; + font-weight: normal; + &:visited { + color: $grey; } } - .post-domain{ - color:$light-text; - @include small{ + .post-domain { + color: $light-text; + @include small { font-size: 13px; } - @include medium-large{ - font-size:14px; + @include medium-large { + font-size: 14px; } - font-weight:normal; + font-weight: normal; } } - -.post-meta{ - font-size:13px; - color:$light-text; - line-height:1.5; - @include small{ +.post-meta { + font-size: 13px; + color: $light-text; + line-height: 1.5; + @include small { font-size: 11px; line-height: 1.7; } - a{ - &:link, &:visited, &:active{ - color:$medium-text; + a { + &:link, + &:visited, + &:active { + color: $medium-text; } - &:hover{ + &:hover { color: $red; } } } -.post-meta-item{ +.post-meta-item { display: inline-block; } - -.post-body{ +.post-body { @extend .has-shadow; border-radius: 3px; margin-bottom: 10px; background: white; - padding:20px; - font-size:16px; - .list &{ - display:none; + padding: 20px; + font-size: 16px; + .list & { + display: none; } } - -.post.sticky{ - background:$light-yellow; +.post.sticky { + background: $light-yellow; } - // -------------------------------- mobile view --------------------------------- // @include small { - .posts{ - padding:0; - .post-rank{ - display:none; - } - } - .post{ - .post-content{ - margin-right:50px; - margin-right:0px; - // min-height:90px; - .upvote-link{ - width:30px; - } - .post-info{ - // margin-left:30px; - padding:13px 0; - } - .post-heading{ - .post-title{ - display:block; - margin-bottom:4px; - } - .post-domain{ - display:block; - margin-bottom:4px; - font-size:13px; - } - } - .post-meta{ - font-size:11px; - .unit{ - font-size:0; - &:after{ - font-size:12px; - content:"pts "; - } - } - } - } - } - } - + .posts { + padding: 0; + .post-rank { + display: none; + } + } + .post { + .post-content { + margin-right: 50px; + margin-right: 0px; + // min-height: 90px; + .upvote-link { + width: 30px; + } + .post-info { + // margin-left: 30px; + padding: 13px 0; + } + .post-heading { + .post-title { + display: block; + margin-bottom: 4px; + } + .post-domain { + display: block; + margin-bottom: 4px; + font-size: 13px; + } + } + .post-meta { + font-size: 11px; + .unit { + font-size: 0; + &:after { + font-size: 12px; + content: "pts "; + } + } + } + } + } +} // -------------------------------- other --------------------------------- // -.no-posts{ +.no-posts { padding: 20px; border: 1px solid black(0.1); font-size: 14px; @@ -488,65 +476,53 @@ margin-bottom: 10px; color: black(0.5); } - -.empty-notice{ - text-align:center; - padding:10px 0; -} - -.action{ - position:relative; - display:block; - padding:0; - text-align:center; - color:$light-text; - &.edit-link{ - color:$red; +.empty-notice { + text-align: center; + padding: 10px 0; + &.edit-link { + color: $red; } - &.share-link{ - color:$light-text; + &.share-link { + color: $light-text; } - &.discuss-link{ - color:$light-text; + &.discuss-link { + color: $light-text; } - &.more-link{ - color:$blue; + &.more-link { + color: $blue; } - &:hover{ - &, .action{ - color:$red; + &:hover { + &, + .action { + color: $red; } } - &.voted{ - color:white; + &.voted { + color: white; cursor: default; } - - .points{ - display:block; - font-size:30px; - line-height:50px; + .points { + display: block; + font-size: 30px; + line-height: 50px; } } - -.more-button{ +.more-button { display: block; - width:100%; - height:$grid-unit; - background:black(0.05); - text-align:center; - color:white; - line-height:$grid-unit; - font-size:18px; + width: 100%; + height: $grid-unit; + background: black(0.05); + text-align: center; + color: white; + line-height: $grid-unit; + font-size: 18px; border-radius: 0px 0px 3px 3px; text-shadow: 0px 1px 1px 0px black(0.25); padding: 0px; - &:hover{ + &:hover { background: black(0.15); } } - - -.module{ +.module { border-radius: 3px; } From d7c5a5e1b702f9ee8d6d7443de790c736648dbc8 Mon Sep 17 00:00:00 2001 From: Kiko Beats Date: Sat, 7 Feb 2015 19:59:43 +0100 Subject: [PATCH 3/5] Update _icons.scss --- .../lib/client/scss/modules/_icons.scss | 49 +++++++++++-------- 1 file changed, 28 insertions(+), 21 deletions(-) diff --git a/packages/telescope-theme-hubble/lib/client/scss/modules/_icons.scss b/packages/telescope-theme-hubble/lib/client/scss/modules/_icons.scss index 27fb04fba..1043bf012 100644 --- a/packages/telescope-theme-hubble/lib/client/scss/modules/_icons.scss +++ b/packages/telescope-theme-hubble/lib/client/scss/modules/_icons.scss @@ -1,30 +1,37 @@ -.action-icon{ +.action { + position: relative; + display: block; + padding: 0; + text-align: center; + color: $light-text; +} +.action-icon { font-size: 30px; height: 30px; display: block; - &:before{ + &:before { position: relative; top: -10px; } } -.action-label{ +.action-label { font-weight: bold; - display:block; - height:20px; - line-height:20px; - bottom:5px; - left:0px; - font-size:13px; - color:$light-text; - pointer-events:none; - // color:$red; + display: block; + height: 20px; + line-height: 20px; + bottom: 5px; + left: 0; + font-size: 13px; + color: $light-text; + pointer-events: none; + // color: $red; +} +.action-count { + position: absolute; + top: 4px; + display: block; + width: 100%; + height: 11px; + line-height: 11px; + font-size: 14px; } -.action-count{ - position:absolute; - top:4px; - display:block; - width:100%; - height:11px; - line-height:11px; - font-size:14px; -} \ No newline at end of file From ae9fe2b6a66af025cbc15edd09f21a702230d36e Mon Sep 17 00:00:00 2001 From: Kiko Beats Date: Sat, 7 Feb 2015 20:40:23 +0100 Subject: [PATCH 4/5] Update _icons.scss --- .../lib/client/scss/modules/_icons.scss | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/telescope-theme-hubble/lib/client/scss/modules/_icons.scss b/packages/telescope-theme-hubble/lib/client/scss/modules/_icons.scss index 1043bf012..66e7914be 100644 --- a/packages/telescope-theme-hubble/lib/client/scss/modules/_icons.scss +++ b/packages/telescope-theme-hubble/lib/client/scss/modules/_icons.scss @@ -4,10 +4,13 @@ padding: 0; text-align: center; color: $light-text; + &.discuss-link { + color: $blue-grey; + } } .action-icon { - font-size: 30px; - height: 30px; + font-size: 36px; + height: 36px; display: block; &:before { position: relative; @@ -31,7 +34,7 @@ top: 4px; display: block; width: 100%; - height: 11px; - line-height: 11px; + height: 20px; + line-height: 20px; font-size: 14px; } From 9e808bec4d0e849479ec1a658220eb9fb4d5d5c7 Mon Sep 17 00:00:00 2001 From: Kiko Beats Date: Sat, 7 Feb 2015 20:40:43 +0100 Subject: [PATCH 5/5] Update _posts.scss