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

[Documentation] Add new styles #9908

Merged
merged 1 commit into from Nov 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/_themes/sylius_rtd_theme/layout.html
Expand Up @@ -39,6 +39,7 @@

<link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
<link rel="stylesheet" href="{{ pathto('_static/css/sylius.css' , 1) }}" type="text/css" />
<link rel="stylesheet" href="{{ pathto('_static/css/sylius-custom.css' , 1) }}" type="text/css" />

{%- block linktags %}
{%- if hasdoc('about') %}
Expand Down
181 changes: 181 additions & 0 deletions docs/_themes/sylius_rtd_theme/static/css/sylius-custom.css
@@ -0,0 +1,181 @@
/* main layout */
body {
background: #f8f8f8 !important;
}

a,
a:visited {
color: #1abb9c;
}

.wy-nav-content-wrap {
background: #fff;
}

@media (min-width: 769px) {
.wy-nav-content {
max-width: 100%;
padding: 0;
background: none;
}

div[role="main"] {
max-width: 800px;
margin: 0 auto;
padding-top: 40px;
padding-left: 20px;
padding-right: 20px;
}

.wy-breadcrumbs {
height: 80px;
padding-top: 24px;
padding-right: 20px;
border-bottom: 1px solid #ddd;
box-shadow: 0px 4px 10px 0px rgba(0,0,0,0.04);
background: #fff;
}

.wy-breadcrumbs + hr {
display: none;
}

.wy-side-nav-logo {
position: relative;
z-index: 999;
height: 80px;
border-bottom: 1px solid #ddd;
box-shadow: 0px 4px 10px 0px rgba(0,0,0,0.04);
}

footer {
padding: 40px;
}
}

/* content */
body {
color: #333;
}

h1, h2, h3, h4, h5, h6 {
color: #222;
}

h2 {
position: relative;
padding-left: 26px;
margin-top: 60px;
padding-bottom: 20px;
}

h2::after {
content: '';
position: absolute;
left: 0;
top: 0;
display: inline-block;
width: 3px;
height: 35px;
background: #1abb9c;
}

.admonition {
border-radius: 5px;
margin: 30px 0;
padding-left: 30px !important;
padding-right: 30px !important;
padding-bottom: 30px !important;
}

.admonition-title {
padding: 12px 27px !important;
border-radius: 5px 5px 0 0 !important;
margin-left: -30px !important;
margin-right: -30px !important;
margin-bottom: 25px !important;
}

.first.admonition-title::before {
margin-right: 10px;
}

div[class^='highlight'] {
margin: 30px 0;
background: #f8f8f8;
border-radius: 5px;
}

.btn {
border-radius: 99px;
background: none;
padding: 10px 20px 14px 20px;
box-shadow: none;
}

.wy-side-nav-search {
margin: 15px 0 0 0;
}

.wy-side-nav-search input {
box-shadow: none;
border: 1px solid #ddd !important;
padding: 10px 20px !important;
}

/* left navigation */
.wy-nav-side {
background: #f8f8f8;
}

.wy-side-nav-search {
background: #f8f8f8;
}

.wy-menu-vertical li a {
padding-top: 10px !important;
padding-bottom: 10px !important;
margin-top: 10px !important;
margin-bottom: 10px !important;
}

.wy-menu-vertical ul,
.wy-menu-vertical li,
.wy-menu-vertical a {
background: none !important;
color: #333 !important;
}

.wy-menu-vertical > ul.current {
margin-bottom: 30px;
}

.wy-menu-vertical > ul.current > li {
border-right: 3px #1abb9c solid;
}

.wy-menu-vertical > ul.current > li > a {
color: #1abb9c !important;
}

.wy-menu-vertical > ul.current > li > ul > li > a {
color: #555 !important;
padding-top: 0 !important;
padding-bottom: 0 !important;
padding-left: 45px !important;
}

.wy-menu-vertical > ul.current > li > ul > li > a::before {
content: '-';
position: absolute;
transform: translateX(-14px);
display: inline-block;
}

.wy-menu-vertical > ul.current > li > ul.current > li.current > a {
color: #1abb9c !important;
}

div[class^='highlight'] {
background: #efefef;
}