Skip to content

Commit

Permalink
Usability improvements and minor style changes in textboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
ovasquez committed May 19, 2020
1 parent 06ab5db commit e82eed6
Show file tree
Hide file tree
Showing 7 changed files with 81 additions and 10 deletions.
12 changes: 12 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## Version 0.4.0 - May 19th 2020

- Usability improvements and minor style changes in textboxes.

<img src="./images/index/docfx-search.gif" alt="Search highlights" class="small-image"/>

<br/>
<br/>

<img src="./images/index/docfx-filter.gif" alt="Filter highlights" class="small-image"/>


## Version 0.3.1 - January 13th 2020

- Minor update in styles and shadows.
Expand Down
Binary file added docs/images/index/docfx-filter.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/index/docfx-screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/index/docfx-search.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/images/material-site.png
Binary file not shown.
15 changes: 14 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,20 @@ override of the default template so you need to enable both in the `docfx.json`.

The colors were chosen using <https://material.io/tools/color>.

![DocFX Material Site](./images/material-site.png)
![DocFX Material Site](./images/index/docfx-screenshot.png)

## Usability improvements

- Highlight on search box

<img src="./images/index/docfx-search.gif" alt="Search highlights" class="small-image"/>

<br/>
<br/>

- Highlight on filter box

<img src="./images/index/docfx-filter.gif" alt="Filter highlights" class="small-image"/>

## Install

Expand Down
64 changes: 55 additions & 9 deletions material/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
--header-ft-color: #fff;
--highlight-light: #5e92f3;
--highlight-dark: #003c8f;
--accent-dim: #eee;
--font-color: #34393e;
--custom-box-shadow: 0 1px 2px 0 rgba(61, 65, 68, 0.06), 0 1px 3px 1px rgba(61, 65, 68, 0.16);
--card-box-shadow: 0 1px 2px 0 rgba(61, 65, 68, 0.06), 0 1px 3px 1px rgba(61, 65, 68, 0.16);
--under-box-shadow: 0 4px 4px -2px #eee;
--search-box-shadow: 0px 0px 5px 0px rgba(255,255,255,1);
}

body {
Expand Down Expand Up @@ -104,9 +107,9 @@ article h4 {
.navbar {
border: none;
/* Both navbars use box-shadow */
-webkit-box-shadow: var(--custom-box-shadow);
-moz-box-shadow: var(--custom-box-shadow);
box-shadow: var(--custom-box-shadow);
-webkit-box-shadow: var(--card-box-shadow);
-moz-box-shadow: var(--card-box-shadow);
box-shadow: var(--card-box-shadow);
}

.subnav {
Expand Down Expand Up @@ -143,8 +146,31 @@ article h4 {
}

.navbar-form .form-control {
border: 0;
border-radius: 0;
}

.navbar-form .form-control:hover {
box-shadow: var(--search-box-shadow);
}

.toc-filter > input:hover {
box-shadow: var(--under-box-shadow);
}

/* NAVBAR TOGGLED (small screens) */

.navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form {
border: none;
}
.navbar-inverse .navbar-toggle {
box-shadow: var(--card-box-shadow);
border: none;
border-radius: 20px;
}

.navbar-inverse .navbar-toggle:focus,
.navbar-inverse .navbar-toggle:hover {
background-color: var(--header-ft-color);
}

/* SIDEBAR */
Expand Down Expand Up @@ -175,8 +201,8 @@ article h4 {
}

.toc-filter > input {
border: 2px solid #ddd;
border-radius: 20px;
border: none;
border-bottom: 2px solid var(--accent-dim);
}

.toc-filter > .filter-icon {
Expand All @@ -200,7 +226,7 @@ article h4 {
color: inherit;
background-color: inherit;
border: none;
box-shadow: var(--custom-box-shadow);
box-shadow: var(--card-box-shadow);
}

.alert > p {
Expand Down Expand Up @@ -249,5 +275,25 @@ pre {
background-color: #fffaef;
border-radius: 4px;
border: none;
box-shadow: var(--custom-box-shadow);
box-shadow: var(--card-box-shadow);
}

/* STYLE FOR IMAGES */

.article .small-image {
margin-top: 15px;
box-shadow: var(--card-box-shadow);
max-width: 350px;
}

.article .medium-image {
margin-top: 15px;
box-shadow: var(--card-box-shadow);
max-width: 550px;
}

.article .large-image {
margin-top: 15px;
box-shadow: var(--card-box-shadow);
max-width: 700px;
}

0 comments on commit e82eed6

Please sign in to comment.