Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Commit

Permalink
Update from ruby Slate v2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeRalphson committed Oct 30, 2017
1 parent 3209dc4 commit 1e33998
Show file tree
Hide file tree
Showing 4 changed files with 151 additions and 3 deletions.
4 changes: 3 additions & 1 deletion buildstyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ function sassRender(infile,outfile) {
}, function(err, result) {
if (err) console.error(err)
else {
fs.writeFile(outfile,result.css.toString(),'utf8');
fs.writeFile(outfile,result.css.toString(),'utf8',function(err){
if (err) console.warn(err.message);
});
}
});
}
Expand Down
4 changes: 3 additions & 1 deletion pub/css/screen.css
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,8 @@ html, body {
text-align: left;
vertical-align: top;
line-height: 1.6; }
.content table th code, .content table td code {
white-space: nowrap; }
.content table th {
padding: 5px 10px;
border-bottom: 1px solid #ccc;
Expand Down Expand Up @@ -731,7 +733,7 @@ html, body {
font-size: 14px; }
.content .search-highlight {
padding: 2px;
margin: -2px;
margin: -3px;
border-radius: 4px;
border: 1px solid #F7E633;
background: linear-gradient(to top left, #F7E633 0%, #F1D32F 100%); }
Expand Down
140 changes: 140 additions & 0 deletions source/stylesheets/_rtl.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
////////////////////////////////////////////////////////////////////////////////
// RTL Styles Variables
////////////////////////////////////////////////////////////////////////////////

$default: auto;

////////////////////////////////////////////////////////////////////////////////
// TABLE OF CONTENTS
////////////////////////////////////////////////////////////////////////////////

#toc>ul>li>a>span {
float: left;
}

.toc-wrapper {
transition: right 0.3s ease-in-out !important;
left: $default !important;
#{right}: 0;
}

.toc-h2 {
padding-#{right}: $nav-padding + $nav-indent;
}

#nav-button {
#{right}: 0;
transition: right 0.3s ease-in-out;
&.open {
right: $nav-width
}
}

////////////////////////////////////////////////////////////////////////////////
// PAGE LAYOUT AND CODE SAMPLE BACKGROUND
////////////////////////////////////////////////////////////////////////////////
.page-wrapper {
margin-#{left}: $default !important;
margin-#{right}: $nav-width;
.dark-box {
#{right}: $default;
#{left}: 0;
}
}

.lang-selector {
width: $default !important;
a {
float: right;
}
}

////////////////////////////////////////////////////////////////////////////////
// CODE SAMPLE STYLES
////////////////////////////////////////////////////////////////////////////////
.content {
&>h1,
&>h2,
&>h3,
&>h4,
&>h5,
&>h6,
&>p,
&>table,
&>ul,
&>ol,
&>aside,
&>dl {
margin-#{left}: $examples-width;
margin-#{right}: $default !important;
}
&>ul,
&>ol {
padding-#{right}: $main-padding + 15px;
}
table {
th,
td {
text-align: right;
}
}
dd {
margin-#{right}: 15px;
}
aside {
aside:before {
padding-#{left}: 0.5em;
}
.search-highlight {
background: linear-gradient(to top right, #F7E633 0%, #F1D32F 100%);
}
}
pre,
blockquote {
float: left !important;
clear: left !important;
}
}

////////////////////////////////////////////////////////////////////////////////
// TYPOGRAPHY
////////////////////////////////////////////////////////////////////////////////
h1,
h2,
h3,
h4,
h5,
h6,
p,
aside {
text-align: right;
direction: rtl;
}

.toc-wrapper {
text-align: right;
direction: rtl;
font-weight: 100 !important;
}


////////////////////////////////////////////////////////////////////////////////
// RESPONSIVE DESIGN
////////////////////////////////////////////////////////////////////////////////
@media (max-width: $tablet-width) {
.toc-wrapper {
#{right}: -$nav-width;
&.open {
#{right}: 0;
}
}
.page-wrapper {
margin-#{right}: 0;
}
}

@media (max-width: $phone-width) {
%left-col {
margin-#{left}: 0;
}
}
6 changes: 5 additions & 1 deletion source/stylesheets/screen.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
@import 'normalize';
@import 'variables';
@import 'icon-font';
// @import 'rtl'; // uncomment to switch to RTL format

/*
Copyright 2008-2013 Concur Technologies, Inc.
Expand Down Expand Up @@ -405,6 +406,9 @@ html, body {
text-align: left;
vertical-align: top;
line-height: 1.6;
code {
white-space: nowrap;
}
}

th {
Expand Down Expand Up @@ -497,7 +501,7 @@ html, body {

.search-highlight {
padding: 2px;
margin: -2px;
margin: -3px;
border-radius: 4px;
border: 1px solid #F7E633;
background: linear-gradient(to top left, #F7E633 0%, #F1D32F 100%);
Expand Down

0 comments on commit 1e33998

Please sign in to comment.