Scanning the Internet for External Cloud Exposures via SSL Certs
Does my DIV look big in this?
1. Does my <div/>
look big in this?
Putting some DRY in Grails UI
with Glen Smith
2. Ancient Hacker Wisdom…
If the ax is dull and its edge unsharpened, more
strength is needed, but skill will bring success.
Solomon, Ecclesiastes 10:10
5. Since we’re talking…
Sort out the DRY up
mess of JS event Resources,
handling… Forms & Nav…
JavaScript HTML
CSS
DRY up CSS and
standardise
fonts/layout..
6.
7. Best Case Outcomes
• Learn Grails Resources
• Pickup some UI Plugin Love
• Try Less CSS & Twitter Bootstrap
• Swap stories & have fun!
36. Strategy
• Create a GSP that contains all your
<bean:xxxxTemplate> tags.
• In your layout do <g:render
template=“/common/formconf"/>
• This will set up all your field styling for
your pages.
50. Enter Less.css
• Variables
• Mixins (with parameters!)
• Nested Rules
• Functions & Operators
• Compiles to real CSS (or use as .less
files with JS)
51. How It Works
• Write source.less using variables,
myfile.less mixins & nesting
• Precompile (or use JavaScript compiler
Lessc or
less.js
straight from the DOM)
• Generate .css file for your browser
myfile.css
61. Everything* you need to know
.span16
.row
.container OR .container-fluid
.span12 .span4
.row
.span4
.span6 .span6
.row
.offset4
* For very small values of everything
66. What we’ve learned…
Sort out the DRY up
mess of JS event Resources,
handling… Forms & Nav…
JavaScript HTML
CSS
DRY up CSS and
standardise
fonts/layout..