Skip to content

Commit

Permalink
Feature/material textbox (#5)
Browse files Browse the repository at this point in the history
* Updated textbox style with rounded conrners and minor transition tweaks

* - Fixed hamburger menu
- Cleaned up css
- Updated screenshot and changelog

* Removed 'usability improvements' section from the index page.
  • Loading branch information
ovasquez committed Aug 28, 2020
1 parent d862908 commit 81ba0d0
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 25 deletions.
5 changes: 5 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## Version 0.5.0 - Aug 27th 2020

- Updated textbox style with rounded conrners and minor transition tweaks.
- Fixed hover on hamburger menu (small screens).

## Version 0.4.0 - May 19th 2020

- Usability improvements and minor style changes in textboxes.
Expand Down
Binary file modified 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 removed docs/images/screenshot-1-shadow.png
Binary file not shown.
Binary file removed docs/images/screenshot-1.png
Binary file not shown.
Binary file removed docs/images/screenshot-2-shadow.png
Binary file not shown.
Binary file removed docs/images/screenshot-2.png
Binary file not shown.
13 changes: 0 additions & 13 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,6 @@ The colors were chosen using <https://material.io/tools/color>.

![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

1. Download the source or the zipped file from the [releases](https://github.com/ovasquez/docfx-material/releases).
Expand Down
31 changes: 19 additions & 12 deletions material/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
--header-ft-color: #fff;
--highlight-light: #5e92f3;
--highlight-dark: #003c8f;
--accent-dim: #eee;
--accent-dim: #e0e0e0;
--accent-super-dim: #f3f3f3;
--font-color: #34393e;
--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);
--search-box-shadow: 0 1px 2px 0 rgba(41, 45, 48, 0.36), 0 1px 3px 1px rgba(41, 45, 48, 0.46);
--transition: 350ms;
}

body {
Expand Down Expand Up @@ -128,6 +129,7 @@ article h4 {
background-color: var(--header-bg-color);
border-bottom: 3px solid transparent;
padding-bottom: 12px;
transition: 350ms;
}

.navbar-inverse .navbar-nav > li > a:focus,
Expand All @@ -147,15 +149,13 @@ article h4 {

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

.navbar-form .form-control:hover {
border-radius: 4px;
box-shadow: var(--search-box-shadow);
transition:var(--transition);
}

.toc-filter > input:hover {
box-shadow: var(--under-box-shadow);
.navbar-form .form-control:hover {
background-color: var(--accent-dim);
}

/* NAVBAR TOGGLED (small screens) */
Expand All @@ -170,7 +170,7 @@ article h4 {

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

/* SIDEBAR */
Expand All @@ -196,13 +196,20 @@ article h4 {
}

.toc-filter {
padding: 10px;
padding: 5px;
margin: 0;
box-shadow: var(--card-box-shadow);
transition:var(--transition);
}

.toc-filter:hover {
background-color: var(--accent-super-dim);
}

.toc-filter > input {
border: none;
border-bottom: 2px solid var(--accent-dim);
background-color: inherit;
transition: inherit;
}

.toc-filter > .filter-icon {
Expand Down

0 comments on commit 81ba0d0

Please sign in to comment.