When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}| (function (context, trackingId, options) { | |
| const history = context.history; | |
| const doc = document; | |
| const nav = navigator || {}; | |
| const storage = localStorage; | |
| const encode = encodeURIComponent; | |
| const pushState = history.pushState; | |
| const typeException = 'exception'; | |
| const generateId = () => Math.random().toString(36); | |
| const getId = () => { |
| let input = { first_name: 'Foo', last_name: 'Bar' }; | |
| // application/graphql example | |
| /* eslint-disable no-unused-vars */ | |
| let configGraphQL = { | |
| url: '/graphql', | |
| method: 'post', | |
| headers: { 'Content-Type': 'application/graphql' }, | |
| data: `mutation { user(id: 1, input: ${ JSON.stringify(input) }){ full_name } }` | |
| }; |
| from __future__ import print_function | |
| from kivy.app import App | |
| from kivy.uix.slider import Slider | |
| from kivy.uix.boxlayout import BoxLayout | |
| class ModifiedSlider(Slider): | |
| def __init__(self, **kwargs): | |
| self.register_event_type('on_release') | |
| super(ModifiedSlider, self).__init__(**kwargs) |
| <?php | |
| kirbytext::$tags['figure'] = array( | |
| 'attr' => array( | |
| 'width', | |
| 'height', | |
| 'alt', | |
| 'text', | |
| 'title', | |
| 'class', |
Hello, visitors! If you want an updated version of this styleguide in repo form with tons of real-life examples… check out Trellisheets! https://github.com/trello/trellisheets
“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”
You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?
| leafletData.getMap().then(function(map) { | |
| theMap = map; | |
| highlightTrackGeoJson = L.geoJson(highlightTrack, { | |
| style: function (feature) { | |
| return { | |
| weight: 12, | |
| opacity: 1, | |
| color: "#ffffff" | |
| }; | |
| } |
| Go to Bitbucket and create a new repository (its better to have an empty repo) | |
| git clone git@bitbucket.org:abc/myforkedrepo.git | |
| cd myforkedrepo | |
| Now add Github repo as a new remote in Bitbucket called "sync" | |
| git remote add sync git@github.com:def/originalrepo.git | |
| Verify what are the remotes currently being setup for "myforkedrepo". This following command should show "fetch" and "push" for two remotes i.e. "origin" and "sync" | |
| git remote -v |
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |