Files
services/docs/hugo-tania/assets/sass/components/_navbar.scss
Janos Dobronszki 40b71a9cf9 Autogenerate services.m3o.com (#37)
* Autogenerate services.m3o.com

* Openapi for all

* Gen

* Fix

* Whaat

* Fix dep

* Fix

* Hmm

* Install make

* Debug

* Debug 1

* Location -> locations

* Fix

* Intall protoc gen micro

* F

* F

* F

* Push

* Rename secret

* Fix npm install

* Fix script

* Fix v2

* Ignore errors

* Ignore v2

* F

* F

* F

* Docs index

* Add hugo theme

* Hugo tania fixes

* Change gen

* Change gen 2

* Install hugo

* Change gen

* Gen fix

* Change hugo install

* Change hugo install

* CNAME

* Change articles wording

* Tiny fix

* Fix gen

* Redoc it all

* Fix gen

* Fixing up protos

* Fix proto

* Fix gen

* Fix

* Trigger build

* Fix copy

* Openapi docs

* Flatten

* Changes

* No date vol2

* Changes

* Add make to chat

* Fixes

* Change

* api spec

* replace RSS

* fix link

* Dont continue on error

* increase the width

* use micro at master

* change box colours

* move some things

* Pushing new readmes to see how they look like

* Add skip file

* Readmes

* Nicer api link

* Remove stutter

* FIx mistake

* set service font weight

* Messages readme fix

* add other font bold

* Notes

* Remove post from url

* Revert "Remove post from url"

This reverts commit 5fea2c23d0bafa910f5dc4d4cc63f71f578530e3.

* move exampleSite to site

* replace exampleSite with site

* update readme

* use filename for post

* update index

* Add source urls

* set source as params

* set source as params

* Fix entries

* Generator in go

* Fixes to generator

* F

* Change doc gen

* FIx cname

* Fixing protos

* Change to makefiles

* Fix gen script

Co-authored-by: Asim Aslam <asim@aslam.me>
2021-01-19 16:59:25 +00:00

166 lines
3.2 KiB
SCSS

/* Navbar */
main {
margin-top: 50px;
}
@media screen and (min-width: 800px) {
main {
margin-top: 0;
}
}
.emoji {
margin: 0 0.4rem 0 0.1rem;
}
.navbar {
width: 100%;
position: fixed;
top: 0;
left: 0;
background: var(--navbar-color);
box-shadow: 0 3px 13px rgba(100, 110, 140, 0.1),
0 2px 4px rgba(100, 110, 140, 0.15);
z-index: 2;
padding: 0.5rem;
.flex {
justify-content: space-between;
}
a {
border-radius: 0.35rem;
margin: 0 0.05rem;
color: rgba(255, 255, 255, 0.65);
font-weight: 400;
font-size: 0.85rem;
border: 1px solid transparent;
padding: 0 0.3rem;
background: transparent;
&:first-of-type {
margin-left: -1rem;
}
.emoji {
display: none;
}
&.brand {
font-weight: 500;
color: white;
white-space: nowrap;
border: none;
display: flex;
align-items: center;
line-height: 1;
background: transparent;
.emoji {
display: inline-block !important;
}
img {
height: 22px;
width: 22px;
}
}
}
button {
font-size: 1rem;
margin-right: -1rem;
}
}
@media screen and (min-width: 500px) {
.navbar a {
font-size: 0.95rem;
padding: 0.5rem;
}
}
@media screen and (min-width: 800px) {
.emoji {
margin: 0 0.5rem 0 0.1rem;
}
.navbar {
position: static;
padding: 1.5rem 0;
background: transparent;
box-shadow: none;
.flex {
justify-content: space-between;
}
a {
padding: 0.75rem 1.25rem;
margin: 0 0.25rem;
font-size: 1.2rem;
font-weight: 400;
color: var(--font-color);
&:first-of-type {
margin-left: -1.5rem;
}
&:hover, &[aria-current='page'] {
background: var(--light-background);
color: var(--dark-font-color);
}
&.brand {
font-size: 1.3rem;
margin-right: 3rem;
border: none;
background: transparent !important;
color: var(--dark-font-color);
&:hover {
background: var(--light-background) !important;
}
img {
height: 26px;
width: 26px;
margin-right: 0.25rem;
}
}
}
}
#dark-mode-button:hover {
background: var(--light-background);
}
}
@media print {
.navbar {
display: none;
}
}
#dark-mode-button {
display: flex;
border: none;
padding: 0.2rem 0.7rem 0.2rem 0.5rem;
border-radius: 0.35rem;
box-sizing: content-box;
cursor: pointer;
font-size: 1.1rem;
background: transparent;
&:focus {
outline: none;
}
}
@media screen and (min-width: 800px) {
#dark-mode-button {
padding: 0.95rem 0.75rem;
font-size: 1.2rem;
}
}