From 8847e5354ce66d04e1e23b58b864113d875fa05e Mon Sep 17 00:00:00 2001 From: lvuch Date: Wed, 5 Sep 2018 14:19:03 -0700 Subject: [PATCH] accordion, and yaml on one block --- .../installation/ha/kubernetes-rke/_index.md | 21 +++---- layouts/shortcodes/accordion.html | 6 +- src/sass/app.scss | 63 ------------------- 3 files changed, 12 insertions(+), 78 deletions(-) diff --git a/content/rancher/v2.x/en/installation/ha/kubernetes-rke/_index.md b/content/rancher/v2.x/en/installation/ha/kubernetes-rke/_index.md index 55eaadac4d6..7df25f805a9 100644 --- a/content/rancher/v2.x/en/installation/ha/kubernetes-rke/_index.md +++ b/content/rancher/v2.x/en/installation/ha/kubernetes-rke/_index.md @@ -13,18 +13,15 @@ Using the sample below create the `rancher-cluster.yml` file. Replace the IP Add ```yaml nodes: -- address: 165.227.114.63 - internal_address: 172.16.22.12 - user: ubuntu - role: [controlplane,worker,etcd] -- address: 165.227.116.167 - internal_address: 172.16.32.37 - user: ubuntu - role: [controlplane,worker,etcd] -- address: 165.227.127.226 - internal_address: 172.16.42.73 - user: ubuntu - role: [controlplane,worker,etcd] + - address: 165.227.114.63 + user: ubuntu + role: [controlplane,worker,etcd] + - address: 165.227.116.167 + user: ubuntu + role: [controlplane,worker,etcd] + - address: 165.227.127.226 + user: ubuntu + role: [controlplane,worker,etcd] ``` #### Common RKE nodes: options diff --git a/layouts/shortcodes/accordion.html b/layouts/shortcodes/accordion.html index 600dbc68d4b..0e38ce3b217 100644 --- a/layouts/shortcodes/accordion.html +++ b/layouts/shortcodes/accordion.html @@ -1,7 +1,7 @@ -
- +
+ -
+
{{ .Inner }}
diff --git a/src/sass/app.scss b/src/sass/app.scss index f55845b9e5e..a75f2eff1a6 100644 --- a/src/sass/app.scss +++ b/src/sass/app.scss @@ -62,66 +62,3 @@ display: none; visibility: hidden; } - - -//accordion -.tab { - position: relative; - margin-bottom: 1px; - width: 100%; - overflow: hidden; - border: solid $border thin; - - input { - position: absolute; - opacity: 0; - z-index: -1; - } - label { - position: relative; - display: block; - padding: $spacer-xs; - background: lighten($bg-default,4%); - border: solid 1px $border; - font-size: 2rem; - cursor: pointer; - } - - .tab-content { - display: none; - overflow: hidden; - background: #fff; - -webkit-transition: max-height .35s; - -o-transition: max-height .35s; - transition: max-height .35s; - padding: $spacer-sm; - } - - /* :checked */ - input:checked~.tab-content { - display: block; - } - /* Icon */ - label::after { - position: absolute; - right: $spacer-xs; - top: $spacer-xs; - display: block; - text-align: center; - -webkit-transition: all .35s; - -o-transition: all .35s; - transition: all .35s; - } - input[type=checkbox]+label::after { - content: "+"; - } - input[type=radio]+label::after { - content: "\25BC"; - } - input[type=checkbox]:checked+label::after { - transform: rotate(90deg); - } - input[type=radio]:checked+label::after { - transform: rotateX(180deg); - } -}