Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ui refresh tab set #77

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions src/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ body {

body {
color: var(--color-text);
font-family: "Gotham", sans-serif;
font-family: "Source Sans Pro", sans-serif;
/* font-family: "Gotham", sans-serif; */
line-height: 1.5;
margin: 0;
}
Expand Down Expand Up @@ -74,8 +75,22 @@ small {
font-size: 0.8em;
}

.container {
.container,
.container-fluid {
margin: 0 auto;
max-width: var(--width-container);
padding: 0 var(--width-container-gutter);
}
/* .container-fluid {
max-width: var(--width-container-fluid);
padding: 0;
margin: 0 auto;
} */

@media screen and (min-width: 1024px) {
.container-fluid {
max-width: var(--width-container-fluid);
padding: 0;
margin: 0 auto;
}
}
49 changes: 49 additions & 0 deletions src/css/clipboard.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
.copy-code-button {
position: absolute;
background: url(../img/copy.png) no-repeat center right/contain;
width: 20px;
height: 10px;
right: 0.5rem;
top: 0.375rem;
display: none;
cursor: pointer;
}

.doc .listingblock:hover .copy-code-button {
display: block;
}

.copy-code-button:hover::after {
content: attr(data-title);
color: var("--color-brand-gray4");
font-size: 0.7em;
font-weight: var(--weight-light);
letter-spacing: 1px;
line-height: 1;
text-transform: capitalize;
position: absolute;
bottom: -30px;
right: -100%;
left: -100%;
margin: auto;
padding: 5px;
text-align: center;
box-shadow: inset 0 0 1px #bec0c1;
background: var(--color-brand-white);
border: 1px solid var(--color-brand-gray6);
box-sizing: border-box;
border-radius: 3px;
}

.copy-code-button:hover::before {
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 10px solid var(--color-brand-white);
position: absolute;
content: "";
box-shadow: inset 0 0 1px #bec0c1;
bottom: -10px;
right: 0;
}
26 changes: 26 additions & 0 deletions src/css/common.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
.fixed-top {
position: fixed;
top: 0;
right: 0;
left: 0;
z-index: 1030;
}

.btn {
border-radius: 3px;
font-family: "Source Sans Pro", sans-serif;
font-size: 1.125rem;
}

.btn-primary {
padding: 5px 15px;
border: 1px solid var(--color-brand-blue);
background: var(--color-brand-blue);
color: var(--color-brand-white);
}

@media screen and (min-width: 768px) {
.btn-primary {
padding: 8px 25px;
}
}
41 changes: 41 additions & 0 deletions src/css/component-frame.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
.component-frame {
/* rgba(87, 160, 255, 1) */
background: rgba(var(--color-blue-rgb), 0.07);
padding: 12px 30px;
display: flex;
align-items: center;
}

.frame-body {
margin-left: 10px;
}

.frame-body .title {
margin: 0;
font-size: 1.25rem;
font-weight: var(--weight-semibold);
color: var(--color-brand-gray1);
}

.frame-dropdown {
position: absolute;
display: none;
}

.frame-dropdown .frame-dropdown-list {
margin: 0;
padding: 0;
list-style: none;
}

.frame-link,
.frame-item {
font-size: 1rem;
color: var(--color-brand-gray4);
text-decoration: none;
}

.frame-link:hover,
.frame-item:hover {
text-decoration: none;
}
61 changes: 46 additions & 15 deletions src/css/doc.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@
.doc h5 > a.anchor,
.doc h6 > a.anchor {
color: var(--color-brand-red);
background-image: -webkit-linear-gradient(-45deg, var(--color-brand-purple), var(--color-brand-red) 75%);
background-image:
-webkit-linear-gradient(
-45deg,
var(--color-brand-purple),
var(--color-brand-red) 75%
);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-weight: var(--weight-normal);
Expand Down Expand Up @@ -262,7 +267,7 @@
}

.doc .admonitionblock td.icon i::before {
background: no-repeat 0/cover;
background: no-repeat 0 / cover;
content: "";
display: block;
height: 1.875rem;
Expand Down Expand Up @@ -487,9 +492,9 @@
}

.doc .exampleblock > .content {
background-color: var(--color-shade);
/* background-color: var(--color-shade); */
box-shadow: inset 0 0 1px #bec0c1;
padding: 2rem 2.25rem;
/* padding: 1rem 1.25rem; */
}

.doc .exampleblock > .content > :first-child {
Expand All @@ -504,8 +509,8 @@

.doc pre:not(.highlight),
.doc pre.highlight code {
background-color: #151514;
color: #f8f8f2;
/* background-color: #151514; */
color: var(--color-brand-gray1);
font-weight: var(--weight-normal); /* needed to override third-party styles */
padding: 0.625rem;
white-space: pre-wrap;
Expand All @@ -515,6 +520,9 @@
word-wrap: normal;
overflow-x: auto;
*/
background: rgba(87, 160, 255, 0.0555);
border: 1px solid #eaebf1;
border-radius: 3px;
}

/* NOTE assume pre.highlight contains code[data-lang] */
Expand All @@ -524,7 +532,7 @@

.doc .listingblock code[data-lang]::before {
content: attr(data-lang);
color: #f8f8f2;
color: var("--color-brand-gray4") /*#f8f8f2*/;
display: none;
font-size: 0.75em;
font-weight: var(--weight-light);
Expand All @@ -533,7 +541,7 @@
text-transform: uppercase;
position: absolute;
top: 0.375rem;
right: 0.5rem;
right: 1.5rem;
}

.doc .listingblock:hover code[data-lang]::before {
Expand Down Expand Up @@ -724,15 +732,16 @@

.doc .tabs li {
align-items: center;
border: 1px solid var(--color-border);
border: 1px solid var(--color-brand-white);
border-top: 3px solid var(--color-brand-white);
border-bottom: 0;
cursor: pointer;
display: flex;
font-weight: var(--weight-bold);
font-weight: var(--weight-semibold);
height: 2.5rem;
line-height: 1;
margin-right: 0.25rem;
padding: 0 1.5rem;
/* margin-right: 0.25rem; */
padding: 0 1rem;
position: relative;
}

Expand All @@ -742,8 +751,15 @@

.doc .tabset.is-loading .tabs li:not(:first-child),
.doc .tabset:not(.is-loading) .tabs li:not(.is-active) {
background-color: var(--color-text);
color: var(--color-brand-white);
background-color: var(--color-brand-white);
color: var(--color-brand-gray4);
}

.doc .tabs li.is-active {
color: var(--color-active-tabset);
border-radius: 3px 3px 0 0;
border-color: var(--color-brand-gray6);
border-top: 3px solid var(--color-active-tabset);
}

.doc .tabset.is-loading .tabs li:first-child::after,
Expand All @@ -758,9 +774,24 @@
right: 0;
}

.doc .tabs li.is-active::before {
background-color: var(--color-active-tabset);
content: "";
display: block;
height: 3px;
position: absolute;
bottom: -2px;
left: 0;
right: 0;
width: 40px;
z-index: 1;
margin: auto;
}

.doc .tabset > .content {
border: 1px solid var(--color-border);
border: 1px solid var(--color-brand-gray6);
padding: 1.25rem;
border-radius: 3px;
}

.doc .tabset.is-loading .tab-pane:not(:first-child),
Expand Down
Loading