| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 32f2079 commit 4c54812
18 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,15 +1,18 @@ | |||
| 1 | 1 | .root { | |
| 2 | 2 | margin-bottom: calc(var(--margin) * 2); | |
| 3 | 3 | justify-content: center; | |
| 4 | + | ||
| 4 | 5 | & ul { | |
| 5 | - columns: 6; | ||
| 6 | - list-style: none; | ||
| 7 | 6 | padding: 0; | |
| 8 | 7 | margin: 0; | |
| 8 | + columns: 6; | ||
| 9 | + list-style: none; | ||
| 9 | 10 | } | |
| 11 | + | ||
| 10 | 12 | & a { | |
| 11 | 13 | text-decoration: none; | |
| 12 | 14 | } | |
| 15 | + | ||
| 13 | 16 | & h3 { | |
| 14 | 17 | text-transform: capitalize; | |
| 15 | 18 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,20 +15,20 @@ const ExamplesList = ({ data }) => { | |||
| 15 | 15 | <div className={classnames(css.root)}> | |
| 16 | 16 | {data.map((category, key) => ( | |
| 17 | 17 | <ul | |
| 18 | - className={classnames(grid.col8, grid.nest)} | ||
| 18 | + className={classnames(grid.nest, css.category)} | ||
| 19 | 19 | key={`category-${key}`}> | |
| 20 | - <h2>{category.name}</h2> | ||
| 21 | - <p>Lorem ipsum</p> | ||
| 22 | - <ul> | ||
| 20 | + <h2 className={grid.col8}>{category.name}</h2> | ||
| 21 | + <p className={classnames(grid.col4, grid.pull4)}>Lorem ipsum</p> | ||
| 22 | + <ul className={classnames(grid.col8, grid.nest)}> | ||
| 23 | 23 | {category.children.map((subcategory, key) => ( | |
| 24 | - <div key={`subcategory-${key}`} className={css.sub}> | ||
| 24 | + <div key={`subcategory-${key}`} className={css.subcategory}> | ||
| 25 | 25 | <h3 className={grid.col1}>{subcategory.name}</h3> | |
| 26 | 26 | <ul className={classnames(grid.col6, grid.nest)}> | |
| 27 | 27 | {subcategory.children.map((node, key) => ( | |
| 28 | 28 | <li key={`item-${key}`} className={grid.col1}> | |
| 29 | - <Link to={node.slug} language={locale}> | ||
| 29 | + <Link to={`${node.slug}.html`} language={locale}> | ||
| 30 | 30 | {node.img && <Image />} | |
| 31 | - <h4>{node.title}</h4> | ||
| 31 | + <h4>{node.name}</h4> | ||
| 32 | 32 | </Link> | |
| 33 | 33 | </li> | |
| 34 | 34 | ))} | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,66 +2,30 @@ | |||
| 2 | 2 | margin-bottom: 60px; | |
| 3 | 3 | ||
| 4 | 4 | & h2 { | |
| 5 | - padding-left: var(--gutter); | ||
| 6 | - font-size: var(--text-xlarge); | ||
| 7 | - text-transform: capitalize; | ||
| 8 | - border-right: solid 7px var(--lightgray); | ||
| 9 | 5 | margin-bottom: 0; | |
| 10 | - } | ||
| 11 | - | ||
| 12 | - & p { | ||
| 13 | - padding-left: var(--gutter); | ||
| 6 | + text-transform: capitalize; | ||
| 14 | 7 | } | |
| 15 | 8 | ||
| 16 | 9 | & ul div:last-child { | |
| 17 | 10 | margin-bottom: 0; | |
| 18 | 11 | } | |
| 19 | 12 | } | |
| 20 | 13 | ||
| 21 | - .sub { | ||
| 14 | + .subcategory { | ||
| 22 | 15 | display: flex; | |
| 23 | 16 | flex-direction: row; | |
| 24 | 17 | margin-bottom: 30px; | |
| 18 | + width: 100%; | ||
| 25 | 19 | ||
| 26 | 20 | & h3 { | |
| 21 | + margin: 0; | ||
| 22 | + border-right: solid 6px var(--lightgray); | ||
| 27 | 23 | font-size: var(--text-medium); | |
| 28 | 24 | text-transform: capitalize; | |
| 29 | - border-right: solid 6px var(--lightgray); | ||
| 30 | - margin: 0; | ||
| 31 | - } | ||
| 32 | - | ||
| 33 | - & li { | ||
| 34 | - list-style: none; | ||
| 35 | - margin-bottom: 30px; | ||
| 36 | - } | ||
| 37 | - | ||
| 38 | - & ul { | ||
| 39 | - display: flex; | ||
| 40 | - flex-direction: row; | ||
| 41 | - flex-wrap: wrap; | ||
| 42 | - } | ||
| 43 | - | ||
| 44 | - & ul li:last-child { | ||
| 45 | - margin-bottom: 0; | ||
| 46 | - } | ||
| 47 | - | ||
| 48 | - & li > * { | ||
| 49 | - display: inline-block; | ||
| 50 | - text-decoration: none; | ||
| 51 | 25 | } | |
| 52 | 26 | ||
| 53 | 27 | & h4 { | |
| 28 | + font-size: var(--text-regular); | ||
| 54 | 29 | font-weight: 400; | |
| 55 | 30 | } | |
| 56 | 31 | } | |
| 57 | - | ||
| 58 | - .subgrid { | ||
| 59 | - display: flex; | ||
| 60 | - align-items: baseline; | ||
| 61 | - } | ||
| 62 | - | ||
| 63 | - .functionName { | ||
| 64 | - color: var(--processing-blue-dark); | ||
| 65 | - font-size: var(--text-medium); | ||
| 66 | - text-decoration: none; | ||
| 67 | - } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,9 +1,9 @@ | |||
| 1 | 1 | .root { | |
| 2 | + z-index: 1000; | ||
| 2 | 3 | width: 100%; | |
| 3 | 4 | padding: 22px; | |
| 4 | 5 | background-color: var(--processing-blue-dark); | |
| 5 | 6 | color: white; | |
| 6 | - z-index: 1000; | ||
| 7 | 7 | } | |
| 8 | 8 | ||
| 9 | 9 | .span { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,12 +4,15 @@ | |||
| 4 | 4 | .root h1 { | |
| 5 | 5 | margin: 0; | |
| 6 | 6 | } | |
| 7 | + | ||
| 7 | 8 | .root a { | |
| 8 | 9 | color: inherit; | |
| 9 | 10 | text-decoration: none; | |
| 11 | + | ||
| 10 | 12 | &:focus { | |
| 11 | 13 | color: var(--processing-blue-dark); | |
| 12 | 14 | } | |
| 15 | + | ||
| 13 | 16 | &:hover { | |
| 14 | 17 | color: var(--processing-blue-dark); | |
| 15 | 18 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,8 +15,8 @@ | |||
| 15 | 15 | ||
| 16 | 16 | .item { | |
| 17 | 17 | display: inline-block; | |
| 18 | - color: var(--processing-blue-dark); | ||
| 19 | 18 | cursor: pointer; | |
| 19 | + color: var(--processing-blue-dark); | ||
| 20 | 20 | font-size: var(--text-medium); | |
| 21 | 21 | font-weight: 700; | |
| 22 | 22 | } | |
@@ -31,39 +31,40 @@ | |||
| 31 | 31 | ||
| 32 | 32 | .subitem { | |
| 33 | 33 | display: inline-block; | |
| 34 | - color: var(--processing-blue-dark); | ||
| 35 | - cursor: pointer; | ||
| 36 | - font-size: var(--text-regular); | ||
| 37 | - font-weight: 700; | ||
| 38 | 34 | margin-right: 2rem; | |
| 39 | 35 | padding-left: 0.6rem; | |
| 36 | + cursor: pointer; | ||
| 40 | 37 | border-left: solid 4px var(--lightgray); | |
| 38 | + color: var(--processing-blue-dark); | ||
| 39 | + font-size: var(--text-regular); | ||
| 40 | + font-weight: 700; | ||
| 41 | 41 | } | |
| 42 | 42 | ||
| 43 | 43 | .subitem:hover { | |
| 44 | - color: var(--processing-blue-mid); | ||
| 45 | 44 | border-left: solid 4px var(--processing-blue-mid); | |
| 45 | + color: var(--processing-blue-mid); | ||
| 46 | + | ||
| 46 | 47 | & a:hover { | |
| 47 | 48 | color: var(--processing-blue-mid); | |
| 48 | 49 | } | |
| 49 | 50 | } | |
| 50 | 51 | ||
| 51 | 52 | .subitem:active { | |
| 52 | - color: var(--processing-blue-dark); | ||
| 53 | 53 | border-left: solid 4px var(--processing-blue-dark); | |
| 54 | + color: var(--processing-blue-dark); | ||
| 54 | 55 | & a:hover { | |
| 55 | 56 | color: var(--processing-blue-dark); | |
| 56 | 57 | } | |
| 57 | 58 | } | |
| 58 | 59 | ||
| 59 | 60 | .submenu { | |
| 60 | 61 | position: absolute; | |
| 61 | - margin: 0; | ||
| 62 | 62 | z-index: 30; | |
| 63 | - list-style: none; | ||
| 64 | - max-height: 0; | ||
| 65 | - overflow: hidden; | ||
| 66 | 63 | opacity: 0; | |
| 64 | + overflow: hidden; | ||
| 65 | + margin: 0; | ||
| 66 | + max-height: 0; | ||
| 67 | + list-style: none; | ||
| 67 | 68 | } | |
| 68 | 69 | ||
| 69 | 70 | .hasSubmenu:hover { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,7 +9,7 @@ const ReferenceList = ({ data }) => { | |||
| 9 | 9 | return ( | |
| 10 | 10 | <div className={css.root}> | |
| 11 | 11 | {data.map((category, key) => ( | |
| 12 | - <div | ||
| 12 | + <ul | ||
| 13 | 13 | className={classnames(grid.nest, css.category)} | |
| 14 | 14 | key={`category-${key}`}> | |
| 15 | 15 | <h2 className={classnames(grid.col8)}>{category.name}</h2> | |
@@ -25,16 +25,16 @@ const ReferenceList = ({ data }) => { | |||
| 25 | 25 | <ul className={classnames(grid.col6andhalf, grid.nest)}> | |
| 26 | 26 | {subcategory.children.map((item, key) => { | |
| 27 | 27 | return ( | |
| 28 | - <li key={key} className={css.subgrid}> | ||
| 28 | + <li key={key} className={css.itemLine}> | ||
| 29 | 29 | <Link | |
| 30 | 30 | className={classnames( | |
| 31 | - grid.col1, | ||
| 32 | - css.functionName | ||
| 31 | + grid.col1andhalf, | ||
| 32 | + css.itemName | ||
| 33 | 33 | )} | |
| 34 | 34 | to={`/reference/${item.slug}.html`}> | |
| 35 | 35 | <span>{item.name}</span> | |
| 36 | 36 | </Link> | |
| 37 | - <div className={grid.col5andhalf}> | ||
| 37 | + <div className={grid.col5}> | ||
| 38 | 38 | <p | |
| 39 | 39 | dangerouslySetInnerHTML={{ | |
| 40 | 40 | __html: item.brief, | |
@@ -50,7 +50,7 @@ const ReferenceList = ({ data }) => { | |||
| 50 | 50 | ); | |
| 51 | 51 | })} | |
| 52 | 52 | </ul> | |
| 53 | - </div> | ||
| 53 | + </ul> | ||
| 54 | 54 | ))} | |
| 55 | 55 | </div> | |
| 56 | 56 | ); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,19 +27,20 @@ | |||
| 27 | 27 | flex-direction: row; | |
| 28 | 28 | margin-bottom: 30px; | |
| 29 | 29 | width: 100%; | |
| 30 | + | ||
| 30 | 31 | & h3 { | |
| 31 | - font-size: var(--text-medium); | ||
| 32 | - text-transform: capitalize; | ||
| 33 | - border-right: solid 3px var(--lightgray); | ||
| 34 | 32 | margin: 0; | |
| 35 | - padding: 0 calc(var(--gutter) * 2); | ||
| 33 | + border-right: solid 3px var(--lightgray); | ||
| 36 | 34 | height: 100%; | |
| 35 | + padding: 0 calc(var(--gutter) * 2); | ||
| 36 | + font-size: var(--text-medium); | ||
| 37 | + text-transform: capitalize; | ||
| 37 | 38 | } | |
| 38 | 39 | ||
| 39 | 40 | & li { | |
| 40 | - list-style: none; | ||
| 41 | 41 | margin-bottom: 8px; | |
| 42 | 42 | width: 100%; | |
| 43 | + list-style: none; | ||
| 43 | 44 | } | |
| 44 | 45 | ||
| 45 | 46 | & ul li:last-child { | |
@@ -58,18 +59,19 @@ | |||
| 58 | 59 | .verticalSeparator { | |
| 59 | 60 | position: absolute; | |
| 60 | 61 | left: var(--gutter); | |
| 62 | + border-left: solid 7px var(--lightgray); | ||
| 61 | 63 | height: 100%; | |
| 62 | 64 | width: 0; | |
| 63 | - border-left: solid 7px var(--lightgray); | ||
| 64 | 65 | } | |
| 65 | 66 | ||
| 66 | - .subgrid { | ||
| 67 | + .itemLine { | ||
| 67 | 68 | display: flex; | |
| 68 | 69 | align-items: baseline; | |
| 69 | 70 | } | |
| 70 | 71 | ||
| 71 | - .functionName { | ||
| 72 | - color: var(--processing-blue-dark); | ||
| 72 | + .itemName { | ||
| 73 | + font-family: var(--font-mono); | ||
| 73 | 74 | font-size: var(--text-medium); | |
| 74 | 75 | text-decoration: none; | |
| 76 | + color: var(--processing-blue-dark); | ||
| 75 | 77 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | .root { | |
| 2 | - padding: 0 20px; | ||
| 3 | 2 | margin-top: 1em; | |
| 3 | + padding: 0 20px; | ||
| 4 | 4 | } | |
| 5 | 5 | ||
| 6 | 6 | .input { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,14 +6,14 @@ | |||
| 6 | 6 | width: 100%; | |
| 7 | 7 | } | |
| 8 | 8 | & input { | |
| 9 | - font-size: var(--text-medium); | ||
| 10 | - color: var(--darkgray); | ||
| 11 | 9 | border: none; | |
| 10 | + transition: color 0.2s, border-color 0.2s; | ||
| 11 | + border-bottom: 1.5px solid var(--darkgray); | ||
| 12 | 12 | width: 100%; | |
| 13 | 13 | padding-left: 30px; | |
| 14 | - border-bottom: 1.5px solid var(--darkgray); | ||
| 15 | - transition: color 0.2s, border-color 0.2s; | ||
| 16 | 14 | background-color: var(--lightgray); | |
| 15 | + font-size: var(--text-medium); | ||
| 16 | + color: var(--darkgray); | ||
| 17 | 17 | } | |
| 18 | 18 | ||
| 19 | 19 | & input:focus { | |
@@ -23,14 +23,14 @@ | |||
| 23 | 23 | } | |
| 24 | 24 | ||
| 25 | 25 | & input::placeholder { | |
| 26 | - color: var(--darkgray); | ||
| 27 | 26 | opacity: 1; | |
| 28 | 27 | transition: color 0.2s, opacity 0.2s; | |
| 28 | + color: var(--darkgray); | ||
| 29 | 29 | } | |
| 30 | 30 | ||
| 31 | 31 | & input:focus::placeholder { | |
| 32 | - color: var(--black); | ||
| 33 | 32 | opacity: 1; | |
| 33 | + color: var(--black); | ||
| 34 | 34 | } | |
| 35 | 35 | justify-content: center; | |
| 36 | 36 | & form { | |
@@ -40,28 +40,29 @@ | |||
| 40 | 40 | ||
| 41 | 41 | .root:hover { | |
| 42 | 42 | & input { | |
| 43 | - color: var(--darkgray); | ||
| 44 | - border-color: 3px solid var(--darkgray); | ||
| 45 | 43 | opacity: 0.8; | |
| 44 | + border-color: 3px solid var(--darkgray); | ||
| 45 | + color: var(--darkgray); | ||
| 46 | 46 | } | |
| 47 | 47 | & input::placeholder { | |
| 48 | - color: var(--darkgray); | ||
| 49 | 48 | opacity: 0.8; | |
| 49 | + color: var(--darkgray); | ||
| 50 | 50 | } | |
| 51 | 51 | } | |
| 52 | 52 | ||
| 53 | 53 | .large { | |
| 54 | 54 | margin-top: var(--margin); | |
| 55 | 55 | margin-bottom: var(--margin); | |
| 56 | + | ||
| 56 | 57 | & input { | |
| 57 | - font-size: var(--text-xlarge); | ||
| 58 | - color: var(--gray); | ||
| 59 | - background-color: white; | ||
| 58 | + transition: color 0.2s, border-color 0.2s; | ||
| 60 | 59 | border: none; | |
| 60 | + border-bottom: 3px solid var(--gray); | ||
| 61 | 61 | width: 100%; | |
| 62 | 62 | padding: 0 60px 12px; | |
| 63 | - border-bottom: 3px solid var(--gray); | ||
| 64 | - transition: color 0.2s, border-color 0.2s; | ||
| 63 | + background-color: white; | ||
| 64 | + font-size: var(--text-xlarge); | ||
| 65 | + color: var(--gray); | ||
| 65 | 66 | } | |
| 66 | 67 | ||
| 67 | 68 | & input:focus { | |
@@ -71,13 +72,13 @@ | |||
| 71 | 72 | } | |
| 72 | 73 | ||
| 73 | 74 | & input::placeholder { | |
| 74 | - color: var(--gray); | ||
| 75 | 75 | opacity: 1; | |
| 76 | 76 | transition: color 0.2s, opacity 0.2s; | |
| 77 | + color: var(--gray); | ||
| 77 | 78 | } | |
| 78 | 79 | ||
| 79 | 80 | & input:focus::placeholder { | |
| 80 | - color: var(--black); | ||
| 81 | 81 | opacity: 1; | |
| 82 | + color: var(--black); | ||
| 82 | 83 | } | |
| 83 | 84 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments