Unverified Commit b3cfd979 authored by Thomas Wolf's avatar Thomas Wolf Committed by GitHub
Browse files

Merge pull request #1373 from TimYagan/fix-css

Fixed critical css font-family issues
parents 81a1e124 0a4ed719
huggingface.css
/* The literal code blocks */ /* The literal code blocks */
.rst-content tt.literal, .rst-content tt.literal, .rst-content code.literal { .rst-content tt.literal, .rst-content tt.literal, .rst-content code.literal {
color: #6670FF; color: #6670FF;
...@@ -44,11 +42,11 @@ huggingface.css ...@@ -44,11 +42,11 @@ huggingface.css
/* The text items on the toc tree */ /* The text items on the toc tree */
.wy-menu-vertical a { .wy-menu-vertical a {
color: #FFFFDD; color: #FFFFDD;
font-family: Calibre-Light; font-family: Calibre-Light, sans-serif;
} }
.wy-menu-vertical header, .wy-menu-vertical p.caption{ .wy-menu-vertical header, .wy-menu-vertical p.caption{
color: white; color: white;
font-family: Calibre-Light; font-family: Calibre-Light, sans-serif;
} }
/* The color inside the selected toc tree block */ /* The color inside the selected toc tree block */
...@@ -85,7 +83,7 @@ a { ...@@ -85,7 +83,7 @@ a {
border-right: solid 2px #FB8D68; border-right: solid 2px #FB8D68;
border-left: solid 2px #FB8D68; border-left: solid 2px #FB8D68;
color: #FB8D68; color: #FB8D68;
font-family: Calibre-Light; font-family: Calibre-Light, sans-serif;
border-top: none; border-top: none;
font-style: normal !important; font-style: normal !important;
} }
...@@ -136,14 +134,14 @@ a { ...@@ -136,14 +134,14 @@ a {
/* class and method names in doc */ /* class and method names in doc */
.rst-content dl:not(.docutils) tt.descname, .rst-content dl:not(.docutils) tt.descclassname, .rst-content dl:not(.docutils) tt.descname, .rst-content dl:not(.docutils) code.descname, .rst-content dl:not(.docutils) tt.descclassname, .rst-content dl:not(.docutils) code.descclassname{ .rst-content dl:not(.docutils) tt.descname, .rst-content dl:not(.docutils) tt.descclassname, .rst-content dl:not(.docutils) tt.descname, .rst-content dl:not(.docutils) code.descname, .rst-content dl:not(.docutils) tt.descclassname, .rst-content dl:not(.docutils) code.descclassname{
font-family: Calibre; font-family: Calibre, sans-serif;
font-size: 20px !important; font-size: 20px !important;
} }
/* class name in doc*/ /* class name in doc*/
.rst-content dl:not(.docutils) tt.descname, .rst-content dl:not(.docutils) tt.descname, .rst-content dl:not(.docutils) code.descname{ .rst-content dl:not(.docutils) tt.descname, .rst-content dl:not(.docutils) tt.descname, .rst-content dl:not(.docutils) code.descname{
margin-right: 10px; margin-right: 10px;
font-family: Calibre-Medium; font-family: Calibre-Medium, sans-serif;
} }
/* Method and class parameters */ /* Method and class parameters */
...@@ -160,17 +158,17 @@ a { ...@@ -160,17 +158,17 @@ a {
/* FONTS */ /* FONTS */
body{ body{
font-family: Calibre; font-family: Calibre, sans-serif;
font-size: 16px; font-size: 16px;
} }
h1 { h1 {
font-family: Calibre-Thin; font-family: Calibre-Thin, sans-serif;
font-size: 70px; font-size: 70px;
} }
h2, .rst-content .toctree-wrapper p.caption, h3, h4, h5, h6, legend{ h2, .rst-content .toctree-wrapper p.caption, h3, h4, h5, h6, legend{
font-family: Calibre-Medium; font-family: Calibre-Medium, sans-serif;
} }
@font-face { @font-face {
...@@ -196,4 +194,3 @@ h2, .rst-content .toctree-wrapper p.caption, h3, h4, h5, h6, legend{ ...@@ -196,4 +194,3 @@ h2, .rst-content .toctree-wrapper p.caption, h3, h4, h5, h6, legend{
src: url(./Calibre-Thin.otf); src: url(./Calibre-Thin.otf);
font-weight:400; font-weight:400;
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment