Skip to content

Instantly share code, notes, and snippets.

View Wolfr's full-sized avatar

Wolfr Wolfr

View GitHub Profile
self.navigationBarColor = [ UIColor colorWithHexString: @"#1c232c" ];
[[ UINavigationBar appearance ] setTintColor: self.navigationBarColor ];
// in sharing view:
[[ UIBarButtonItem appearance ] setTintColor: [ UIColor colorWithHexString: @"#4E565D" ] ];
// tabbar on the bottom:
[[ UITabBar appearance ] setTintColor: [ UIColor colorWithHexString: @"#1c232c" ] ];
[[ UITabBar appearance ] setSelectedImageTintColor: [ UIColor colorWithHexString: @"#ffffff" ] ];
re:
Fixed regression in .form-actions background, which was too dark, by adding a new variable @formActionsBackground and changing the color to #f5f5f5 instead of #eee.
--
I can tell you that #f5f5f5 is not visible on non Apple screens (i.e. Dell, what the rest of the world uses)
Hell, even #eee is not discernable from white on many screens.
@Wolfr
Wolfr / index.html
Created May 2, 2012 06:07
Context sensitive media queries
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Respond test</title>
<link rel="stylesheet" href="stylesheets/screen.css" type="text/css" media="screen" title="no title" charset="utf-8">
</head>
<body>
<div id="debugger">
current body width: <span></span>
NUMBERING:
# number each line of a file (simple left alignment). Using a tab (see
# note on '\t' at end of file) instead of space will preserve margins.
sed = filename | sed 'N;s/\n/\t/'
# number each line of a file (number on left, right-aligned)
sed = filename | sed 'N; s/^/ /; s/ *\(.\{6,\}\)\n/\1 /'
# number each line of file, but only print numbers if line is not blank
@Wolfr
Wolfr / require
Created August 13, 2012 15:42
<php require('file.html')>
<php require('file.html')>
I'm looking for a system that generates HTML templates from
HTML with includes.
I'm looking for a way to use includes while still able to send
a HTML/CSS/JS package off to a client that can be opened
through clicking .html files.
The system doesn't have to be PHP based, it can be a shell
@Wolfr
Wolfr / hybrid-native-web.txt
Last active November 2, 2015 07:47
hybrid-native-web.txt
Here's what I know:
* Some apps I make demand to be skinnable/themable. This is so much simpler
in CSS than in native iOS code. Instapaper used to make heavy use of webviews
for the "reading" part. Not sure if they do now.
* I have dabbled in Objective-C and Swift and I can't make an app myself.
I can make a full HTML website though, and using things like Wordpress I
can make it somewhat dynamic (I am a designer).
* UI implementation in iOS is difficult for a non-programmer like me. Straying
// Replace first occurence of comment (the main comment with nothing)
// This regex finds all CSS comments as proposed by CSS styleguide
// We replace the first one found by an empty sring
colors = colors.replace(new RegExp(/[/][*]([^*]|([*]*)[^*/])*[*]+[/]/), '')
// This regex finds level 2 CSS comments but provides an extra capturing group for the color category heading
// Replace other occurences of C style comment with jade markup
<span class="dateGroup">
<select class="input2AN" required>
<option>01</option>
<!-- All options for days, 01 to 31 -removed for blogpost -->
</select>
<select class="input2AN" required>
<option>01</option>
<!-- All options for months, januari to december - removed for blogpost -->
</select>
<select class="input4AN" required>
<span class="dateGroup">
<select class="input2AN" required>
<option>01</option>
<option>02</option>
<option>03</option>
<option>04</option>
<option>05</option>
<option>06</option>
<option>07</option>
<option>08</option>
# Wolf's Little Store gitignore defaults
.sass-cache
.DS_Store
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#