Skip to content

Commit

Permalink
Revert "drop assets"
Browse files Browse the repository at this point in the history
This reverts commit 455e16b.
  • Loading branch information
gjtorikian committed Oct 23, 2024
1 parent 455e16b commit 632efff
Show file tree
Hide file tree
Showing 15 changed files with 133 additions and 132 deletions.
3 changes: 0 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,5 @@
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[ruby]": {
"editor.defaultFormatter": "Shopify.ruby-lsp"
}
}
5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
source 'https://rubygems.org'

gem 'github-pages', group: :jekyll_plugins
gem "jekyll-assets", group: :jekyll_plugins

# Remove when jekyll-assets >= 4.0
# https://github.com/envygeeks/jekyll-assets/issues/622
gem "sprockets", "~> 3.7"

gem 'rake'
5 changes: 5 additions & 0 deletions _assets/css/_ace.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.row div.ace-overrides {
position: relative;
height: 200px;
border: 1px #666 solid;
}
50 changes: 50 additions & 0 deletions _assets/css/_carbon.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#ad {
width: 125px;
position: fixed;
z-index: 99;
bottom: 10px;
right: 10px;
background-color: #fff;
border-radius: 3px;
font-size: 13px;
}
#ad a {
display: inline-block;
color: #4f5959;
font-weight: normal;
}
#ad span {
color: #4f5959;
display: block;
}
#ad img {
width: 125px;
}
#ad .carbon-img,
#ad .carbon-text {
display: block;
margin-bottom: 4px;
font-weight: normal;
color: #304455;
}
#ad .carbon-poweredby {
color: #aaa;
font-size: 10px;
letter-spacing: 0.8px;
text-transform: uppercase;
font-weight: normal;
}

@media screen and (max-width: 1300px) {
.content.with-sidebar {
margin-left: 290px;
}
#ad {
z-index: 1;
position: relative;
padding: 0;
bottom: 0;
right: 0;
width: 100%;
}
}
24 changes: 24 additions & 0 deletions _assets/css/_lessons.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
span.help-tooltip {
float: left;
}

.tooltip-inner {
min-width: 150px; //the minimum width
}

.renderpad {
background: rgba(255, 255, 255, 0.9);
border: 1px black dashed;
}

div.toBeRevealed {
display: none;
}

ol blockquote p {
font-size: 14px;
}

.btn-skip {
margin-top: 1em;
}
47 changes: 47 additions & 0 deletions _assets/css/main.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
body {
padding-bottom: 60px;
}

h1.title {
margin-bottom: 40px;
border-bottom: 1px solid black;
}

.nav-link.icon-github {
font-size: 20px;
}

/* Custom container */
.container {
margin: 0 auto;
max-width: 1000px;
}
.container > hr {
margin: 60px 0;
}

.navbar .center-nav,
.navbar .center-nav > li {
float: none;
display: inline-block;
*display: inline; /* ie7 fix */
*zoom: 1; /* hasLayout ie7 trigger */
vertical-align: top;
}

.navbar-inner {
text-align: center;
}

.navbar-inner {
border-radius: 0px;
padding-left: 0px;

.nav li a {
margin-top: 3px;
}
}

@import "ace";
@import "lessons";
@import "carbon";
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 2 additions & 4 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />

<link href="/assets/css/main.css" rel="stylesheet" />
{% asset main.css %}
</head>

<body>
Expand Down Expand Up @@ -255,9 +255,7 @@ <h1 class="title">{{ page.title }}</h1>
var environment = "production";
</script>

<script src="/assets/js/main.js"></script>

{% if page.locale != 'en' %}
{% asset main.js %} {% if page.locale != 'en' %}
<script src="/{{ page.locale }}/lesson_plans.js"></script>
{% endif %}
</body>
Expand Down
125 changes: 0 additions & 125 deletions assets/css/main.css

This file was deleted.

0 comments on commit 632efff

Please sign in to comment.