Skip to content

Instantly share code, notes, and snippets.

@Altreus
Created October 2, 2014 17:42
Show Gist options
  • Save Altreus/03d83f6aa4100583ecfe to your computer and use it in GitHub Desktop.
Save Altreus/03d83f6aa4100583ecfe to your computer and use it in GitHub Desktop.
$breakpoint: 992px;
@mixin small-screen {
@media (max-width: $breakpoint - 1) {
@content;
}
}
@mixin big-screen {
@media (min-width: $breakpoint) {
@content;
}
}
div {
&.form--l1 {
@include small-screen {
font-size: 32pt;
}
@include big-screen {
font-size: 18pt;
}
}
&.form--l2 {
@include small-screen {
font-size: 26pt;
}
@include big-screen {
font-size: 16pt;
}
}
&.form--l3 {
@include small-screen {
font-size: 20pt;
}
@include big-screen {
font-size: 12pt;
}
}
}
body {
@include big-screen {
max-width: 900px;
margin: 1em auto;
}
@include small-screen {
margin: 0;
}
}
body /deep/ .abbreviation {
// Don't show abbreviations in big modes
@include big-screen {
display: none;
}
}
body /deep/ .fulltext {
// Don't show fulltext in small modes.
@include small-screen {
display: none;
}
}
div.skill-data.skill-name, div.skill-data.skill-key, div.skill-data.skill-eq {
color: #173228 !important;
font-size: 160%;
font-family: 'Lusitana', serif;
font-weight: 700;
margin-top: 0.5em;
}
div.skill-data {
&.skill-ability:before, &.skill-misc:before {
content: '+';
position: absolute;
top: 0.3em;
left: -0.3em;
font-size: 160%;
font-family: 'Lusitana', serif;
}
}
div.skill-eq {
@include big-screen {
text-align: center;
}
@include small-screen {
text-align: right;
}
}
div.computed {
@include big-screen {
/deep/ input[readonly] {
border-width: 2px;
}
}
/deep/ input[readonly] {
background: white;
border-color: #D0D3EC;
border-width: 0 0 2px 2px;
}
/deep/ input.summary {
text-decoration: underline;
}
/deep/ label {
border-right-color: #D0D3EC;
}
}
div.skill-header {
font-size: 100% !important;
}
div.breakdown div.connector-line {
border-right: 2px solid #D0D3EC;
min-height: 1em;
position: relative;
right: 15px;
bottom: 15px;
}
div.breakdown {
display: none;
}
div.breakdown.active {
display: block !important;
}
div.breakdown div.summary-data {
border: 2px solid #D0D3EC;
padding: 1em inherit;
}
body /deep/ input.summary {
cursor: pointer;
}
fieldset {
margin-top: 1.5em;
}
legend {
font-size: 32pt;
background: #e4ffff;
padding: 0.1em 0.2em;
border: 0;
border-bottom: 2px solid #F2C49E;
font-family: 'Oxygen', sans-serif;
}
body {
/** To edit this background, follow this link:
http://svgeneration.com/generate/GPlay?height=8&width=8&background=e4ffff&overlay=9EF2F2&weight=15&padding=0.2&
*/
background-color: #e4ffff;
background-image:url('/charsheet/background.svg');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment