{"id":4050,"date":"2017-07-13T10:03:01","date_gmt":"2017-07-13T10:03:01","guid":{"rendered":"http:\/\/musilda.cz\/?p=4050"},"modified":"2017-07-13T10:03:01","modified_gmt":"2017-07-13T10:03:01","slug":"nastylovat-posledni-radku-produktu-ve-vypise","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/nastylovat-posledni-radku-produktu-ve-vypise\/","title":{"rendered":"Jak nastylovat posledn\u00ed \u0159\u00e1dku produkt\u016f ve v\u00fdpise"},"content":{"rendered":"

Dnes si zde s prominut\u00edm pouze odlo\u017e\u00edm css snippet, pro pozd\u011bj\u0161\u00ed pou\u017eit\u00ed \ud83d\ude09<\/p>\n

V p\u0159\u00edpad\u011b, \u017ee z n\u011bjak\u00e9ho d\u016fvodu pot\u0159ebujete nastylovat odli\u0161n\u011b posledn\u00ed \u0159\u00e1dek produkt\u016f, pom\u016f\u017ee tento snippet:<\/p>\n

.products li:nth-child(3n+1):nth-last-child(-n+3),\n.products li:nth-child(3n+1):nth-last-child(-n+3) ~ li {\n   border:none;\n}\n.products li:nth-child(4n+1):nth-last-child(-n+4),\n.products li:nth-child(4n+1):nth-last-child(-n+4) ~ li {\n border:none;\n}\n.products li:nth-child(5n+1):nth-last-child(-n+5),\n.products li:nth-child(5n+1):nth-last-child(-n+5) ~ li {\n border:none;\n}<\/pre>\n

Funguje pro 3, 4 a 5 produkt\u016f na \u0159\u00e1dku, kdy nev\u00edte, kolik jich v\u00e1m na posledn\u00ed \u0159\u00e1dek vyjde.<\/p>\n","protected":false},"excerpt":{"rendered":"

Dnes si zde s prominut\u00edm pouze odlo\u017e\u00edm css snippet, pro pozd\u011bj\u0161\u00ed pou\u017eit\u00ed \ud83d\ude09 V p\u0159\u00edpad\u011b, \u017ee z n\u011bjak\u00e9ho d\u016fvodu pot\u0159ebujete nastylovat odli\u0161n\u011b posledn\u00ed \u0159\u00e1dek produkt\u016f, pom\u016f\u017ee tento snippet: .products li:nth-child(3n+1):nth-last-child(-n+3), .products li:nth-child(3n+1):nth-last-child(-n+3) ~ li { border:none; } .products li:nth-child(4n+1):nth-last-child(-n+4), .products li:nth-child(4n+1):nth-last-child(-n+4) ~ li { border:none; } .products li:nth-child(5n+1):nth-last-child(-n+5), .products li:nth-child(5n+1):nth-last-child(-n+5) ~ li { border:none; }<\/p>\n","protected":false},"author":1,"featured_media":2635,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43,19],"tags":[355],"class_list":["post-4050","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css","category-snippety","tag-snippet"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/4050"}],"collection":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/comments?post=4050"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/4050\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media\/2635"}],"wp:attachment":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media?parent=4050"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=4050"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=4050"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}