| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424 |
- $added-color: #5ecb0e;
- $deprecated-color: #ff9a4d;
- $sidebar-width: 22%;
- $beer-height: 70px;
- .documentation-body {
- background: $grey;
- display: flex;
- .main {
- padding: 0 60px;
- height: 100vh;
- width: 100% - $sidebar-width;
- overflow: auto;
- }
- .main-demos {
- padding: 0;
- overflow: hidden;
- iframe {
- width: 100%;
- height: 100vh;
- background: $grey;
- }
- }
- .main-demo-inner {
- width: 100%;
- }
- .section-title {
- padding: 50px 0 0;
- }
- h3 {
- display: inline-block;
- font-weight: bold;
- font-size: 26px;
- }
- h4 {
- padding: 20px 0 0;
- }
- p,
- dd {
- code {
- color: #616870;
- background: #dfe5eb;
- padding: 0 5px;
- border: 1px solid #d0d9e1;
- border-radius: 2px;
- }
- }
- code.type {
- padding: 0 3px;
- color: $primary-color-dark;
- &::before {
- content: "<";
- }
- &::after {
- content: ">";
- }
- }
- .button.button-demo {
- border-color: rgba($secondary-color, 0.6);
- color: $secondary-color;
- width: auto;
- padding: 10px 30px;
- &:hover,
- &:focus {
- text-decoration: none;
- border-color: $secondary-color;
- background: $secondary-color;
- color: $white;
- }
- }
- ::-webkit-scrollbar {
- width: 17px;
- }
- ::-webkit-scrollbar-track {
- background: $grey;
- }
- ::-webkit-scrollbar-thumb {
- background: #cfd7de;
- border: 2px solid $grey;
- &:hover {
- background: #616870;
- }
- }
- }
- .header-documentation {
- margin-top: 50px;
- .documentation-logo-link {
- display: block;
- margin: 0 auto;
- width: 80%;
- max-width: 350px;
- .documentation-logo {
- width: 100%;
- }
- }
- .documentation-title {
- text-align: center;
- font-family: $panton;
- font-weight: 100;
- line-height: 1;
- @media (max-width: 1290px) {
- font-size: 2.5vw;
- }
- }
- .documentation-menu {
- text-align: center;
- margin-top: 40px;
- background: $secondary-color;
- a {
- display: inline-block;
- padding: 20px 5px;
- &:hover,
- &:focus {
- text-decoration: underline;
- }
- }
- }
- }
- .sidebar {
- position: relative;
- top: 0;
- left: 0;
- height: 100vh;
- color: $white;
- background: $primary-color linear-gradient(to bottom left, $primary-color, $primary-color-light);
- width: $sidebar-width;
- ::-webkit-scrollbar-track {
- background: transparent;
- }
- ::-webkit-scrollbar-thumb {
- background: $primary-color-light;
- border: 1px solid $primary-color-light;
- border-right: none;
- &:hover {
- background: $white;
- }
- }
- &::after {
- content: "";
- display: block;
- position: absolute;
- left: 0;
- bottom: $beer-height;
- width: calc(100% - 17px);
- height: 100px;
- background: linear-gradient(to bottom, transparent, $primary-color-light);
- pointer-events: none;
- }
- .sidebar-inner {
- overflow: auto;
- overflow-y: scroll;
- overflow-x: hidden;
- height: calc(100vh - #{$beer-height});
- padding-bottom: 100px;
- }
- ul,
- li {
- padding: 0;
- margin: 0;
- list-style: none;
- }
- a {
- text-decoration: none;
- color: $white;
- transition: color $transition-duration, text-indent $transition-duration;
- }
- .documentation-summary {
- position: relative;
- font-size: 18px;
- > ul {
- max-width: 266px;
- margin: 0 auto;
- padding: 0 15px;
- a,
- .documentation-summary-title {
- display: block;
- height: 30px;
- line-height: 30px;
- text-overflow: ellipsis;
- width: 100%;
- white-space: nowrap;
- overflow: hidden;
- }
- > li {
- margin-top: 30px;
- &:first-child {
- margin-top: 50px;
- }
- > a,
- .documentation-summary-title {
- font-weight: 600;
- text-transform: uppercase;
- margin-bottom: 5px;
- }
- > a {
- &:hover,
- &:focus {
- color: $primary-color-dark;
- }
- }
- ul li a {
- &:hover,
- &:focus {
- color: $primary-color-dark;
- text-indent: 10px;
- }
- }
- }
- }
- }
- .documentation-sidebar-beer {
- position: fixed;
- width: $sidebar-width;
- bottom: 0;
- left: 0;
- background: $white;
- height: $beer-height;
- a {
- position: relative;
- display: block;
- height: $beer-height;
- width: 100%;
- text-align: left;
- padding: 10px 17px 0 0;
- background: none;
- border: none;
- border-top: 1px solid #e9eef3;
- color: #9ca4ac;
- &:focus {
- outline: none;
- }
- .beer-icon {
- display: none;
- }
- @media (min-width: 1700px) {
- .beer-icon {
- position: absolute;
- display: block;
- width: calc((100% - 236px) / 2);
- height: 50px;
- margin: 0 auto;
- }
- }
- .beer-label {
- position: relative;
- display: block;
- max-width: 236px;
- margin: 0 auto;
- }
- @media (max-width: 1290px) {
- .beer-label {
- font-size: 14px;
- margin: 0;
- padding: 7px 0 0 15px;
- width: 200px;
- }
- }
- }
- }
- }
- .added-feature,
- .deprecated-feature {
- display: inline-block;
- padding: 3px 13px;
- margin: 0;
- color: $white;
- font-size: 14px;
- border-radius: 50px;
- transform: translateX(10px) translateY(-4px);
- }
- .added-feature {
- background: $added-color;
- }
- .deprecated-feature {
- background: $deprecated-color;
- }
- .deprecated-info {
- padding: 7px 15px;
- border-radius: 2px;
- background: #f2dfc1;
- border: 1px solid $deprecated-color;
- a {
- color: $deprecated-color;
- }
- }
- .version-tag {
- display: inline-block;
- padding: 2px 6px;
- background: $added-color;
- color: #FFF;
- font-size: 12px;
- font-style: normal;
- border-radius: 20px;
- }
- .note .version-tag {
- transform: translateY(-1px);
- }
- .feature {
- position: relative;
- padding-bottom: 60px;
- &::after {
- content: " ";
- display: block;
- position: absolute;
- bottom: 0;
- left: 50%;
- width: 40%;
- height: 0;
- border-bottom: 1px solid $primary-color-light;
- transform: translateX(-50%);
- }
- h3 {
- position: relative;
- padding-top: 50px;
- margin-left: -15px;
- padding-left: 15px;
- }
- h4 {
- position: relative;
- font-size: 20px;
- font-weight: bold;
- }
- .title-link {
- display: block;
- position: absolute;
- top: 53px;
- left: -45px;
- height: 30px;
- width: 30px;
- opacity: 0;
- text-align: center;
- text-decoration: none;
- background: $primary-color;
- border-radius: 50%;
- transition: opacity $transition-duration, background $transition-duration, color $transition-duration;
- &:hover,
- &:focus {
- background: $white;
- text-decoration: none;
- svg {
- fill: $primary-color;
- }
- }
- svg {
- fill: $white;
- width: 70%;
- height: 100%;
- }
- }
- &:hover {
- .title-link {
- opacity: 1;
- }
- }
- }
- dl {
- dt {
- display: inline-block;
- color: #616870;
- background: #dfe5eb;
- padding: 0 5px;
- border: 1px solid #d0d9e1;
- border-radius: 2px;
- }
- dd {
- padding: 5px 0 15px;
- margin-left: 15px;
- }
- }
|