{"id":373849,"date":"2024-05-21T05:45:49","date_gmt":"2024-05-21T05:45:49","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=373849"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=373849","title":{"rendered":"<span>HTML \u0438 CSS \u2014 \u044f\u0437\u044b\u043a\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/a89\/4ae\/a10\/a894aea10d6fac145782cf99cd123bb0.jpg\" width=\"550\" height=\"251\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a89\/4ae\/a10\/a894aea10d6fac145782cf99cd123bb0.jpg\" data-blurred=\"true\"\/><\/figure>\n<p>\u0414\u043e\u043a\u0430\u0437\u0430\u043d\u043e.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0430 \u0447\u0438\u0441\u0442\u043e\u043c HTML \u0438 CSS \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0433\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0430, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e, \u043c\u0438\u043d\u0438-\u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440\u0430, \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u0434\u0432\u0430 \u0447\u0438\u0441\u043b\u0430, \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435.<\/p>\n<p><a href=\"https:\/\/replit.com\/@ruslanmakarov2\/CSS-is-PL#style.css\" rel=\"noopener noreferrer nofollow\">\u041f\u0435\u0441\u043e\u0447\u043d\u0438\u0446\u0430<\/a> <\/p>\n<details class=\"spoiler\">\n<summary>HTML<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"xml\">&lt;!DOCTYPE html> &lt;html>  &lt;head>   &lt;meta charset=\"utf-8\">   &lt;meta name=\"viewport\" content=\"width=device-width\">   &lt;title>CSS-is-PL&lt;\/title>   &lt;link href=\"style.css\" rel=\"stylesheet\" type=\"text\/css\" \/> &lt;\/head>  &lt;body>   &lt;h2>Add two numbers in binary format&lt;\/h2>   &lt;div>     x:     &lt;input class=\"v1-1\" type=\"checkbox\">     &lt;input class=\"v1-2\" type=\"checkbox\">   &lt;\/div>   &lt;div>     y:     &lt;input class=\"v2-1\" type=\"checkbox\">     &lt;input class=\"v2-2\" type=\"checkbox\">   &lt;\/div>   &lt;div class=\"result\">     x + y =   &lt;\/div> &lt;\/body>  &lt;\/html><\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>CSS<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"css\">body {   margin: 1em;   --v1-1: 0;   --v1-2: 0;   --v2-1: 0;   --v2-2: 0; }  input {   margin-left: 2em; }  .v1-1::after, .v1-2::after, .v2-1::after, .v2-2::after {   margin-left: 1.5em;   content: \"0\"; }  body:has(.v1-1:checked) {   --v1-1: 3;    .v1-1::after {     content: \"1\";   } }  body:has(.v1-2:checked) {   --v1-2: 1;    .v1-2::after {     content: \"1\";   } }  body:has(.v2-1:checked) {   --v2-1: 3;    .v2-1::after {     content: \"1\";   } }  body:has(.v2-2:checked) {   --v2-2: 1;    .v2-2::after {     content: \"1\";   } }  .result {   margin-top: 1em; }  .result::after {   --v1: calc(var(--v1-1) + var(--v1-2));   --v2: calc(var(--v2-1) + var(--v2-2));   --result: calc(var(--v1) + var(--v2));   counter-reset: result var(--result);   content: counter(result); }<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<hr\/>\n<p><em>\u041d\u0430\u0448 Telegram-\u043a\u0430\u043d\u0430\u043b \u043e Vue.js \u0438 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0432 \u0446\u0435\u043b\u043e\u043c:\u00a0<\/em><a href=\"https:\/\/t.me\/vuefaq\" rel=\"noopener noreferrer nofollow\"><em>@vuefaq<\/em><\/a><\/p>\n<p><em>\u0412\u0435\u0431\u0441\u0430\u0439\u0442:\u00a0<\/em><a href=\"https:\/\/vue-faq.org\/\" rel=\"noopener noreferrer nofollow\"><em>Vue\u2011FAQ.org<\/em><\/a><em>.<\/em>  <\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/808261\/\"> https:\/\/habr.com\/ru\/articles\/808261\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><\/figure>\n<p>\u0414\u043e\u043a\u0430\u0437\u0430\u043d\u043e.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0430 \u0447\u0438\u0441\u0442\u043e\u043c HTML \u0438 CSS \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0433\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0430, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e, \u043c\u0438\u043d\u0438-\u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440\u0430, \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u0434\u0432\u0430 \u0447\u0438\u0441\u043b\u0430, \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435.<\/p>\n<p><a href=\"https:\/\/replit.com\/@ruslanmakarov2\/CSS-is-PL#style.css\" rel=\"noopener noreferrer nofollow\">\u041f\u0435\u0441\u043e\u0447\u043d\u0438\u0446\u0430<\/a> <\/p>\n<details class=\"spoiler\">\n<summary>HTML<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"xml\">&lt;!DOCTYPE html> &lt;html>  &lt;head>   &lt;meta charset=\"utf-8\">   &lt;meta name=\"viewport\" content=\"width=device-width\">   &lt;title>CSS-is-PL&lt;\/title>   &lt;link href=\"style.css\" rel=\"stylesheet\" type=\"text\/css\" \/> &lt;\/head>  &lt;body>   &lt;h2>Add two numbers in binary format&lt;\/h2>   &lt;div>     x:     &lt;input class=\"v1-1\" type=\"checkbox\">     &lt;input class=\"v1-2\" type=\"checkbox\">   &lt;\/div>   &lt;div>     y:     &lt;input class=\"v2-1\" type=\"checkbox\">     &lt;input class=\"v2-2\" type=\"checkbox\">   &lt;\/div>   &lt;div class=\"result\">     x + y =   &lt;\/div> &lt;\/body>  &lt;\/html><\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>CSS<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"css\">body {   margin: 1em;   --v1-1: 0;   --v1-2: 0;   --v2-1: 0;   --v2-2: 0; }  input {   margin-left: 2em; }  .v1-1::after, .v1-2::after, .v2-1::after, .v2-2::after {   margin-left: 1.5em;   content: \"0\"; }  body:has(.v1-1:checked) {   --v1-1: 3;    .v1-1::after {     content: \"1\";   } }  body:has(.v1-2:checked) {   --v1-2: 1;    .v1-2::after {     content: \"1\";   } }  body:has(.v2-1:checked) {   --v2-1: 3;    .v2-1::after {     content: \"1\";   } }  body:has(.v2-2:checked) {   --v2-2: 1;    .v2-2::after {     content: \"1\";   } }  .result {   margin-top: 1em; }  .result::after {   --v1: calc(var(--v1-1) + var(--v1-2));   --v2: calc(var(--v2-1) + var(--v2-2));   --result: calc(var(--v1) + var(--v2));   counter-reset: result var(--result);   content: counter(result); }<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<hr\/>\n<p><em>\u041d\u0430\u0448 Telegram-\u043a\u0430\u043d\u0430\u043b \u043e Vue.js \u0438 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0432 \u0446\u0435\u043b\u043e\u043c:\u00a0<\/em><a href=\"https:\/\/t.me\/vuefaq\" rel=\"noopener noreferrer nofollow\"><em>@vuefaq<\/em><\/a><\/p>\n<p><em>\u0412\u0435\u0431\u0441\u0430\u0439\u0442:\u00a0<\/em><a href=\"https:\/\/vue-faq.org\/\" rel=\"noopener noreferrer nofollow\"><em>Vue\u2011FAQ.org<\/em><\/a><em>.<\/em>  <\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/808261\/\"> https:\/\/habr.com\/ru\/articles\/808261\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-373849","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/373849","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=373849"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/373849\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=373849"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=373849"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=373849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}