{"id":5755,"date":"2018-04-24T11:24:55","date_gmt":"2018-04-24T11:24:55","guid":{"rendered":"https:\/\/www.templatemonster.com\/pl\/blog\/?p=5755"},"modified":"2018-05-02T10:32:04","modified_gmt":"2018-05-02T10:32:04","slug":"checkboxy-i-przyciski-opcji-w-css3","status":"publish","type":"post","link":"https:\/\/monsterspost.com\/pl\/checkboxy-i-przyciski-opcji-w-css3\/","title":{"rendered":"Jak zrobi\u0107 stylowe checkboxy i przyciski opcji w CSS3"},"content":{"rendered":"<p style=\"text-align: justify;\">Wszyscy znamy o <strong>HTML checkboxach\u00a0i przyciskach opcji<\/strong>. Najbardziej frustruj\u0105ce jest to, \u017ce nie mo\u017cemy zmieni\u0107 ich wygl\u0105du. Wygl\u0105daj\u0105 inaczej, w zale\u017cno\u015bci od systemu operacyjnego i przegl\u0105darki, i nie mo\u017cemy ich stylizowa\u0107 za pomoc\u0105 CSS.<\/p>\n<p style=\"text-align: justify;\">Mo\u017ce to by\u0107 denerwuj\u0105ce dla wi\u0119kszo\u015bci projektant\u00f3w, kt\u00f3rzy chc\u0105 aby te elementy\u00a0wygl\u0105dali atrakcyjnie\u00a0i nie psuwali\u00a0ogolnego wygl\u0105du projektu. W tym\u00a0tutorial poka\u017c\u0119, jak zrobi\u0107 aby te elementy wygl\u0105dali uroczo i stylowo!<\/p>\n<hr \/>\n<div class=\"spacer\"><\/div>\n<p style=\"text-align: center;\">Tworzenie responsywnych stron: jakie masz opcje? [Darmowa e-ksi\u0105\u017cka]\n<p style=\"text-align: center;\"><input id=\"mce-EMAIL newsletter-form-email\" class=\"required email\" style=\"width: 380px; margin-right: 5px;\" name=\"EMAIL\" type=\"email\" value=\"\" placeholder=\"email address\" \/><\/p>\n<div id=\"mc_embed_signup_1\">\n<form id=\"mc-embedded-subscribe-form newsletter-form\" class=\"validate newsletter clearfix\" action=\"\/\/templatemonster.us7.list-manage.com\/subscribe\/post?u=3bc1e714b0df279c78546cb08&amp;id=007e27cd69\" method=\"post\" name=\"mc-embedded-subscribe-form\" novalidate=\"\">\n<div id=\"mc_embed_signup_scroll\">\n<div class=\"mc-field-group\">\n<p class=\"aligncenter\" style=\"text-align: center;\"><input id=\"mc-embedded-subscribe\" class=\"btn btn-primary btn-normal btn-inline\" name=\"subscribe\" type=\"submit\" value=\"Pobierz!\" \/><\/p>\n<\/div>\n<div id=\"mce-responses\" class=\"clear\"><\/div>\n<div style=\"position: absolute; left: -5000px;\"><input id=\"newsletter-form-email\" tabindex=\"-1\" name=\"b_3bc1e714b0df279c78546cb08_007e27cd69\" type=\"text\" value=\"\" \/><\/div>\n<\/div>\n<\/form>\n<\/div>\n<hr \/>\n<div class=\"spacer\"><\/div>\n<h3 style=\"text-align: center;\">Zapomnij o swoch polach wyboru<\/h3>\n<p style=\"text-align: justify;\">Aby nasze\u00a0checkboxy\u00a0i przyciski\u00a0opcji wygl\u0105dali wspaniale, musimy je ukry\u0107 i zapomie\u0107 o nich! Stosujemy prost\u0105 regul\u0119:<\/p>\n<pre style=\"background: #fff; color: #000;\"><span style=\"font-style: italic;\"><span class=\"sumo_twilighter_highlighted twilighter-550da01a\" style=\"background-color: rgba(0, 0, 0, 0.15);\">.section<\/span><\/span> <span style=\"font-weight: bold;\"><span class=\"sumo_twilighter_highlighted twilighter-550da01a\" style=\"background-color: rgba(0, 0, 0, 0.15);\">input<\/span><\/span><span class=\"sumo_twilighter_highlighted twilighter-550da01a\" style=\"background-color: rgba(0, 0, 0, 0.15);\">[type=\"radio\"],\r\n<\/span><span style=\"font-style: italic;\"><span class=\"sumo_twilighter_highlighted twilighter-550da01a\" style=\"background-color: rgba(0, 0, 0, 0.15);\">.section<\/span><\/span> <span style=\"font-weight: bold;\"><span class=\"sumo_twilighter_highlighted twilighter-550da01a\" style=\"background-color: rgba(0, 0, 0, 0.15);\">input<\/span><\/span><span class=\"sumo_twilighter_highlighted twilighter-550da01a\" style=\"background-color: rgba(0, 0, 0, 0.15);\">[type=\"checkbox\"]{\r\n  <\/span><span style=\"color: #6d79de; font-weight: bold;\"><span class=\"sumo_twilighter_highlighted twilighter-550da01a\" style=\"background-color: rgba(0, 0, 0, 0.15);\">display<\/span><\/span><span class=\"sumo_twilighter_highlighted twilighter-550da01a\" style=\"background-color: rgba(0, 0, 0, 0.15);\">: <\/span><span style=\"color: #06960e; font-weight: bold;\"><span class=\"sumo_twilighter_highlighted twilighter-550da01a\" style=\"background-color: rgba(0, 0, 0, 0.15);\">none<\/span><\/span><span class=\"sumo_twilighter_highlighted twilighter-550da01a\" style=\"background-color: rgba(0, 0, 0, 0.15);\">;\r\n}<span class=\"sumo_twilighter_shares\" style=\"visibility: visible;\">1<\/span><\/span>\r\n<\/pre>\n<p style=\"text-align: justify;\">Ale co b\u0119dziemy robili bez nich, mo\u017cesz zapyta\u0107 Ty.\u00a0Nie martw si\u0119, <strong>zbudujemy w\u0142asne pola wyboru, z blackjackiem i<\/strong> ... c\u00f3\u017c, po prostu zacznijmy prcowa\u0107.<\/p>\n<h3 style=\"text-align: center;\">Przycisk opcji<\/h3>\n<p>Po pierwsze, nasz mark-up:<\/p>\n<pre style=\"background: #fff; color: #000;\"><span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">section<\/span> <span style=\"font-style: italic;\">id<\/span>=<span style=\"color: #036a07;\">\"first\"<\/span> <span style=\"font-style: italic;\">class<\/span>=<span style=\"color: #036a07;\">\"section\"<\/span>&gt;<\/span>\r\n    <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">div<\/span> <span style=\"font-style: italic;\">class<\/span>=<span style=\"color: #036a07;\">\"container\"<\/span>&gt;<\/span>\r\n      <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">input<\/span> <span style=\"font-style: italic;\">type<\/span>=<span style=\"color: #036a07;\">\"radio\"<\/span> <span style=\"font-style: italic;\">name<\/span>=<span style=\"color: #036a07;\">\"group1\"<\/span> <span style=\"font-style: italic;\">id<\/span>=<span style=\"color: #036a07;\">\"radio-1\"<\/span>&gt;<\/span>\r\n      <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">label<\/span> <span style=\"font-style: italic;\">for<\/span>=<span style=\"color: #036a07;\">\"radio-1\"<\/span>&gt;<\/span><span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">span<\/span> <span style=\"font-style: italic;\">class<\/span>=<span style=\"color: #036a07;\">\"radio\"<\/span>&gt;<\/span>Coffee<span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">span<\/span>&gt;<\/span><span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">label<\/span>&gt;<\/span>\r\n    <span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">div<\/span>&gt;<\/span>\r\n    <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">div<\/span> <span style=\"font-style: italic;\">class<\/span>=<span style=\"color: #036a07;\">\"container\"<\/span>&gt;<\/span>\r\n      <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">input<\/span> <span style=\"font-style: italic;\">type<\/span>=<span style=\"color: #036a07;\">\"radio\"<\/span> <span style=\"font-style: italic;\">name<\/span>=<span style=\"color: #036a07;\">\"group1\"<\/span> <span style=\"font-style: italic;\">id<\/span>=<span style=\"color: #036a07;\">\"radio-2\"<\/span>&gt;<\/span>\r\n      <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">label<\/span> <span style=\"font-style: italic;\">for<\/span>=<span style=\"color: #036a07;\">\"radio-2\"<\/span>&gt;<\/span><span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">span<\/span> <span style=\"font-style: italic;\">class<\/span>=<span style=\"color: #036a07;\">\"radio\"<\/span>&gt;<\/span>Tea<span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">span<\/span>&gt;<\/span><span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">label<\/span>&gt;<\/span>\r\n    <span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">div<\/span>&gt;<\/span>\r\n    <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">div<\/span> <span style=\"font-style: italic;\">class<\/span>=<span style=\"color: #036a07;\">\"container\"<\/span>&gt;<\/span>\r\n      <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">input<\/span> <span style=\"font-style: italic;\">type<\/span>=<span style=\"color: #036a07;\">\"radio\"<\/span> <span style=\"font-style: italic;\">name<\/span>=<span style=\"color: #036a07;\">\"group1\"<\/span> <span style=\"font-style: italic;\">id<\/span>=<span style=\"color: #036a07;\">\"radio-3\"<\/span>&gt;<\/span>\r\n      <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">label<\/span> <span style=\"font-style: italic;\">for<\/span>=<span style=\"color: #036a07;\">\"radio-3\"<\/span>&gt;<\/span><span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">span<\/span> <span style=\"font-style: italic;\">class<\/span>=<span style=\"color: #036a07;\">\"radio\"<\/span>&gt;<\/span>Cappuccino<span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">span<\/span>&gt;<\/span><span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">label<\/span>&gt;<\/span>\r\n    <span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">div<\/span>&gt;<\/span>\r\n<span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">section<\/span>&gt;<\/span>\r\n<\/pre>\n<p style=\"text-align: justify;\">Mamy sekcj\u0119,\u00a0do kt\u00f3rej dodamy trzy przyciski opcji. W tym\u00a0tutorial\u00a0om\u00f3wimy\u00a0tworzenie p\u00f3l wyboru. Ka\u017cdy input\u00a0jest dodany\u00a0do elementu div z klas\u0105 pojemnika. Ka\u017cdy input ma r\u00f3wnie\u017c etykiet\u0119 ze znacznikiem span.<\/p>\n<p style=\"text-align: center;\"><strong>Wa\u017cne!<\/strong><\/p>\n<p style=\"text-align: justify;\">Poniewa\u017c ukryli\u015bmy pola wyboru i opcji, jedynym sposobem, aby\u015bmy mogli uzyska\u0107 do nich dost\u0119p\u00a0jest tag etykiety. Aby poprawnie dzia\u0142a\u0142, tag etykiety musi zawiera\u0107 atrybut\u00a0\u00a0<code style=\"display: inline;\">for<\/code>\u00a0z identyfikatorem odpowiedniego wej\u015bcia. Je\u015bli dane wej\u015bciowe maj\u0105 ID\u00a0<code style=\"display: inline;\">radio-1<\/code>, wtedy dla artybutu\u00a0<code style=\"display: inline;\">for<\/code>\u00a0identyfikator musi by\u0107 r\u00f3wnie\u017c\u00a0<code style=\"display: inline;\">radio-1<\/code>.<\/p>\n<p style=\"text-align: justify;\">By\u0107 mo\u017ce zastanawiasz si\u0119, dlaczego zawin\u0105\u0142am tekst wewn\u0105trz ka\u017cdej etykiety w znacznik span:<\/p>\n<pre style=\"background: #fff; color: #000;\"><span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">div<\/span> <span style=\"font-style: italic;\">class<\/span>=<span style=\"color: #036a07;\">\"container\"<\/span>&gt;<\/span>\r\n      <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">input<\/span> <span style=\"font-style: italic;\">type<\/span>=<span style=\"color: #036a07;\">\"radio\"<\/span> <span style=\"font-style: italic;\">name<\/span>=<span style=\"color: #036a07;\">\"group1\"<\/span> <span style=\"font-style: italic;\">id<\/span>=<span style=\"color: #036a07;\">\"radio-1\"<\/span>&gt;<\/span>\r\n      <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">label<\/span> <span style=\"font-style: italic;\">for<\/span>=<span style=\"color: #036a07;\">\"radio-1\"<\/span>&gt;<\/span><span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">span<\/span> <span style=\"font-style: italic;\">class<\/span>=<span style=\"color: #036a07;\">\"radio\"<\/span>&gt;<\/span>Coffee<span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">span<\/span>&gt;<\/span><span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">label<\/span>&gt;<\/span>\r\n<span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">div<\/span>&gt;<\/span>\r\n<\/pre>\n<p style=\"text-align: justify;\">Poniewa\u017c zamierzamy stylizowa\u0107 przyciski\u00a0opcji za pomoc\u0105 pseudo element\u00f3w\u00a0<code style=\"display: inline;\">::before<\/code>\u00a0i\u00a0<code style=\"display: inline;\">::after<\/code>, potrzebujemy elementu nadrz\u0119dnego, na podstawie kt\u00f3rego mo\u017cna je ustawi\u0107. W tym przypadku b\u0119dzie to nasza etykieta:<\/p>\n<pre style=\"background: #fff; color: #000;\"><span style=\"font-style: italic;\">.container<\/span> <span style=\"font-weight: bold;\">label<\/span> {\r\n  <span style=\"color: #6d79de; font-weight: bold;\">position<\/span>: <span style=\"color: #06960e; font-weight: bold;\">relative<\/span>;\r\n}\r\n<\/pre>\n<p style=\"text-align: justify;\">Oto zestaw styl\u00f3w, kt\u00f3ry jest wsp\u00f3lny dla p\u00f3l wyboru i przycisk\u00f3w opcji:<\/p>\n<pre style=\"background: #fff; color: #000;\"><span style=\"font-style: italic;\">.container<\/span> <span style=\"font-weight: bold;\">span<\/span><span style=\"font-style: italic;\">::before<\/span>,\r\n<span style=\"font-style: italic;\">.container<\/span> <span style=\"font-weight: bold;\">span<\/span><span style=\"font-style: italic;\">::after<\/span> {\r\n  <span style=\"color: #6d79de; font-weight: bold;\">content<\/span>: <span style=\"color: #036a07;\">''<\/span>;\r\n  <span style=\"color: #6d79de; font-weight: bold;\">position<\/span>: <span style=\"color: #06960e; font-weight: bold;\">absolute<\/span>;\r\n  <span style=\"color: #6d79de; font-weight: bold;\">top<\/span>: <span style=\"color: #0000cd;\">0<\/span>;\r\n  <span style=\"color: #6d79de; font-weight: bold;\">bottom<\/span>: <span style=\"color: #0000cd;\">0<\/span>;\r\n  <span style=\"color: #6d79de; font-weight: bold;\">margin<\/span>: <span style=\"color: #06960e; font-weight: bold;\">auto<\/span>;\r\n}\r\n<\/pre>\n<p style=\"text-align: justify;\">G\u00f3rne i dolne w\u0142a\u015bciwo\u015bci ustawione na zero i po\u0142\u0105czone z\u00a0<code style=\"display: inline;\">margin: auto;\u00a0<\/code>co pozwala naszym elementom mie\u0107 wy\u015brodkowane poziome po\u0142o\u017cenie.<\/p>\n<p style=\"text-align: justify;\">Oto jak wygl\u0105daj\u0105 pozosta\u0142e style:<\/p>\n<pre style=\"background: #fff; color: #000;\"><span style=\"font-style: italic;\">.container<\/span> <span style=\"font-weight: bold;\">span<\/span><span style=\"font-style: italic;\">.radio<\/span><span style=\"font-style: italic;\">:hover<\/span> {\r\n  <span style=\"color: #6d79de; font-weight: bold;\"><span class=\"sumo_twilighter_highlighted twilighter-7f46baad\" style=\"background-color: rgba(0, 0, 0, 0.15);\">cursor<\/span><\/span><span class=\"sumo_twilighter_highlighted twilighter-7f46baad\" style=\"background-color: rgba(0, 0, 0, 0.15);\">: <\/span><span style=\"color: #06960e; font-weight: bold;\"><span class=\"sumo_twilighter_highlighted twilighter-7f46baad\" style=\"background-color: rgba(0, 0, 0, 0.15);\">pointer<\/span><\/span><span class=\"sumo_twilighter_highlighted twilighter-7f46baad\" style=\"background-color: rgba(0, 0, 0, 0.15);\">;<span class=\"sumo_twilighter_shares\" style=\"visibility: visible;\">1<\/span><\/span>\r\n}\r\n<span style=\"font-style: italic;\">.container<\/span> <span style=\"font-weight: bold;\">span<\/span><span style=\"font-style: italic;\">.radio<\/span><span style=\"font-style: italic;\">::before<\/span> {\r\n  <span style=\"color: #6d79de; font-weight: bold;\">left<\/span>: <span style=\"color: #0000cd;\">-52<span style=\"color: #00f; font-weight: bold;\">px<\/span><\/span>;\r\n  <span style=\"color: #6d79de; font-weight: bold;\">width<\/span>: <span style=\"color: #0000cd;\">45<span style=\"color: #00f; font-weight: bold;\">px<\/span><\/span>;\r\n  <span style=\"color: #6d79de; font-weight: bold;\">height<\/span>: <span style=\"color: #0000cd;\">25<span style=\"color: #00f; font-weight: bold;\">px<\/span><\/span>;\r\n  <span style=\"color: #6d79de; font-weight: bold;\">background-color<\/span>: <span style=\"color: #c5060b; font-weight: bold;\">#A8AAC1<\/span>;\r\n  <span style=\"color: #6d79de; font-weight: bold;\">border-radius<\/span>: <span style=\"color: #0000cd;\">50<span style=\"color: #00f; font-weight: bold;\">px<\/span><\/span>;\r\n}\r\n<span style=\"font-style: italic;\">.container<\/span> <span style=\"font-weight: bold;\">span<\/span><span style=\"font-style: italic;\">.radio<\/span><span style=\"font-style: italic;\">::after<\/span> {\r\n  <span style=\"color: #6d79de; font-weight: bold;\">left<\/span>: <span style=\"color: #0000cd;\">-49<span style=\"color: #00f; font-weight: bold;\">px<\/span><\/span>;\r\n  <span style=\"color: #6d79de; font-weight: bold;\">width<\/span>: <span style=\"color: #0000cd;\">17<span style=\"color: #00f; font-weight: bold;\">px<\/span><\/span>;\r\n  <span style=\"color: #6d79de; font-weight: bold;\">height<\/span>: <span style=\"color: #0000cd;\">17<span style=\"color: #00f; font-weight: bold;\">px<\/span><\/span>;\r\n  <span style=\"color: #6d79de; font-weight: bold;\">border-radius<\/span>: <span style=\"color: #0000cd;\">10<span style=\"color: #00f; font-weight: bold;\">px<\/span><\/span>;\r\n  <span style=\"color: #6d79de; font-weight: bold;\">background-color<\/span>: <span style=\"color: #c5060b; font-weight: bold;\">#6C788A<\/span>;\r\n  transition: <span style=\"color: #06960e; font-weight: bold;\">left<\/span> <span style=\"color: #0000cd;\">.25<span style=\"color: #00f; font-weight: bold;\">s<\/span><\/span>, background-color <span style=\"color: #0000cd;\">.25<span style=\"color: #00f; font-weight: bold;\">s<\/span><\/span>;\r\n}\r\n<span style=\"font-weight: bold;\"><span class=\"sumo_twilighter_highlighted twilighter-49e4fb7e\" style=\"background-color: rgba(0, 0, 0, 0.15);\">input<\/span><\/span><span class=\"sumo_twilighter_highlighted twilighter-49e4fb7e\" style=\"background-color: rgba(0, 0, 0, 0.15);\">[type=\"radio\"]<\/span><span style=\"font-style: italic;\"><span class=\"sumo_twilighter_highlighted twilighter-49e4fb7e\" style=\"background-color: rgba(0, 0, 0, 0.15);\">:checked<\/span><\/span><span class=\"sumo_twilighter_highlighted twilighter-49e4fb7e\" style=\"background-color: rgba(0, 0, 0, 0.15);\"> + <\/span><span style=\"font-weight: bold;\"><span class=\"sumo_twilighter_highlighted twilighter-49e4fb7e\" style=\"background-color: rgba(0, 0, 0, 0.15);\">label<\/span><\/span> <span style=\"font-weight: bold;\"><span class=\"sumo_twilighter_highlighted twilighter-49e4fb7e\" style=\"background-color: rgba(0, 0, 0, 0.15);\">span<\/span><\/span><span style=\"font-style: italic;\"><span class=\"sumo_twilighter_highlighted twilighter-49e4fb7e\" style=\"background-color: rgba(0, 0, 0, 0.15);\">.radio<\/span><\/span><span style=\"font-style: italic;\"><span class=\"sumo_twilighter_highlighted twilighter-49e4fb7e\" style=\"background-color: rgba(0, 0, 0, 0.15);\">::after<\/span><\/span><span class=\"sumo_twilighter_highlighted twilighter-49e4fb7e\" style=\"background-color: rgba(0, 0, 0, 0.15);\"> {\r\n  <\/span><span style=\"color: #6d79de; font-weight: bold;\"><span class=\"sumo_twilighter_highlighted twilighter-49e4fb7e\" style=\"background-color: rgba(0, 0, 0, 0.15);\">left<\/span><\/span><span class=\"sumo_twilighter_highlighted twilighter-49e4fb7e\" style=\"background-color: rgba(0, 0, 0, 0.15);\">: <\/span><span style=\"color: #0000cd;\"><span class=\"sumo_twilighter_highlighted twilighter-49e4fb7e\" style=\"background-color: rgba(0, 0, 0, 0.15);\">-27<\/span><span style=\"color: #00f; font-weight: bold;\"><span class=\"sumo_twilighter_highlighted twilighter-49e4fb7e\" style=\"background-color: rgba(0, 0, 0, 0.15);\">px<\/span><\/span><\/span><span class=\"sumo_twilighter_highlighted twilighter-49e4fb7e\" style=\"background-color: rgba(0, 0, 0, 0.15);\">;\r\n  <\/span><span style=\"color: #6d79de; font-weight: bold;\"><span class=\"sumo_twilighter_highlighted twilighter-49e4fb7e\" style=\"background-color: rgba(0, 0, 0, 0.15);\">background-color<\/span><\/span><span class=\"sumo_twilighter_highlighted twilighter-49e4fb7e\" style=\"background-color: rgba(0, 0, 0, 0.15);\">: <\/span><span style=\"color: #c5060b; font-weight: bold;\"><span class=\"sumo_twilighter_highlighted twilighter-49e4fb7e\" style=\"background-color: rgba(0, 0, 0, 0.15);\">#EBFF43<\/span><\/span><span class=\"sumo_twilighter_highlighted twilighter-49e4fb7e\" style=\"background-color: rgba(0, 0, 0, 0.15);\">;\r\n}<span class=\"sumo_twilighter_shares\" style=\"visibility: visible;\">2<\/span><\/span>\r\n<\/pre>\n<p style=\"text-align: justify;\">Najwa\u017cniejsz\u0105 cz\u0119\u015bci\u0105 jest ostatni zestaw regu\u0142, kt\u00f3ry\u00a0odpowiada za prze\u0142\u0105czenie. Pseudo klasa\u00a0<code style=\"display: inline;\">:checked<\/code> pozwala nam wprowadza\u0107 zmiany\u00a0do odznaczonych element\u00f3w. Za pomoc\u0105 selektora \"+\" mo\u017cemy wybra\u0107 nast\u0119pny element i\u00a0wybra\u0107\u00a0<code style=\"display: inline;\">span.radio<\/code>, gdzie stosujemy nowe\u00a0regu\u0142y do\u00a0pseudo elementa\u00a0<code style=\"display: inline;\">::after<\/code>. W tym przypadku zmieniamy pozycj\u0119 poziom\u0105 i kolor.<\/p>\n<p style=\"text-align: justify;\">Aby prze\u0142\u0105czenie by\u0142o p\u0142ynne, przypisujemy przej\u015bcie o warto\u015bci 0,25 sekundy do lewej w\u0142a\u015bciwo\u015bci i koloru t\u0142a. Teraz, gdy klikamy przycisk pola wyboru, elementy prze\u0142\u0105czaj\u0105 si\u0119\u00a0p\u0142ynne,\u00a0a nie\u00a0szybko skacz\u0105.<\/p>\n<h3 style=\"text-align: center;\">Pola wyboru (checkboxy)<\/h3>\n<p style=\"text-align: justify;\">Je\u015bli chcesz stworzy\u0107 niestandardowe pola wyboru, metoda jest taka sama. Sp\u00f3jrz na style:<\/p>\n<pre style=\"background: #fff; color: #000;\"><span style=\"font-style: italic;\">.container<\/span> <span style=\"font-weight: bold;\">span<\/span><span style=\"font-style: italic;\">.checkbox<\/span><span style=\"font-style: italic;\">::before<\/span> {\r\n  <span style=\"color: #6d79de; font-weight: bold;\">width<\/span>: <span style=\"color: #0000cd;\">27<span style=\"color: #00f; font-weight: bold;\">px<\/span><\/span>;\r\n  <span style=\"color: #6d79de; font-weight: bold;\">height<\/span>: <span style=\"color: #0000cd;\">27<span style=\"color: #00f; font-weight: bold;\">px<\/span><\/span>;\r\n  <span style=\"color: #6d79de; font-weight: bold;\">background-color<\/span>: <span style=\"color: #c5060b; font-weight: bold;\">#fff<\/span>;\r\n  <span style=\"color: #6d79de; font-weight: bold;\">left<\/span>: <span style=\"color: #0000cd;\">-35<span style=\"color: #00f; font-weight: bold;\">px<\/span><\/span>;\r\n  box-sizing: border-box;\r\n  <span style=\"color: #6d79de; font-weight: bold;\">border<\/span>: <span style=\"color: #0000cd;\">3<span style=\"color: #00f; font-weight: bold;\">px<\/span><\/span> <span style=\"color: #06960e; font-weight: bold;\">solid<\/span> <span style=\"color: #06960e; font-weight: bold;\">transparent<\/span>;\r\n  transition: border-color <span style=\"color: #0000cd;\">.2<span style=\"color: #00f; font-weight: bold;\">s<\/span><\/span>;\r\n}\r\n<span style=\"font-style: italic;\">.container<\/span> <span style=\"font-weight: bold;\">span<\/span><span style=\"font-style: italic;\">.checkbox<\/span><span style=\"font-style: italic;\">:hover<\/span><span style=\"font-style: italic;\">::before<\/span> {\r\n  <span style=\"color: #6d79de; font-weight: bold;\">border<\/span>: <span style=\"color: #0000cd;\">3<span style=\"color: #00f; font-weight: bold;\">px<\/span><\/span> <span style=\"color: #06960e; font-weight: bold;\">solid<\/span> <span style=\"color: #c5060b; font-weight: bold;\">#F0FF76<\/span>;\r\n}\r\n<span style=\"font-style: italic;\">.container<\/span> <span style=\"font-weight: bold;\">span<\/span><span style=\"font-style: italic;\">.checkbox<\/span><span style=\"font-style: italic;\">::after<\/span> {\r\n  <span style=\"color: #6d79de; font-weight: bold;\">content<\/span>: <span style=\"color: #036a07;\">'<span style=\"color: #26b31a;\">\\f<\/span>00c'<\/span>;\r\n  <span style=\"color: #6d79de; font-weight: bold;\">font-family<\/span>: <span style=\"color: #036a07;\">'FontAwesome'<\/span>;\r\n  <span style=\"color: #6d79de; font-weight: bold;\">left<\/span>: <span style=\"color: #0000cd;\">-31<span style=\"color: #00f; font-weight: bold;\">px<\/span><\/span>;\r\n  <span style=\"color: #6d79de; font-weight: bold;\">top<\/span>: <span style=\"color: #0000cd;\">2<span style=\"color: #00f; font-weight: bold;\">px<\/span><\/span>;\r\n  <span style=\"color: #6d79de; font-weight: bold;\">color<\/span>: <span style=\"color: #06960e; font-weight: bold;\">transparent<\/span>;\r\n  transition: color <span style=\"color: #0000cd;\">.2<span style=\"color: #00f; font-weight: bold;\">s<\/span><\/span>;\r\n}\r\n<span style=\"font-weight: bold;\">input<\/span>[type=\"checkbox\"]<span style=\"font-style: italic;\">:checked<\/span> + <span style=\"font-weight: bold;\">label<\/span> <span style=\"font-weight: bold;\">span<\/span><span style=\"font-style: italic;\">.checkbox<\/span><span style=\"font-style: italic;\">::after<\/span> {\r\n  <span style=\"color: #6d79de; font-weight: bold;\">color<\/span>: <span style=\"color: #c5060b; font-weight: bold;\">#62AFFF<\/span>;\r\n}\r\n<\/pre>\n<p style=\"text-align: justify;\">Jedyna r\u00f3\u017cnica polega na tym, \u017ce u\u017cywamy ikony z rodziny FontAwesome jako nasz\u00a0pseudo element\u00a0<code style=\"display: inline;\">::after<\/code>. Domy\u015blnie jest przezroczysty, ale gdy pole wyboru jest zaznaczone, ikona staje si\u0119 niebieska.<\/p>\n<p style=\"text-align: center;\"><strong>W dodatku<\/strong><\/p>\n<p style=\"text-align: justify;\">Je\u015bli chcesz u\u017cy\u0107 ikony FontAwesome w swoim pseudo elemencie, musisz do\u0142\u0105czy\u0107 ich\u00a0kod do w\u0142a\u015bciwo\u015bci content i okre\u015bli\u0107 w\u0142a\u015bciwo\u015b\u0107 font-family jako\u00a0<code style=\"display: inline;\">FontAwesome<\/code>. Naprzyk\u0142ad:<\/p>\n<pre style=\"background: #fff; color: #000;\">{\r\n<span style=\"color: #6d79de; font-weight: bold;\">content<\/span>: <span style=\"color: #036a07;\">'<span style=\"color: #26b31a;\">\\f<\/span>00c'<\/span>;\r\n<span style=\"color: #6d79de; font-weight: bold;\">font-family<\/span>: <span style=\"color: #036a07;\">'FontAwesome'<\/span>;\r\n}\r\n<\/pre>\n<p style=\"text-align: justify;\">Kod<code style=\"display: inline;\">f00c<\/code> jest poprzedzony uko\u015bnikiem odwrotnym, kt\u00f3ry jest wymagany do unikni\u0119cia znaku Unicode, kt\u00f3ry mo\u017cna znale\u017a\u0107 na stronie wybranej ikony:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"width: 500px; display: block;\" title=\"A FontAwesome icon page with a unicode character\" src=\"https:\/\/s.tmimgcdn.com\/blog\/wp-content\/uploads\/2016\/06\/font-awesome-icon-unicode.png?x56506\" alt=\"A FontAwesome icon page with a unicode character\" data-lazy-loaded=\"true\" \/><noscript>&lt;img class=\"aligncenter\" style=\"width: 500px;\" title=\"A FontAwesome icon page with a unicode character\" src=\"https:\/\/s.tmimgcdn.com\/blog\/wp-content\/uploads\/2016\/06\/font-awesome-icon-unicode.png?x56506\" alt=\"A FontAwesome icon page with a unicode character\" \/&gt;<\/noscript><\/p>\n<h3 style=\"text-align: center;\"><\/h3>\n<h3 style=\"text-align: center;\">Ostateczny wynik<\/h3>\n<p style=\"text-align: justify;\">Stworzyli\u015bmy w pe\u0142ni funkcjonalne i pi\u0119kne\u00a0checkboxy i przyciski opcji, kt\u00f3re mo\u017cesz\u00a0modyfikowa\u0107 i\u00a0wykorzysta\u0107 we w\u0142asnych projekt\u00f3w. Mo\u017cesz zobaczy\u0107 pe\u0142ny kod \u017ar\u00f3d\u0142owy w demo CodePen:<\/p>\n<p><iframe loading=\"lazy\" style=\"width: 100%;\" src=\"\/\/codepen.io\/matthewcain\/embed\/KMgBxp\/?height=401&amp;theme-id=0&amp;default-tab=result&amp;embed-version=2\" width=\"300\" height=\"401\" frameborder=\"no\" scrolling=\"no\" allowfullscreen=\"allowfullscreen\">See the Pen &lt;a href=\"http:\/\/codepen.io\/matthewcain\/pen\/KMgBxp\/\"&gt;Radio buttons and check boxes 2&lt;\/a&gt; by Matthew Cain (&lt;a href=\"http:\/\/codepen.io\/matthewcain\"&gt;@matthewcain&lt;\/a&gt;) on &lt;a href=\"http:\/\/codepen.io\"&gt;CodePen&lt;\/a&gt;.&lt;br \/&gt; <\/iframe><\/p>\n<hr \/>\n<p style=\"text-align: center;\">* * *<\/p>\n<p style=\"text-align: justify;\"><em>Ten artyku\u0142 zosta\u0142 przet\u0142umaczony z angielskiego. Orygina\u0142 mo\u017cna znale\u017a\u0107 tutaj:\u00a0<\/em><em><a href=\"https:\/\/www.templatemonster.com\/blog\/style-checkboxes-radio-buttons-css\/\" target=\"_blank\">How To Make Stylish Checkboxes And Radio Buttons With CSS3<\/a>.\u00a0<\/em><\/p>\n<hr \/>\n<p style=\"text-align: center;\">* * *<\/p>\n<p><strong>P.S.<\/strong> Je\u015bli spodoba\u0142 Ci\u0119 si\u0119 ten tutorial lub masz jakie\u015b pytania\u00a0- zostaw komentarz. Dzi\u0119ki!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wszyscy znamy o HTML checkboxach\u00a0i przyciskach opcji. Najbardziej frustruj\u0105ce jest to, \u017ce nie mo\u017cemy zmieni\u0107 ich wygl\u0105du. Wygl\u0105daj\u0105 inaczej, w zale\u017cno\u015bci od systemu operacyjnego i przegl\u0105darki, i nie mo\u017cemy ich stylizowa\u0107 za pomoc\u0105 CSS. Mo\u017ce to by\u0107 denerwuj\u0105ce dla wi\u0119kszo\u015bci projektant\u00f3w, kt\u00f3rzy chc\u0105 aby te elementy\u00a0wygl\u0105dali atrakcyjnie\u00a0i nie psuwali\u00a0ogolnego wygl\u0105du projektu. W tym\u00a0tutorial poka\u017c\u0119, jak [&hellip;]<\/p>\n","protected":false},"author":2098093,"featured_media":5759,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[126,23,136],"tags":[66,127,183,75],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.11 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Jak zrobi\u0107 stylowe checkboxy i przyciski opcji w CSS3<\/title>\n<meta name=\"description\" content=\"Ten tutorial poka\u017ce, jak z pomoc\u0105 CSS3 zrobi\u0107 aby checkboxy i przyciski opcji mieli atrakcyjny wygl\u0105d i nie psuwali og\u00f3lnego designu strony.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/monsterspost.com\/pl\/checkboxy-i-przyciski-opcji-w-css3\/\" \/>\n<meta property=\"og:locale\" content=\"pl_PL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Jak zrobi\u0107 stylowe checkboxy i przyciski opcji w CSS3\" \/>\n<meta property=\"og:description\" content=\"Ten tutorial poka\u017ce, jak z pomoc\u0105 CSS3 zrobi\u0107 aby checkboxy i przyciski opcji mieli atrakcyjny wygl\u0105d i nie psuwali og\u00f3lnego designu strony.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/monsterspost.com\/pl\/checkboxy-i-przyciski-opcji-w-css3\/\" \/>\n<meta property=\"og:site_name\" content=\"Polski Blog TemplateMonster\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/TemplateMonster.Poland\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-04-24T11:24:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-05-02T10:32:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/monsterspost.com\/pl\/wp-content\/uploads\/sites\/6\/2018\/04\/checkboxy-i-pola-opcji.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"900\" \/>\n\t<meta property=\"og:image:height\" content=\"538\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Katarzyna Paw\u0142owska\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@TM_Polska\" \/>\n<meta name=\"twitter:site\" content=\"@TM_Polska\" \/>\n<meta name=\"twitter:label1\" content=\"Napisane przez\" \/>\n\t<meta name=\"twitter:data1\" content=\"Katarzyna Paw\u0142owska\" \/>\n\t<meta name=\"twitter:label2\" content=\"Szacowany czas czytania\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minut\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/monsterspost.com\/pl\/checkboxy-i-przyciski-opcji-w-css3\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/monsterspost.com\/pl\/checkboxy-i-przyciski-opcji-w-css3\/\"},\"author\":{\"name\":\"Katarzyna Paw\u0142owska\",\"@id\":\"https:\/\/monsterspost.com\/pl\/#\/schema\/person\/2999e876fc63abe75a8811b5d8e045d8\"},\"headline\":\"Jak zrobi\u0107 stylowe checkboxy i przyciski opcji w CSS3\",\"datePublished\":\"2018-04-24T11:24:55+00:00\",\"dateModified\":\"2018-05-02T10:32:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/monsterspost.com\/pl\/checkboxy-i-przyciski-opcji-w-css3\/\"},\"wordCount\":713,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/monsterspost.com\/pl\/#organization\"},\"keywords\":[\"Dostosowywanie\",\"Porady Guru\",\"Tutorial\",\"Tworzenie stron internetowych\"],\"articleSection\":[\"Porady Guru\",\"Tutoriale\",\"Tworzenie stron internetowych\"],\"inLanguage\":\"pl-PL\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/monsterspost.com\/pl\/checkboxy-i-przyciski-opcji-w-css3\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/monsterspost.com\/pl\/checkboxy-i-przyciski-opcji-w-css3\/\",\"url\":\"https:\/\/monsterspost.com\/pl\/checkboxy-i-przyciski-opcji-w-css3\/\",\"name\":\"Jak zrobi\u0107 stylowe checkboxy i przyciski opcji w CSS3\",\"isPartOf\":{\"@id\":\"https:\/\/monsterspost.com\/pl\/#website\"},\"datePublished\":\"2018-04-24T11:24:55+00:00\",\"dateModified\":\"2018-05-02T10:32:04+00:00\",\"description\":\"Ten tutorial poka\u017ce, jak z pomoc\u0105 CSS3 zrobi\u0107 aby checkboxy i przyciski opcji mieli atrakcyjny wygl\u0105d i nie psuwali og\u00f3lnego designu strony.\",\"breadcrumb\":{\"@id\":\"https:\/\/monsterspost.com\/pl\/checkboxy-i-przyciski-opcji-w-css3\/#breadcrumb\"},\"inLanguage\":\"pl-PL\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/monsterspost.com\/pl\/checkboxy-i-przyciski-opcji-w-css3\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/monsterspost.com\/pl\/checkboxy-i-przyciski-opcji-w-css3\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/monsterspost.com\/pl\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Jak zrobi\u0107 stylowe checkboxy i przyciski opcji w CSS3\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/monsterspost.com\/pl\/#website\",\"url\":\"https:\/\/monsterspost.com\/pl\/\",\"name\":\"Polski Blog TemplateMonster\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/monsterspost.com\/pl\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/monsterspost.com\/pl\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"pl-PL\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/monsterspost.com\/pl\/#organization\",\"name\":\"MonsterPost Polska\",\"url\":\"https:\/\/monsterspost.com\/pl\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pl-PL\",\"@id\":\"https:\/\/monsterspost.com\/pl\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/monsterspost.com\/pl\/wp-content\/uploads\/sites\/6\/2020\/03\/Logo-TM.png\",\"contentUrl\":\"https:\/\/monsterspost.com\/pl\/wp-content\/uploads\/sites\/6\/2020\/03\/Logo-TM.png\",\"width\":180,\"height\":180,\"caption\":\"MonsterPost Polska\"},\"image\":{\"@id\":\"https:\/\/monsterspost.com\/pl\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.instagram.com\/templatemonster_pl\/\",\"https:\/\/www.pinterest.com\/TM_Polska\/\",\"https:\/\/www.youtube.com\/channel\/UCjXro5nNpRT0p0YY6MGl4sQ\",\"https:\/\/www.facebook.com\/TemplateMonster.Poland\/\",\"https:\/\/twitter.com\/TM_Polska\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/monsterspost.com\/pl\/#\/schema\/person\/2999e876fc63abe75a8811b5d8e045d8\",\"name\":\"Katarzyna Paw\u0142owska\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pl-PL\",\"@id\":\"https:\/\/monsterspost.com\/pl\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5711b6355781e59c81d4da82c476bd97?s=96&d=https%3A%2F%2Fwww.templatemonster.com%2Fblog%2Fwp-content%2Fthemes%2Fredesign%2Fimages%2Fdefault_avatar.jpg&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5711b6355781e59c81d4da82c476bd97?s=96&d=https%3A%2F%2Fwww.templatemonster.com%2Fblog%2Fwp-content%2Fthemes%2Fredesign%2Fimages%2Fdefault_avatar.jpg&r=g\",\"caption\":\"Katarzyna Paw\u0142owska\"},\"description\":\"W bran\u017cy IT od 8 lat. Fan nowych technologii webowych, web designu oraz rozwi\u0105za\u0144 u\u017cytecznych i funkcjonalnych. W praktyce: marketer, DJ, blogerka. W wolnym czasie wspiera inicjatywy propaguj\u0105ce wiedz\u0119 z dziedziny SMM i rozwija swoj\u0105 mi\u0142o\u015b\u0107 do crossfitu.\",\"url\":\"https:\/\/monsterspost.com\/pl\/author\/katrina\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Jak zrobi\u0107 stylowe checkboxy i przyciski opcji w CSS3","description":"Ten tutorial poka\u017ce, jak z pomoc\u0105 CSS3 zrobi\u0107 aby checkboxy i przyciski opcji mieli atrakcyjny wygl\u0105d i nie psuwali og\u00f3lnego designu strony.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/monsterspost.com\/pl\/checkboxy-i-przyciski-opcji-w-css3\/","og_locale":"pl_PL","og_type":"article","og_title":"Jak zrobi\u0107 stylowe checkboxy i przyciski opcji w CSS3","og_description":"Ten tutorial poka\u017ce, jak z pomoc\u0105 CSS3 zrobi\u0107 aby checkboxy i przyciski opcji mieli atrakcyjny wygl\u0105d i nie psuwali og\u00f3lnego designu strony.","og_url":"https:\/\/monsterspost.com\/pl\/checkboxy-i-przyciski-opcji-w-css3\/","og_site_name":"Polski Blog TemplateMonster","article_publisher":"https:\/\/www.facebook.com\/TemplateMonster.Poland\/","article_published_time":"2018-04-24T11:24:55+00:00","article_modified_time":"2018-05-02T10:32:04+00:00","og_image":[{"width":900,"height":538,"url":"https:\/\/monsterspost.com\/pl\/wp-content\/uploads\/sites\/6\/2018\/04\/checkboxy-i-pola-opcji.jpg","type":"image\/jpeg"}],"author":"Katarzyna Paw\u0142owska","twitter_card":"summary_large_image","twitter_creator":"@TM_Polska","twitter_site":"@TM_Polska","twitter_misc":{"Napisane przez":"Katarzyna Paw\u0142owska","Szacowany czas czytania":"5 minut"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/monsterspost.com\/pl\/checkboxy-i-przyciski-opcji-w-css3\/#article","isPartOf":{"@id":"https:\/\/monsterspost.com\/pl\/checkboxy-i-przyciski-opcji-w-css3\/"},"author":{"name":"Katarzyna Paw\u0142owska","@id":"https:\/\/monsterspost.com\/pl\/#\/schema\/person\/2999e876fc63abe75a8811b5d8e045d8"},"headline":"Jak zrobi\u0107 stylowe checkboxy i przyciski opcji w CSS3","datePublished":"2018-04-24T11:24:55+00:00","dateModified":"2018-05-02T10:32:04+00:00","mainEntityOfPage":{"@id":"https:\/\/monsterspost.com\/pl\/checkboxy-i-przyciski-opcji-w-css3\/"},"wordCount":713,"commentCount":0,"publisher":{"@id":"https:\/\/monsterspost.com\/pl\/#organization"},"keywords":["Dostosowywanie","Porady Guru","Tutorial","Tworzenie stron internetowych"],"articleSection":["Porady Guru","Tutoriale","Tworzenie stron internetowych"],"inLanguage":"pl-PL","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/monsterspost.com\/pl\/checkboxy-i-przyciski-opcji-w-css3\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/monsterspost.com\/pl\/checkboxy-i-przyciski-opcji-w-css3\/","url":"https:\/\/monsterspost.com\/pl\/checkboxy-i-przyciski-opcji-w-css3\/","name":"Jak zrobi\u0107 stylowe checkboxy i przyciski opcji w CSS3","isPartOf":{"@id":"https:\/\/monsterspost.com\/pl\/#website"},"datePublished":"2018-04-24T11:24:55+00:00","dateModified":"2018-05-02T10:32:04+00:00","description":"Ten tutorial poka\u017ce, jak z pomoc\u0105 CSS3 zrobi\u0107 aby checkboxy i przyciski opcji mieli atrakcyjny wygl\u0105d i nie psuwali og\u00f3lnego designu strony.","breadcrumb":{"@id":"https:\/\/monsterspost.com\/pl\/checkboxy-i-przyciski-opcji-w-css3\/#breadcrumb"},"inLanguage":"pl-PL","potentialAction":[{"@type":"ReadAction","target":["https:\/\/monsterspost.com\/pl\/checkboxy-i-przyciski-opcji-w-css3\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/monsterspost.com\/pl\/checkboxy-i-przyciski-opcji-w-css3\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/monsterspost.com\/pl\/"},{"@type":"ListItem","position":2,"name":"Jak zrobi\u0107 stylowe checkboxy i przyciski opcji w CSS3"}]},{"@type":"WebSite","@id":"https:\/\/monsterspost.com\/pl\/#website","url":"https:\/\/monsterspost.com\/pl\/","name":"Polski Blog TemplateMonster","description":"","publisher":{"@id":"https:\/\/monsterspost.com\/pl\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/monsterspost.com\/pl\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"pl-PL"},{"@type":"Organization","@id":"https:\/\/monsterspost.com\/pl\/#organization","name":"MonsterPost Polska","url":"https:\/\/monsterspost.com\/pl\/","logo":{"@type":"ImageObject","inLanguage":"pl-PL","@id":"https:\/\/monsterspost.com\/pl\/#\/schema\/logo\/image\/","url":"https:\/\/monsterspost.com\/pl\/wp-content\/uploads\/sites\/6\/2020\/03\/Logo-TM.png","contentUrl":"https:\/\/monsterspost.com\/pl\/wp-content\/uploads\/sites\/6\/2020\/03\/Logo-TM.png","width":180,"height":180,"caption":"MonsterPost Polska"},"image":{"@id":"https:\/\/monsterspost.com\/pl\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.instagram.com\/templatemonster_pl\/","https:\/\/www.pinterest.com\/TM_Polska\/","https:\/\/www.youtube.com\/channel\/UCjXro5nNpRT0p0YY6MGl4sQ","https:\/\/www.facebook.com\/TemplateMonster.Poland\/","https:\/\/twitter.com\/TM_Polska"]},{"@type":"Person","@id":"https:\/\/monsterspost.com\/pl\/#\/schema\/person\/2999e876fc63abe75a8811b5d8e045d8","name":"Katarzyna Paw\u0142owska","image":{"@type":"ImageObject","inLanguage":"pl-PL","@id":"https:\/\/monsterspost.com\/pl\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5711b6355781e59c81d4da82c476bd97?s=96&d=https%3A%2F%2Fwww.templatemonster.com%2Fblog%2Fwp-content%2Fthemes%2Fredesign%2Fimages%2Fdefault_avatar.jpg&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5711b6355781e59c81d4da82c476bd97?s=96&d=https%3A%2F%2Fwww.templatemonster.com%2Fblog%2Fwp-content%2Fthemes%2Fredesign%2Fimages%2Fdefault_avatar.jpg&r=g","caption":"Katarzyna Paw\u0142owska"},"description":"W bran\u017cy IT od 8 lat. Fan nowych technologii webowych, web designu oraz rozwi\u0105za\u0144 u\u017cytecznych i funkcjonalnych. W praktyce: marketer, DJ, blogerka. W wolnym czasie wspiera inicjatywy propaguj\u0105ce wiedz\u0119 z dziedziny SMM i rozwija swoj\u0105 mi\u0142o\u015b\u0107 do crossfitu.","url":"https:\/\/monsterspost.com\/pl\/author\/katrina\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/monsterspost.com\/pl\/wp-json\/wp\/v2\/posts\/5755"}],"collection":[{"href":"https:\/\/monsterspost.com\/pl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/monsterspost.com\/pl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/monsterspost.com\/pl\/wp-json\/wp\/v2\/users\/2098093"}],"replies":[{"embeddable":true,"href":"https:\/\/monsterspost.com\/pl\/wp-json\/wp\/v2\/comments?post=5755"}],"version-history":[{"count":6,"href":"https:\/\/monsterspost.com\/pl\/wp-json\/wp\/v2\/posts\/5755\/revisions"}],"predecessor-version":[{"id":5806,"href":"https:\/\/monsterspost.com\/pl\/wp-json\/wp\/v2\/posts\/5755\/revisions\/5806"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/monsterspost.com\/pl\/wp-json\/wp\/v2\/media\/5759"}],"wp:attachment":[{"href":"https:\/\/monsterspost.com\/pl\/wp-json\/wp\/v2\/media?parent=5755"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/monsterspost.com\/pl\/wp-json\/wp\/v2\/categories?post=5755"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/monsterspost.com\/pl\/wp-json\/wp\/v2\/tags?post=5755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}