Browse Source

Improve styling

+ Change title font to Noto Sans
+ Add materialized design for commit message box
pull/1161/head
Still Hsu 7 years ago
parent
commit
2d43a1dd76
No known key found for this signature in database GPG Key ID: 8601A145FDA95209
4 changed files with 117 additions and 1 deletions
  1. BIN
      docs/_template/last-modified/plugins/LastModifiedPostProcessor.dll
  2. +38
    -0
      docs/_template/light-dark-theme/styles/dark.css
  3. +37
    -0
      docs/_template/light-dark-theme/styles/light.css
  4. +42
    -1
      docs/_template/light-dark-theme/styles/master.css

BIN
docs/_template/last-modified/plugins/LastModifiedPostProcessor.dll View File


+ 38
- 0
docs/_template/light-dark-theme/styles/dark.css View File

@@ -261,3 +261,41 @@ select {
background-color: #3b3b3b;
border-color: #2e2e2e;
}

/*
Following code regarding collapse container are fetched
or modified from the Materialize project.

The MIT License (MIT)
Copyright (c) 2014-2018 Materialize
https://github.com/Dogfalo/materialize
*/

/* all collapse container */
.collapse-container.last-modified {
-webkit-box-shadow: 0 2px 2px 0 rgba(50, 50, 50, 0.64), 0 3px 1px -2px rgba(50, 50, 50, 0.62), 0 1px 5px 0 rgba(50, 50, 50, 0.7);
box-shadow: 0 2px 2px 0 rgba(50, 50, 50, 0.64), 0 3px 1px -2px rgba(50, 50, 50, 0.62), 0 1px 5px 0 rgba(50, 50, 50, 0.7);
border-top: 1px solid rgba(96, 96, 96, 0.7);
border-right: 1px solid rgba(96, 96, 96, 0.7);
border-left: 1px solid rgba(96, 96, 96, 0.7);
}

/* header */
.collapse-container.last-modified>:nth-child(odd) {
background-color: #3f3f3f;
border-bottom: 1px solid rgba(96, 96, 96, 0.7);
}

/* body */
.collapse-container.last-modified>:nth-child(even) {
border-bottom: 1px solid rgba(96, 96, 96, 0.7);
background-color: inherit;
}

span.arrow-d{
border-top: 5px solid white
}

span.arrow-r{
border-left: 5px solid white
}

+ 37
- 0
docs/_template/light-dark-theme/styles/light.css View File

@@ -54,3 +54,40 @@ select {
background-color: #fcfcfc;
border-color: #aeb1b5;
}

/*
Following code regarding collapse container are fetched
or modified from the Materialize project.

The MIT License (MIT)
Copyright (c) 2014-2018 Materialize
https://github.com/Dogfalo/materialize
*/

/* all collapse container */
.collapse-container.last-modified {
-webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
border-top: 1px solid #ddd;
border-right: 1px solid #ddd;
border-left: 1px solid #ddd;
}

/* header */
.collapse-container.last-modified>:nth-child(odd) {
background-color: #fff;
border-bottom: 1px solid #ddd;
}

/* body */
.collapse-container.last-modified>:nth-child(even) {
border-bottom: 1px solid #ddd;
}

span.arrow-d{
border-top: 5px solid black
}

span.arrow-r{
border-left: 5px solid black
}

+ 42
- 1
docs/_template/light-dark-theme/styles/master.css View File

@@ -1,4 +1,4 @@
@import url('https://fonts.googleapis.com/css?family=Titillium+Web');
@import url('https://fonts.googleapis.com/css?family=Titillium+Web|Noto+Sans');
html,
body {
font-family: 'Titillium Web', 'Segoe UI', Tahoma, Helvetica, sans-serif;
@@ -25,6 +25,7 @@ h3,
h4,
h5,
h6 {
font-family: 'Noto Sans', Verdana, Geneva, Tahoma, sans-serif;
line-height: 130%;
}

@@ -63,3 +64,43 @@ select {
background-size: 5px 5px, 5px 6px;
background-repeat: no-repeat;
}

/*
Following code regarding collapse container are fetched
or modified from the Materialize project.

The MIT License (MIT)
Copyright (c) 2014-2018 Materialize
https://github.com/Dogfalo/materialize
*/

/* all collapse container */
.collapse-container.last-modified {
margin: 0.5rem 0 1rem 0;
}

/* header */
.collapse-container.last-modified>:nth-child(odd):focus {
outline: 0;
}
.collapse-container.last-modified>:nth-child(odd) {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
line-height: 1.5;
padding: 0.75rem;
background-image:none;
border: 0px;
}

/* body */
.collapse-container.last-modified>:nth-child(even) {
display: none;
-webkit-box-sizing: border-box;
box-sizing: border-box;
padding: 1rem;
border: 0px;
}

Loading…
Cancel
Save