This is an automated email from the ASF dual-hosted git repository. gongchao pushed a commit to branch clean-home in repository https://gitbox.apache.org/repos/asf/hertzbeat.git
commit ba8d6a0b8cb056e2ca481fdd8d4c2bb2dfc2bd1a Author: tomsun28 <[email protected]> AuthorDate: Sat May 4 16:59:03 2024 +0800 clean up unused home code --- home/src/css/custom.css | 114 +-------------------------------------- home/src/css/docsearch.css | 4 +- home/src/css/hero.css | 7 --- home/src/css/navbar.css | 26 --------- home/src/pages/styles.module.css | 22 -------- home/src/pages/team/index.css | 1 + 6 files changed, 5 insertions(+), 169 deletions(-) diff --git a/home/src/css/custom.css b/home/src/css/custom.css index c311b0ab1..4574c4faa 100644 --- a/home/src/css/custom.css +++ b/home/src/css/custom.css @@ -25,12 +25,6 @@ --ifm-table-border-color: #efefef; --ifm-navbar-height: 85px; --ifm-button-border-width: 0; - - --wdio-spacing-vertical: 60px; - --wdio-link-background-color: #eee0d7; - --wdio-link-color: #000; - --wdio-section-background-color: #fff; - --wdio-dark-section-background-color: #b78af8; } h1, h2, h3 { @@ -50,24 +44,10 @@ h3 { } html[data-theme=dark] { - --wdio-link-background-color: #4e1e02; - --wdio-link-color: #fff; --ifm-menu-color: #fff; - --ifm-table-border-color: var(--ifm-color-emphasis-300); --ifm-toc-link-color: #fff; } -@media (max-width: 996px) { - :root { - --wdio-spacing-vertical: 20px; - } -} - -@media (max-width: 500px) { - :root { - --wdio-spacing-vertical: 10px; - } -} @media only screen and (-webkit-min-device-pixel-ratio: 1) { :root { @@ -176,16 +156,9 @@ html[data-theme=dark] footer{ } -html[data-theme=dark] { - --wdio-section-background-color: var(--ifm-footer-background-color); - --wdio-dark-section-background-color: #18191A; -} - .docusaurus-highlight-code-line { background-color: #484d5b; display: block; - margin: 0 calc(-1 * var(--ifm-pre-padding)); - padding: 0 var(--ifm-pre-padding); } .features_src-pages- h3 { @@ -197,28 +170,6 @@ html[data-theme=dark] { margin-bottom: 20px; } -.twitterProfile, -.githubProfile { - margin-left: 10px; -} -.twitterProfile svg, -.githubProfile svg { - width: 23px; - color: #1B98E4; - transform: translate(0, 3px); -} - -.githubProfile:before { - content: ''; - width: 27px; - height: 25px; - background: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.1 [...] -} - -html[data-theme="dark"] .githubProfile:before { - background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.13 [...] - no-repeat; -} img[alt^=Support] { width: 20px; @@ -228,8 +179,6 @@ img[alt^=Support] { .main-wrapper .markdown p > a, .main-wrapper .container p > a { - background-color: var(--wdio-link-background-color); - color: var(--wdio-link-color); text-decoration: none!important; border-bottom: 1px solid var(--ifm-color-primary); padding: 2px; @@ -255,22 +204,11 @@ article thead { .prism-code > div { background-color: var(--ifm-table-border-color)!important; } -.darkSection .prism-code > div { - background-color: var(--wdio-section-background-color)!important; -} + html[data-theme=dark] .prism-code > div { background-color: #282B36!important; } -div[class^='codeBlockTitle'] { - background-color: var(--ifm-table-border-color)!important; - border-bottom: var(--ifm-color-emphasis-300) 1px solid; -} -html[data-theme=dark] div[class^='codeBlockTitle'] { - background-color: #282B36!important; -} -div[role="tabpanel"] .prism-code { - border-top-left-radius: 0; -} + .tabs__item:hover { border-bottom-left-radius: 0; } @@ -281,51 +219,3 @@ div[role="tabpanel"] .prism-code { a code { background-color: transparent; } - -.highlightSection .token-line { - font-size: 90%!important -} - -.highlightSection .prism-code:before { - content: ""; - width: 12px; - height: 12px; - background: #ff5f56; - display: block; - border-radius: 50%; - position: absolute; - top: 12px; - left: 12px; -} - -.highlightSection .prism-code:after { - content: ""; - width: 12px; - height: 12px; - background: #ffbd2e; - display: block; - border-radius: 50%; - position: absolute; - top: 12px; - left: 32px; -} - -.highlightSection .prism-code > div { - padding-top: calc(var(--ifm-pre-padding) + 5px); -} -.highlightSection .prism-code > div:before { - content: ""; - display: block; - /* width: 12px; */ - height: 12px; - background: #27C941; - border-radius: 50%; - position: absolute; - top: 12px; - left: 52px; -} - -div[role="tabpanel"] .margin-vert--md { - margin-top: 0!important; - margin-bottom: 0!important; -} diff --git a/home/src/css/docsearch.css b/home/src/css/docsearch.css index edf0a2854..8c5d8804a 100644 --- a/home/src/css/docsearch.css +++ b/home/src/css/docsearch.css @@ -17,11 +17,11 @@ body .navbar .DocSearch-Search-Icon { width: 15px; height: 15px; - color:#999 + color: #999 } .navbar .DocSearch-Button-Key { width: 18px; height: 16px; - top: 0px; + top: 0; } diff --git a/home/src/css/hero.css b/home/src/css/hero.css index 2d5c8bc92..aca38f7ec 100644 --- a/home/src/css/hero.css +++ b/home/src/css/hero.css @@ -32,10 +32,3 @@ html[data-theme=dark] .hero--primary { font-weight: bolder; } } - -#fblike { - height: 20px; -} -#fblike, #twitter-widget-1 { - margin-right: 20px; -} diff --git a/home/src/css/navbar.css b/home/src/css/navbar.css index ccb99b5b2..d52714143 100644 --- a/home/src/css/navbar.css +++ b/home/src/css/navbar.css @@ -66,32 +66,6 @@ html[data-theme=dark] { background-color: #fff; } -.teamProfile { - margin-bottom: 20px; -} -.githubProfile { - margin-left: 15px; -} -.githubProfile:before { - content: ''; - display: inline-block; - transform: translate(0, 3px); - height: 20px; - width: 20px; -} - -.toggle_node_modules-\@docusaurus-theme-classic-lib-next-theme-Toggle- { - width: 0 -} - -body .react-toggle-track { - width: 55px; - height: 30px; -} - -body .react-toggle-track-x { - right: 15px; -} body .react-toggle-thumb { top: 4px; diff --git a/home/src/pages/styles.module.css b/home/src/pages/styles.module.css index da8136851..3ffdb29b3 100644 --- a/home/src/pages/styles.module.css +++ b/home/src/pages/styles.module.css @@ -30,28 +30,6 @@ margin: 0 5px; } -.frameworkLogos { - background-color: transparent!important; - border-bottom: 0!important; -} -.frameworkLogos img { - height: 60px; - padding: 0 10px 0 0; -} - -.reactImage { - max-width: 115%; - transform: translateX(-45px); -} - -.social { - margin-top: 20px; -} - -.social > a { - margin-left: 10px; -} - @media (max-width: 650px) { .buttons > a { margin: 10px 5px; diff --git a/home/src/pages/team/index.css b/home/src/pages/team/index.css index deb783a90..4ad0133bf 100644 --- a/home/src/pages/team/index.css +++ b/home/src/pages/team/index.css @@ -1,3 +1,4 @@ +/* Derived from https://github.com/apache/incubator-streampark-website/tree/dev/src/pages/team */ .team_page { margin-top: 50px!important; } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
