All Downloads are FREE. Search and download functionalities are using the official Maven repository.

css.default.scss Maven / Gradle / Ivy

The newest version!
/*
 * Default style sheet for HTML
 *
 * This style sheet simply puts "display:block" on all elements that are defined as
 * block-level in the default CSS2 style sheet for HTML 4. The rules defined here
 * can be reset with http://www.daisy.org/pipeline/modules/braille/html-to-pef/reset.css
 *
 * See also
 * - http://www.w3.org/TR/CSS2/sample.html
 * - http://www.w3.org/TR/html5/rendering.html
 */

@namespace xml "http://www.w3.org/XML/1998/namespace";

html, address,
blockquote,
body, dd, div,
dl, dt, fieldset, form,
frame, frameset,
h1, h2, h3, h4,
h5, h6, noframes,
ol, p, ul, center,
dir, hr, menu, pre,
table,
tr,
thead,
tbody,
tfoot,
/* td, th, */
caption,
button, textarea,
input, select {
	display: block
}

li {
	display: list-item;
}

ol, ul {
	counter-reset: list-item;
}

ol,
ol[type="1"] { list-style-type: decimal;     }
ol[type="a"] { list-style-type: lower-alpha; }
ol[type="A"] { list-style-type: upper-alpha; }
ol[type="i"] { list-style-type: lower-roman; }
ol[type="I"] { list-style-type: upper-roman; }

/* handle ol[start] and li[value] */
@xslt "lists.xsl";

head {
	display: none
}

br::before {
	content: "\A";
	white-space: pre-line;
}

wbr::before {
	content: "\200B";
}

/* xml:space */
[xml|space=preserve] {
	white-space: pre-wrap;
}

@text-transform uncontracted {
	system: braille;
	contraction: no;
}

/* ======= Implementation of script options =============== */

/**
 * @var $hyphenation
 *
 * @brief Hyphenation
 *
 * Hyphenation policy.
 *
 * The following CSS rule is included by default (where `$hyphenation` is the value of this option):
 *
 * ~~~sass
 * :root {
 *   hyphens: $hyphenation;
 * }
 * ~~~
 *
 * This means that words are hyphenated according to the specified policy, except where overridden by
 * more specific CSS rules. See the CSS specification for more info:
 *
 * - the [`hyphens`](http://braillespecs.github.io/braille-css/#the-hyphens-property) property
 *
 * In addition, special rules may apply at page boundaries, see the "Hyphenation at page boundaries"
 * option.
 *
 * 
 *     
 *         auto
 *         Hyphenate words
 *         manual
 *         Only hyphenate words where there are soft hyphens (U+00AD)
 *         none
 *         Never hyphenate words
 *     
 * 
 */
$hyphenation: auto !default;

@if $hyphenation != manual {
	:root {
		hyphens: $hyphenation;
	}
}

/**
 * @var $line-spacing
 *
 * @brief Line spacing
 *
 * Single or double line spacing.
 *
 * The following CSS rule is included by default (where `$line-spacing` is the value of this option):
 *
 * ~~~sass
 * @if $line-spacing == double {
 *   :root {
 *     line-height: 2;
 *   }
 * }
 * ~~~
 *
 * See the CSS specification for more info:
 *
 * - the [`line-height`](http://braillespecs.github.io/braille-css/#h3_the-line-height-property)
 *   property
 *
 * 
 *     
 *         single
 *         Single
 *         double
 *         Double
 *     
 * 
 */
$line-spacing: single !default;

@if $line-spacing == double {
	:root {
		line-height: 2;
	}
}

@import "_volume-breaking.scss";
@import "_notes.scss";




© 2015 - 2024 Weber Informatics LLC | Privacy Policy