Skip to content

Commit

Permalink
build(css): prepare sass files in dist folder
Browse files Browse the repository at this point in the history
  • Loading branch information
vltansky committed Jun 27, 2020
1 parent f1ec7ad commit 3f1c7e6
Show file tree
Hide file tree
Showing 10 changed files with 305 additions and 296 deletions.
124 changes: 30 additions & 94 deletions dist/css/main.css
@@ -1,21 +1,12 @@
/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
* What follows is the result of much research on cross-browser styling.
* Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
* Kroc Camen, and the H5BP dev community and team.
*/

/* ==========================================================================
Base styles: opinionated defaults
========================================================================== */

html {
color: #222;
font-size: 1em;
line-height: 1.4;
}
line-height: 1.4; }

/*
* Remove text-shadow in selection highlight:
Expand All @@ -26,79 +17,62 @@ html {
*
* Customize the background color to match your design.
*/

::-moz-selection {
background: #b3d4fc;
text-shadow: none;
}
text-shadow: none; }

::selection {
background: #b3d4fc;
text-shadow: none;
}
text-shadow: none; }

/*
* A better looking default horizontal rule
*/

hr {
display: block;
height: 1px;
border: 0;
border-top: 1px solid #ccc;
margin: 1em 0;
padding: 0;
}
padding: 0; }

/*
* Remove the gap between audio, canvas, iframes,
* images, videos and the bottom of their containers:
* https://github.com/h5bp/html5-boilerplate/issues/440
*/

audio,
canvas,
iframe,
img,
svg,
video {
vertical-align: middle;
}
vertical-align: middle; }

/*
* Remove default fieldset styles.
*/

fieldset {
border: 0;
margin: 0;
padding: 0;
}
padding: 0; }

/*
* Allow only vertical resizing of textareas.
*/

textarea {
resize: vertical;
}

/* ==========================================================================
Author's custom styles
========================================================================== */
resize: vertical; }

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/* ==========================================================================
Helper classes
========================================================================== */

/*
* Hide visually and from screen readers
*/

.hidden,
[hidden] {
display: none !important;
}
display: none !important; }

/*
* Hide only visually, but have it available for screen readers:
Expand All @@ -108,7 +82,6 @@ textarea {
* causes content to wrap 1 word per line:
* https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

.sr-only {
border: 0;
clip: rect(0, 0, 0, 0);
Expand All @@ -119,15 +92,13 @@ textarea {
position: absolute;
white-space: nowrap;
width: 1px;
/* 1 */
}
/* 1 */ }

/*
* Extends the .sr-only class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.sr-only.focusable:active,
.sr-only.focusable:focus {
clip: auto;
Expand All @@ -136,16 +107,13 @@ textarea {
overflow: visible;
position: static;
white-space: inherit;
width: auto;
}
width: auto; }

/*
* Hide visually and from screen readers, but maintain layout
*/

.invisible {
visibility: hidden;
}
visibility: hidden; }

/*
* Clearfix: contain floats
Expand All @@ -158,40 +126,32 @@ textarea {
* 2. The use of `table` rather than `block` is only necessary if using
* `:before` to contain the top-margins of child elements.
*/

.clearfix::before,
.clearfix::after {
content: " ";
display: table;
}
display: table; }

.clearfix::after {
clear: both;
}
clear: both; }

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/* ==========================================================================
EXAMPLE Media Queries for Responsive Design.
These examples override the primary ('mobile first') styles.
Modify as content requires.
========================================================================== */

@media only screen and (min-width: 35em) {
/* Style adjustments for viewports that meet the condition */
}
/* Style adjustments for viewports that meet the condition */ }

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
/* Style adjustments for high resolution devices */
}
@media print, (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 1.25dppx), (min-resolution: 120dpi) {
/* Style adjustments for high resolution devices */ }

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/* ==========================================================================
Print styles.
Inlined to avoid the additional HTTP request:
https://www.phpied.com/delay-loading-your-print-css/
========================================================================== */

@media print {
*,
*::before,
Expand All @@ -200,65 +160,41 @@ textarea {
color: #000 !important;
/* Black prints faster */
box-shadow: none !important;
text-shadow: none !important;
}

text-shadow: none !important; }
a,
a:visited {
text-decoration: underline;
}

text-decoration: underline; }
a[href]::after {
content: " (" attr(href) ")";
}

content: " (" attr(href) ")"; }
abbr[title]::after {
content: " (" attr(title) ")";
}

content: " (" attr(title) ")"; }
/*
* Don't show links that are fragment identifiers,
* or use the `javascript:` pseudo protocol
*/
a[href^="#"]::after,
a[href^="javascript:"]::after {
content: "";
}

content: ""; }
pre {
white-space: pre-wrap !important;
}

white-space: pre-wrap !important; }
pre,
blockquote {
border: 1px solid #999;
page-break-inside: avoid;
}

page-break-inside: avoid; }
/*
* Printing Tables:
* https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
*/
thead {
display: table-header-group;
}

display: table-header-group; }
tr,
img {
page-break-inside: avoid;
}

page-break-inside: avoid; }
p,
h2,
h3 {
orphans: 3;
widows: 3;
}

widows: 3; }
h2,
h3 {
page-break-after: avoid;
}
}


page-break-after: avoid; } }
76 changes: 76 additions & 0 deletions dist/scss/_base.scss
@@ -0,0 +1,76 @@
/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/* ==========================================================================
Base styles: opinionated defaults
========================================================================== */

html {
color: #222;
font-size: 1em;
line-height: 1.4;
}

/*
* Remove text-shadow in selection highlight:
* https://twitter.com/miketaylr/status/12228805301
*
* Vendor-prefixed and regular ::selection selectors cannot be combined:
* https://stackoverflow.com/a/16982510/7133471
*
* Customize the background color to match your design.
*/

::-moz-selection {
background: #b3d4fc;
text-shadow: none;
}

::selection {
background: #b3d4fc;
text-shadow: none;
}

/*
* A better looking default horizontal rule
*/

hr {
display: block;
height: 1px;
border: 0;
border-top: 1px solid #ccc;
margin: 1em 0;
padding: 0;
}

/*
* Remove the gap between audio, canvas, iframes,
* images, videos and the bottom of their containers:
* https://github.com/h5bp/html5-boilerplate/issues/440
*/

audio,
canvas,
iframe,
img,
svg,
video {
vertical-align: middle;
}

/*
* Remove default fieldset styles.
*/

fieldset {
border: 0;
margin: 0;
padding: 0;
}

/*
* Allow only vertical resizing of textareas.
*/

textarea {
resize: vertical;
}

0 comments on commit 3f1c7e6

Please sign in to comment.