Add changes for generating new "novo" template

This commit is contained in:
Erik Waibel 2020-08-29 19:48:18 -07:00
parent 568f5daae7
commit 18d4e46ee2
7 changed files with 81 additions and 703 deletions

View File

@ -22,7 +22,7 @@
--color-primary: var(--color-blue); --color-primary: var(--color-blue);
--color-primary-hover: #75AEBD; --color-primary-hover: #75AEBD;
--color-danger: var(--color-red); --color-danger: var(--color-red);
--color-success: var(--color-red); --color-success: var(--color-green);
--color-warning: var(--color-orange); --color-warning: var(--color-orange);
--disabled-color: var(--color-gray-30); --disabled-color: var(--color-gray-30);

View File

@ -1,136 +0,0 @@
/*---------------------------------------------------
LESS Elements 0.6
---------------------------------------------------
A set of useful LESS mixins by Dmitry Fadeyev
Special thanks for mixin suggestions to:
Kris Van Herzeele,
Benoit Adam,
Portenart Emile-Victor,
Ryan Faerman
More info at: http://lesselements.com
-----------------------------------------------------*/
.gradient(@color: #F5F5F5, @start: #EEE, @stop: #FFF) {
background: @color;
background: -webkit-gradient(linear,
left bottom,
left top,
color-stop(0, @start),
color-stop(1, @stop));
background: -ms-linear-gradient(bottom,
@start,
@stop);
background: -moz-linear-gradient(center bottom,
@start 0%,
@stop 100%);
}
.bw-gradient(@color: #F5F5F5, @start: 0, @stop: 255) {
background: @color;
background: -webkit-gradient(linear,
left bottom,
left top,
color-stop(0, rgb(@start,@start,@start)),
color-stop(1, rgb(@stop,@stop,@stop)));
background: -ms-linear-gradient(bottom,
rgb(@start,@start,@start) 0%,
rgb(@start,@start,@start) 100%);
background: -moz-linear-gradient(center bottom,
rgb(@start,@start,@start) 0%,
rgb(@stop,@stop,@stop) 100%);
}
.bordered(@top-color: #EEE, @right-color: #EEE, @bottom-color: #EEE, @left-color: #EEE) {
border-top: solid 1px @top-color;
border-left: solid 1px @left-color;
border-right: solid 1px @right-color;
border-bottom: solid 1px @bottom-color;
}
.drop-shadow(@x-axis: 0, @y-axis: 1px, @blur: 2px, @alpha: 0.1) {
-webkit-box-shadow: @x-axis @y-axis @blur rgba(0, 0, 0, @alpha);
-moz-box-shadow: @x-axis @y-axis @blur rgba(0, 0, 0, @alpha);
box-shadow: @x-axis @y-axis @blur rgba(0, 0, 0, @alpha);
}
.rounded(@radius: 2px) {
-webkit-border-radius: @radius;
-moz-border-radius: @radius;
border-radius: @radius;
-moz-background-clip: padding; -webkit-background-clip: padding-box; background-clip: padding-box;
}
.border-radius(@topright: 0, @bottomright: 0, @bottomleft: 0, @topleft: 0) {
-webkit-border-top-right-radius: @topright;
-webkit-border-bottom-right-radius: @bottomright;
-webkit-border-bottom-left-radius: @bottomleft;
-webkit-border-top-left-radius: @topleft;
-moz-border-radius-topright: @topright;
-moz-border-radius-bottomright: @bottomright;
-moz-border-radius-bottomleft: @bottomleft;
-moz-border-radius-topleft: @topleft;
border-top-right-radius: @topright;
border-bottom-right-radius: @bottomright;
border-bottom-left-radius: @bottomleft;
border-top-left-radius: @topleft;
-moz-background-clip: padding; -webkit-background-clip: padding-box; background-clip: padding-box;
}
.opacity(@opacity: 0.5) {
-moz-opacity: @opacity;
-khtml-opacity: @opacity;
-webkit-opacity: @opacity;
opacity: @opacity;
}
.transition-duration(@duration: 0.2s) {
-moz-transition-duration: @duration;
-webkit-transition-duration: @duration;
transition-duration: @duration;
}
.rotation(@deg:5deg){
-webkit-transform: rotate(@deg);
-moz-transform: rotate(@deg);
transform: rotate(@deg);
}
.scale(@ratio:1.5){
-webkit-transform:scale(@ratio);
-moz-transform:scale(@ratio);
transform:scale(@ratio);
}
.transition(@duration:0.2s, @ease:ease-out) {
-webkit-transition: all @duration @ease;
-moz-transition: all @duration @ease;
transition: all @duration @ease;
}
.inner-shadow(@horizontal:0, @vertical:1px, @blur:2px, @alpha: 0.4) {
-webkit-box-shadow: inset @horizontal @vertical @blur rgba(0, 0, 0, @alpha);
-moz-box-shadow: inset @horizontal @vertical @blur rgba(0, 0, 0, @alpha);
box-shadow: inset @horizontal @vertical @blur rgba(0, 0, 0, @alpha);
}
.box-shadow(@arguments) {
-webkit-box-shadow: @arguments;
-moz-box-shadow: @arguments;
box-shadow: @arguments;
}
.columns(@colwidth: 250px, @colcount: 0, @colgap: 50px, @columnRuleColor: #EEE, @columnRuleStyle: solid, @columnRuleWidth: 1px) {
-moz-column-width: @colwidth;
-moz-column-count: @colcount;
-moz-column-gap: @colgap;
-moz-column-rule-color: @columnRuleColor;
-moz-column-rule-style: @columnRuleStyle;
-moz-column-rule-width: @columnRuleWidth;
-webkit-column-width: @colwidth;
-webkit-column-count: @colcount;
-webkit-column-gap: @colgap;
-webkit-column-rule-color: @columnRuleColor;
-webkit-column-rule-style: @columnRuleStyle;
-webkit-column-rule-width: @columnRuleWidth;
column-width: @colwidth;
column-count: @colcount;
column-gap: @colgap;
column-rule-color: @columnRuleColor;
column-rule-style: @columnRuleStyle;
column-rule-width: @columnRuleWidth;
}
.translate(@x:0, @y:0) {
-moz-transform: translate(@x, @y);
-webkit-transform: translate(@x, @y);
-o-transform: translate(@x, @y);
-ms-transform: translate(@x, @y);
transform: translate(@x, @y);
}

View File

@ -1,11 +1,12 @@
.icon { .icon {
&::before { &::before {
color: var(--color-primary);
display: inline-block; display: inline-block;
font-family: "Font Awesome 5 Free"; font-family: "Font Awesome 5 Free";
font-style: normal; font-style: normal;
font-variant: normal; font-variant: normal;
font-weight: 900; font-weight: 900;
margin-right: 4px; margin-right: 8px;
text-rendering: auto; text-rendering: auto;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
} }

View File

@ -1,502 +0,0 @@
/*! normalize.css 2012-02-07T12:37 UTC - http://github.com/necolas/normalize.css */
/* =============================================================================
HTML5 display definitions
========================================================================== */
/*
* Corrects block display not defined in IE6/7/8/9 & FF3
*/
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
nav,
section,
summary {
display: block;
}
/*
* Corrects inline-block display not defined in IE6/7/8/9 & FF3
*/
audio,
canvas,
video {
display: inline-block;
*display: inline;
*zoom: 1;
}
/*
* Prevents modern browsers from displaying 'audio' without controls
*/
audio:not([controls]) {
display: none;
}
/*
* Addresses styling for 'hidden' attribute not present in IE7/8/9, FF3, S4
* Known issue: no IE6 support
*/
[hidden] {
display: none;
}
/* =============================================================================
Base
========================================================================== */
/*
* 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units
* http://clagnut.com/blog/348/#c790
* 2. Prevents iOS text size adjust after orientation change, without disabling user zoom
* www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
*/
html {
font-size: 100%; /* 1 */
-webkit-text-size-adjust: 100%; /* 2 */
-ms-text-size-adjust: 100%; /* 2 */
}
/*
* Addresses font-family inconsistency between 'textarea' and other form elements.
*/
html,
button,
input,
select,
textarea {
font-family: sans-serif;
}
/*
* Addresses margins handled incorrectly in IE6/7
*/
body {
margin: 0;
}
/* =============================================================================
Links
========================================================================== */
/*
* Addresses outline displayed oddly in Chrome
*/
a:focus {
outline: thin dotted;
}
/*
* Improves readability when focused and also mouse hovered in all browsers
* people.opera.com/patrickl/experiments/keyboard/test
*/
a:hover,
a:active {
outline: 0;
}
/* =============================================================================
Typography
========================================================================== */
/*
* Addresses font sizes and margins set differently in IE6/7
* Addresses font sizes within 'section' and 'article' in FF4+, Chrome, S5
*/
h1 {
font-size: 2em;
margin: 0.67em 0;
}
h2 {
font-size: 1.5em;
margin: 0.83em 0;
}
h3 {
font-size: 1.17em;
margin: 1em 0;
}
h4 {
font-size: 1em;
margin: 1.33em 0;
}
h5 {
font-size: 0.83em;
margin: 1.67em 0;
}
h6 {
font-size: 0.75em;
margin: 2.33em 0;
}
/*
* Addresses styling not present in IE7/8/9, S5, Chrome
*/
abbr[title] {
border-bottom: 1px dotted;
}
/*
* Addresses style set to 'bolder' in FF3+, S4/5, Chrome
*/
b,
strong {
font-weight: bold;
}
blockquote {
margin: 1em 40px;
}
/*
* Addresses styling not present in S5, Chrome
*/
dfn {
font-style: italic;
}
/*
* Addresses styling not present in IE6/7/8/9
*/
mark {
background: #ff0;
color: #000;
}
/*
* Addresses margins set differently in IE6/7
*/
p,
pre {
margin: 1em 0;
}
/*
* Corrects font family set oddly in IE6, S4/5, Chrome
* en.wikipedia.org/wiki/User:Davidgothberg/Test59
*/
pre,
code,
kbd,
samp {
font-family: monospace, serif;
_font-family: 'courier new', monospace;
font-size: 1em;
}
/*
* Improves readability of pre-formatted text in all browsers
*/
pre {
white-space: pre;
white-space: pre-wrap;
word-wrap: break-word;
}
/*
* 1. Addresses CSS quotes not supported in IE6/7
* 2. Addresses quote property not supported in S4
*/
/* 1 */
q {
quotes: none;
}
/* 2 */
q:before,
q:after {
content: '';
content: none;
}
small {
font-size: 75%;
}
/*
* Prevents sub and sup affecting line-height in all browsers
* gist.github.com/413930
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
/* =============================================================================
Lists
========================================================================== */
/*
* Addresses margins set differently in IE6/7
*/
dl,
menu,
ol,
ul {
margin: 1em 0;
}
dd {
margin: 0 0 0 40px;
}
/*
* Addresses paddings set differently in IE6/7
*/
menu,
ol,
ul {
padding: 0 0 0 40px;
}
/*
* Corrects list images handled incorrectly in IE7
*/
nav ul,
nav ol {
list-style: none;
list-style-image: none;
}
/* =============================================================================
Embedded content
========================================================================== */
/*
* 1. Removes border when inside 'a' element in IE6/7/8/9, FF3
* 2. Improves image quality when scaled in IE7
* code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
*/
img {
border: 0; /* 1 */
-ms-interpolation-mode: bicubic; /* 2 */
}
/*
* Corrects overflow displayed oddly in IE9
*/
svg:not(:root) {
overflow: hidden;
}
/* =============================================================================
Figures
========================================================================== */
/*
* Addresses margin not present in IE6/7/8/9, S5, O11
*/
figure {
margin: 0;
}
/* =============================================================================
Forms
========================================================================== */
/*
* Corrects margin displayed oddly in IE6/7
*/
form {
margin: 0;
}
/*
* Define consistent border, margin, and padding
*/
fieldset {
border: 1px solid #c0c0c0;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
}
/*
* 1. Corrects color not being inherited in IE6/7/8/9
* 2. Corrects text not wrapping in FF3
* 3. Corrects alignment displayed oddly in IE6/7
*/
legend {
border: 0; /* 1 */
padding: 0;
white-space: normal; /* 2 */
*margin-left: -7px; /* 3 */
}
/*
* 1. Corrects font size not being inherited in all browsers
* 2. Addresses margins set differently in IE6/7, FF3+, S5, Chrome
* 3. Improves appearance and consistency in all browsers
*/
button,
input,
select,
textarea {
font-size: 100%; /* 1 */
margin: 0; /* 2 */
vertical-align: baseline; /* 3 */
*vertical-align: middle; /* 3 */
}
/*
* Addresses FF3/4 setting line-height on 'input' using !important in the UA stylesheet
*/
button,
input {
line-height: normal; /* 1 */
}
/*
* 1. Improves usability and consistency of cursor style between image-type 'input' and others
* 2. Corrects inability to style clickable 'input' types in iOS
* 3. Removes inner spacing in IE7 without affecting normal text inputs
* Known issue: inner spacing remains in IE6
*/
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
cursor: pointer; /* 1 */
-webkit-appearance: button; /* 2 */
*overflow: visible; /* 3 */
}
/*
* Re-set default cursor for disabled elements
*/
button[disabled],
input[disabled] {
cursor: default;
}
/*
* 1. Addresses box sizing set to content-box in IE8/9
* 2. Removes excess padding in IE8/9
* 3. Removes excess padding in IE7
Known issue: excess padding remains in IE6
*/
input[type="checkbox"],
input[type="radio"] {
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */
*height: 13px; /* 3 */
*width: 13px; /* 3 */
}
/*
* 1. Addresses appearance set to searchfield in S5, Chrome
* 2. Addresses box-sizing set to border-box in S5, Chrome (include -moz to future-proof)
*/
input[type="search"] {
-webkit-appearance: textfield; /* 1 */
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box; /* 2 */
box-sizing: content-box;
}
/*
* Removes inner padding and search cancel button in S5, Chrome on OS X
*/
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
-webkit-appearance: none;
}
/*
* Removes inner padding and border in FF3+
* www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
*/
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
/*
* 1. Removes default vertical scrollbar in IE6/7/8/9
* 2. Improves readability and alignment in all browsers
*/
textarea {
overflow: auto; /* 1 */
vertical-align: top; /* 2 */
}
/* =============================================================================
Tables
========================================================================== */
/*
* Remove most spacing between table cells
*/
table {
border-collapse: collapse;
border-spacing: 0;
}

View File

@ -1,6 +1,12 @@
@page {
size: auto;
margin: 20mm 0 10mm 0;
}
body.pdf { body.pdf {
color: black; color: black;
font-size: 20px; font-size: 20px;
padding: 1.5em 0.5em;
a { a {
text-decoration: none; text-decoration: none;
@ -21,15 +27,6 @@ body.pdf {
padding: 10px 12px; padding: 10px 12px;
} }
.sidebar {
order: 1;
width: 30%;
}
.content {
width: 70%;
}
.main, .main,
#header, #header,
#summary, #summary,
@ -51,43 +48,49 @@ body.pdf {
font-weight: normal; font-weight: normal;
} }
h3 {
// font-size: 2em;
font-style: normal;
+ p {
}
}
h4 {
font-size: 1.5em;
}
#contact { #contact {
a { a {
color: black; color: black;
font-size: 1.2em; font-size: 1.25em;
}
}
#skills {
~ h4 {
border-bottom: 1px solid var(--color-primary);
font-size: 1.1em;
margin-bottom: 0.5em;
} }
} }
#experience { #experience {
~ dl,
~ p, ~ p,
~ ul { ~ ul {
page-break-after: avoid;
page-break-before: avoid; page-break-before: avoid;
page-break-inside: avoid;
} }
~ p, ~ p,
~ ul { ~ ul {
font-size: 1em; font-size: 0.98em;
} }
~ dl { ~ dl {
font-size: 1.1em; font-size: 0.95em;
page-break-after: avoid;
page-break-before: auto;
page-break-inside: avoid;
dd { dd {
font-size: 1.25em; font-size: inherit;
page-break-after: avoid;
page-break-before: avoid;
page-break-inside: avoid;
p {
font-size: 1.05em;
}
} }
} }
} }

View File

@ -40,10 +40,18 @@ h1, h2, h3, h4, ul dl dt {
} }
.main { .main {
display: flex;
margin-top: 1em; margin-top: 1em;
} }
.sidebar {
float: right;
margin-left: 1.75em;
width: 30%;
}
.content {
}
.main, .main,
#header, #header,
#summary, #summary,
@ -51,17 +59,6 @@ h1, h2, h3, h4, ul dl dt {
padding: 0 2em; padding: 0 2em;
} }
a[href$='.pdf'] {
background: #666;
color: white;
padding: 6px 12px;
margin-bottom: 6px;
text-decoration: none;
position: absolute;
top: 15px;
right: 25px;
}
hr { hr {
display: block; display: block;
position: relative; position: relative;
@ -90,6 +87,7 @@ h1 {
letter-spacing: -1px; letter-spacing: -1px;
font-weight: normal; font-weight: normal;
} }
h2 { h2 {
color: #aaa; color: #aaa;
margin: 0; margin: 0;
@ -120,7 +118,7 @@ h3~ul {
} }
h4 { h4 {
font-size: 1.2em; font-size: 1em;
margin: 0; margin: 0;
} }
@ -142,11 +140,8 @@ ul dl {
margin: .3em 0 0; margin: .3em 0 0;
padding: 0; padding: 0;
width: 100%; width: 100%;
dt {
/*font-size: 1em;*/
}
dd { dd {
// margin: 0 0 1em;
padding: 0 2em 0 0; padding: 0 2em 0 0;
font-size: .8em; font-size: .8em;
line-height: 1.5em; line-height: 1.5em;
@ -159,25 +154,27 @@ ol {
padding: 0 0 .75em; padding: 0 0 .75em;
width: 84%; width: 84%;
display: inline-block; display: inline-block;
}
ol li { li {
margin: 0 0 0 .5em; margin: 0 0 0 .5em;
padding: 0; padding: 0;
border-top: 1px solid #CCCCCC; border-top: 1px solid #CCCCCC;
width: 100%; width: 100%;
line-height: 1.5em; line-height: 1.5em;
font-size: 1em; font-size: 1em;
}
ol li:nth-child(1) { &:nth-child(1) {
border-top: 0; border-top: 0;
}
}
} }
dl { dl {
display: inline-block; display: inline-block;
width: 95%;
margin: 0; margin: 0;
padding: 0; padding: 0;
width: 65%;
dt { dt {
margin: 0; margin: 0;
padding: 0; padding: 0;
@ -224,7 +221,7 @@ dl {
color: var(--color-gray-50); color: var(--color-gray-50);
display: inline; display: inline;
flex: 1 0 50%; flex: 1 0 50%;
// margin: 0 1em; margin: 0.25em 0;
} }
} }
} }
@ -249,8 +246,14 @@ dl {
#experience, #experience,
#education { #education {
~ dl { ~ dl {
margin-bottom: 0.5em;
dt { dt {
margin-top: 0.5em; margin-top: 0.5em;
h4 {
font-size: 1.4em;
}
} }
dd { dd {
@ -269,14 +272,12 @@ dl {
} }
~ p { ~ p {
font-size: 0.9em; font-size: 0.95em;
margin-top: 0; margin-top: 0;
width: 90%;
} }
~ ul { ~ ul {
font-size: 0.9em; font-size: 0.95em;
width: 90%;
} }
~ ol li { ~ ol li {
@ -285,6 +286,17 @@ dl {
} }
} }
#experience {
~ dl {
dd {
p {
display: flex;
justify-content: space-between;
}
}
}
}
#footer { #footer {
border-top: 1px solid var(--color-gray-40); border-top: 1px solid var(--color-gray-40);
font-size: 0.75em; font-size: 0.75em;

View File

@ -54,11 +54,11 @@
@media screen and (min-width: 57em) { @media screen and (min-width: 57em) {
.sidebar { .sidebar {
order: 1; order: 1;
width: 40%; // width: 40%;
} }
.content { .content {
width: 100%; // width: 100%;
} }
} }