Skip to content
This repository was archived by the owner on Oct 6, 2022. It is now read-only.

Commit

Permalink
Include custom theme
Browse files Browse the repository at this point in the history
  • Loading branch information
mdcfe committed Feb 15, 2018
1 parent c954736 commit 20dc99a
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 6 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />
<title>EssentialsX</title>
<link href="https://fonts.googleapis.com/css?family=Lato:400,700|Roboto:400,700" rel="stylesheet">
<link rel="stylesheet" href="https://unpkg.com/docute@3/dist/docute.css">
<link rel="stylesheet" href="https://unpkg.com/docute/dist/theme-github.css" />
<link rel="stylesheet" href="main.css">
</head>
<body>
Expand Down
74 changes: 69 additions & 5 deletions main.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,71 @@
.fadein-enter-active, .fadein-leave-active {
transition: opacity .5s;
body {
--main: rgb(233, 59, 56);
--grey: rgb(192, 192, 192);
--code-string-blue: #183691;
font-family: Roboto, sans-serif;
}

.fadein-enter, .fadein-leave-to {
opacity: 0;
}
h1, h2, h3, h4, h5, h6 {
font-family: Lato;
}

button {
font-family: Lato;
background: white;
border-color: var(--grey);
border-radius: 2px;
border-width: 1px;
border-style: solid;
box-shadow: 0px 0px 4px -1px var(--grey);
padding: 4px 8px;
transition: cubic-bezier(0.215, 0.610, 0.355, 1) all 300ms;
}

button:active {
background: var(--grey);
}

/* anchors in markdown */
.markdown-body a,
.markdown-body .markdown-heading:focus {
color: var(--main);
}

/* highlight string */
.token.string {
color: var(--code-string-blue);
}

/* navbar */
.nav-list .nav-item >a.router-link-active, .nav-list .nav-item >div.router-link-active {
color: var(--main);
border-bottom-color: var(--main);
}

.nav-list .nav-item-dropdown .dropdown-list .dropdown-item .router-link:hover, .nav-list .nav-item-dropdown .dropdown-list .dropdown-item .router-link-active {
color: var(--main);
}

/* headings in markdown */
.sidebar-headings .sidebar-heading .sidebar-heading-anchor.active, .sidebar-headings .sidebar-heading .sidebar-heading-anchor:hover {
color: var(--main);
}

/* nprogress */
#nprogress .bar {
background: var(--main);
}
#nprogress .spinner-icon {
border-top-color: var(--main);
border-left-color: var(--main);
}

/* search icon */
.search-form .svg-icon.do-search:hover {
color: var(--main);
}

/* color for anchors */
.link:hover {
color: var(--main);
}

0 comments on commit 20dc99a

Please sign in to comment.