Skip to content

Instantly share code, notes, and snippets.

View AdamMarsden's full-sized avatar

Adam Marsden AdamMarsden

View GitHub Profile
sassLint = require('gulp-sass-lint');
gulp.task('sass-lint', function () {
return gulp.src([
'sass/**/*.scss',
'!sass/dont-watch-this.scss'
])
.pipe(sasslint())
.pipe(sasslint.format())
.pipe(sasslint.failOnError())
@AdamMarsden
AdamMarsden / cssdo.md
Last active March 18, 2023 08:05
CSS Declaration order

CSS Declaration Order

Related property declarations should be grouped together following the order:

  • Box
  • Border
  • Background
  • Text
  • Other

Box includes any property that affects the display and position of the box such as display, float, position, left, top, height, width and so on. These are most important because they affect the flow of the rest of the document.

@AdamMarsden
AdamMarsden / left_right_line.html
Created April 14, 2015 09:13
Left & right border lines next to text
<div class="left_right_lines">
<span>
<h6>Text with lines</h6>
</span>
</div>
@AdamMarsden
AdamMarsden / sassas.md
Last active April 20, 2024 14:45
Sass Architecture Structure

Sass Architecture Structure

sass/
|
|– base/
|   |– _reset.scss       # Reset/normalize
|   |– _typography.scss  # Typography rules
|   ...                  # Etc…
|
@AdamMarsden
AdamMarsden / zshgit.md
Last active April 13, 2024 08:37
Oh My Zsh - Git Cheat Sheet

#Oh My Zsh - Git Cheat Sheet

ggit

gstgit status

glgit pull

gupgit pull --rebase