CSS4 may only be in the working draft stage, but that doesn't mean we can't begin to use some of it's capabilities in our current designs. Variables, color manipulation, custom media queries, and custom selectors are just a few of the powerful new features that can be utilized to take our css to the next level. This talk will take a look at the benefits of using postprocessers to write powerful, bleeding-edge CSS and have it work in today's browsers.
Rails applications are always fun for the first 2 months. After some time, the initial conventions don't always fit the project. The controllers get fat, the models get fat, and the views gather more logic. How to deal with this complexity?
We'll show how to apply typical refactoring recipes to put the code back in order. You'll see examples of service objects and other patterns. All of that using the RubyMine refactoring support, extended with custom shortcuts.
The slides from the JetBrains webinar - http://info.jetbrains.com/RubyMine-Webinar-June2015-registration.html
Rails is optimised for the first weeks of development. At the later phases it's no longer the speed of adding new views and data that matters. It's often more about the different (and changing!) ways of using the data. The business logic gets more complicated.
DDD has answers to those problems. Detecting the bounded contexts is the crucial skill. Choose which parts of the app leave as CRUD and which could go into more of the tactical DDD.
C# 9 - What's the cool stuff? - BASTA! Spring 2021Christian Nagel
C# 9 delivers great new features - among them are top-level statements, records, target-typed new - and source generators. New features with many code samples available in my github repo.
EXPERTALKS: Jul 2012 - Build using GradleEXPERTALKS
This presentation was part of EXPERTALKS: Jul 2012 conducted at Equal Experts India on 28th July 2012. Visit http://meetup.com/expertalks to know more...
-------------------------------------------------------------------------------------
For quite a long time now, Build Automation on projects has been synonymous with 2 tools: Ant and Maven. While both tools are pretty effective & widely used, they have their share of shortcomings.
GRADLE brings in the much needed evolution in build automation.
Gradle combines the strengths of Maven and Ant resulting in a more effective way to build. Needless to say, it is the build tool of choice for us here at Equal Experts.
-------------------------------------------------------------------------------------
This presentation talks about Gradle. The PPT also accompanied a workshop conducted as part of EXPERTALKS: Jul 2012
Reuven Lerner's first talk from Open Ruby Day, at Hi-Tech College in Herzliya, Israel, on June 27th 2010. An overview of what makes Rails a powerful framework for Web development -- what attracted Reuven to it, what are the components that most speak to him, and why others should consider Rails for their Web applications.
Rails applications are always fun for the first 2 months. After some time, the initial conventions don't always fit the project. The controllers get fat, the models get fat, and the views gather more logic. How to deal with this complexity?
We'll show how to apply typical refactoring recipes to put the code back in order. You'll see examples of service objects and other patterns. All of that using the RubyMine refactoring support, extended with custom shortcuts.
The slides from the JetBrains webinar - http://info.jetbrains.com/RubyMine-Webinar-June2015-registration.html
Rails is optimised for the first weeks of development. At the later phases it's no longer the speed of adding new views and data that matters. It's often more about the different (and changing!) ways of using the data. The business logic gets more complicated.
DDD has answers to those problems. Detecting the bounded contexts is the crucial skill. Choose which parts of the app leave as CRUD and which could go into more of the tactical DDD.
C# 9 - What's the cool stuff? - BASTA! Spring 2021Christian Nagel
C# 9 delivers great new features - among them are top-level statements, records, target-typed new - and source generators. New features with many code samples available in my github repo.
EXPERTALKS: Jul 2012 - Build using GradleEXPERTALKS
This presentation was part of EXPERTALKS: Jul 2012 conducted at Equal Experts India on 28th July 2012. Visit http://meetup.com/expertalks to know more...
-------------------------------------------------------------------------------------
For quite a long time now, Build Automation on projects has been synonymous with 2 tools: Ant and Maven. While both tools are pretty effective & widely used, they have their share of shortcomings.
GRADLE brings in the much needed evolution in build automation.
Gradle combines the strengths of Maven and Ant resulting in a more effective way to build. Needless to say, it is the build tool of choice for us here at Equal Experts.
-------------------------------------------------------------------------------------
This presentation talks about Gradle. The PPT also accompanied a workshop conducted as part of EXPERTALKS: Jul 2012
Reuven Lerner's first talk from Open Ruby Day, at Hi-Tech College in Herzliya, Israel, on June 27th 2010. An overview of what makes Rails a powerful framework for Web development -- what attracted Reuven to it, what are the components that most speak to him, and why others should consider Rails for their Web applications.
TypeScript and Angular2 (Love at first sight)Igor Talevski
“We love TypeScript for many things… With TypeScript, several of our team members have said things like ‘I now actually understand most of our own code!’ because they can easily traverse it and understand relationships much better. And we’ve found several bugs via TypeScript’s checks. “
– Brad Green, Engineering Director - AngularJS
Building Your Own Development Tools With the Force.com Tooling APISalesforce Developers
Join us as we use the Tooling API to build a basic IDE for editing and compiling Apex Classes. We'll weigh in on existing applications that use the Tooling API, and look at what's new in Mavens Mate, a Force.com IDE plugin for Sublime Text. After this session, you'll be able to extend these open source tools or build your own.
Masterin Large Scale Java Script ApplicationsFabian Jakobs
Writing large desktop-like web applications is a challenge. Adapting such an application to different markets, languages or brands is even more of a challenge. This talk shows how the open source JavaScript framework qooxdoo can be leveraged to build such a rich internet application. As a real-life example the free web mail client gmx.com is used. This talk discusses the development model, customization and deployment of such an application.
Learn how JavaScript applications of this size and complexity are fundamentally different from classic web applications, and what issues come up when building fast, multi-language, multi-brand JavaScript applications.
Microsoft has built a rich ecosystem around the various flavors of ASP.NET – MVC, Web API and even WebForms have a place in the modern web development world. So what the heck is up with ASP.NET Core anyways? Microsoft has flipped the ASP.NET world on its head with this fast, cross-platform web framework, designed from the ground up with developers from all walks of life in mind – and the change isn’t as scary as you think.
In this session, we’ll learn about ASP.NET Core and its design philosophies. We’ll learn how to leverage several popular development tools frequently used by developers outside of the ASP.NET ecosystem, including Gulp, Bower, Node and NPM, to build and run our application. Finally, we’ll use Visual Studio Code to create and run our very first ASP.NET Core project (on a Mac no less!)
For current ASP.NET developers, we’ll also touch on the portability of your current ASP.NET code.
An Overview of the Javascript Ecosystem in 2015. Slides from this talk given at San Diego Javascript on June 2: https://www.youtube.com/watch?v=CGkPsNyI07A
En esta charla se abordarán los diversos retos que se presentan cuando se requieren diseñar APIs REST usando la JVM. Los retos que se deben afrontar son diversos y cada uno de ellos tiene su contexto y complejidad.
Contrato del API. ¿Cómo no romper el API? ¿Cómo proveer soporte para diversas versiones? ¿Cómo documentar?
Modelo de programación del API. ¿Qué tipo de REST hacer? ¿Qué framework elegir? ¿Qué lineamientos de desarrollo seguir? ¿Debemos crear un cliente del API? ¿Debemos generar clientes del API para dispositivos móviles?
¿Debe ser mi API distribuida? ¿Necesito interactuar con sistemas externos? ¿Cómo debe mi API soportar caídas de sistemas externos? ¿Qué es eso de resiliencia? ¿Debe ser mi API residente por diseño?
¿Debo soportar altas cargas de tráfico en cortos períodos de tiempo? ¿Cómo diseño mi API para que sea escalable? ¿Cómo implemento alta disponibilidad? ¿Debo correr en la nube para escalar automáticamente? ¿Cómo hago escalamiento de mi API si no corro en la nube?
¿Cómo despliego mi API? ¿Debo resolver el aprovisionamiento de recursos que mi API necesita? ¿Qué es eso de Linux Containers? ¿Me sirve Docker para correr mi API? ¿Cómo ejecuto mi API en mi ambiente local?
Don't be fooled, CSS3 isn't the future, it's the present, and is ripe for the pickin' and is ready to respond to display your sites in multiple devices right now.
TypeScript and Angular2 (Love at first sight)Igor Talevski
“We love TypeScript for many things… With TypeScript, several of our team members have said things like ‘I now actually understand most of our own code!’ because they can easily traverse it and understand relationships much better. And we’ve found several bugs via TypeScript’s checks. “
– Brad Green, Engineering Director - AngularJS
Building Your Own Development Tools With the Force.com Tooling APISalesforce Developers
Join us as we use the Tooling API to build a basic IDE for editing and compiling Apex Classes. We'll weigh in on existing applications that use the Tooling API, and look at what's new in Mavens Mate, a Force.com IDE plugin for Sublime Text. After this session, you'll be able to extend these open source tools or build your own.
Masterin Large Scale Java Script ApplicationsFabian Jakobs
Writing large desktop-like web applications is a challenge. Adapting such an application to different markets, languages or brands is even more of a challenge. This talk shows how the open source JavaScript framework qooxdoo can be leveraged to build such a rich internet application. As a real-life example the free web mail client gmx.com is used. This talk discusses the development model, customization and deployment of such an application.
Learn how JavaScript applications of this size and complexity are fundamentally different from classic web applications, and what issues come up when building fast, multi-language, multi-brand JavaScript applications.
Microsoft has built a rich ecosystem around the various flavors of ASP.NET – MVC, Web API and even WebForms have a place in the modern web development world. So what the heck is up with ASP.NET Core anyways? Microsoft has flipped the ASP.NET world on its head with this fast, cross-platform web framework, designed from the ground up with developers from all walks of life in mind – and the change isn’t as scary as you think.
In this session, we’ll learn about ASP.NET Core and its design philosophies. We’ll learn how to leverage several popular development tools frequently used by developers outside of the ASP.NET ecosystem, including Gulp, Bower, Node and NPM, to build and run our application. Finally, we’ll use Visual Studio Code to create and run our very first ASP.NET Core project (on a Mac no less!)
For current ASP.NET developers, we’ll also touch on the portability of your current ASP.NET code.
An Overview of the Javascript Ecosystem in 2015. Slides from this talk given at San Diego Javascript on June 2: https://www.youtube.com/watch?v=CGkPsNyI07A
En esta charla se abordarán los diversos retos que se presentan cuando se requieren diseñar APIs REST usando la JVM. Los retos que se deben afrontar son diversos y cada uno de ellos tiene su contexto y complejidad.
Contrato del API. ¿Cómo no romper el API? ¿Cómo proveer soporte para diversas versiones? ¿Cómo documentar?
Modelo de programación del API. ¿Qué tipo de REST hacer? ¿Qué framework elegir? ¿Qué lineamientos de desarrollo seguir? ¿Debemos crear un cliente del API? ¿Debemos generar clientes del API para dispositivos móviles?
¿Debe ser mi API distribuida? ¿Necesito interactuar con sistemas externos? ¿Cómo debe mi API soportar caídas de sistemas externos? ¿Qué es eso de resiliencia? ¿Debe ser mi API residente por diseño?
¿Debo soportar altas cargas de tráfico en cortos períodos de tiempo? ¿Cómo diseño mi API para que sea escalable? ¿Cómo implemento alta disponibilidad? ¿Debo correr en la nube para escalar automáticamente? ¿Cómo hago escalamiento de mi API si no corro en la nube?
¿Cómo despliego mi API? ¿Debo resolver el aprovisionamiento de recursos que mi API necesita? ¿Qué es eso de Linux Containers? ¿Me sirve Docker para correr mi API? ¿Cómo ejecuto mi API en mi ambiente local?
Don't be fooled, CSS3 isn't the future, it's the present, and is ripe for the pickin' and is ready to respond to display your sites in multiple devices right now.
CSS3 isn't the future, it's the present, and is ripe for the pickin' and is ready to respond to display your sites in multiple devices right now. Presented at Web 2.0 Expo New York 2011.
CSS3 isn't the future, it's the present. Learn the gamut of CSS3 properties from colors, web fonts, and visual effects, to transitions, animations and media queries. Find the inspiration and resources to go forth and implement the new properties with confidence.
CSS3 isn't the future, it's the present, and is ripe for the pickin' and is ready to respond to display your sites in multiple devices right now. Presented at Rich Web Experience 2011, Ft. Lauderdale, FL.
An introduction and demonstration of graphics and animation techniques using canvas and CSS3 working in concert in webkit with html5. Targeted for Palm webOS devices, but compatible with other webkit implementations.
Another new version of Rails. Delightful. And terrifying. What's changed this time? Fear Not!
We'll be reviewing the changes and additions to Rails 3.1, giving you a walk-through of what it all means (asset pipeline, what?), in the context of a brand new app, and an older app that will need to be upgraded.
A chronicle of my attempt to create a real time web app using pure clojure at every layer of the stack, from the client to the styles to the web server
10 Advanced CSS Techniques (You Wish You Knew More About)Emily Lewis
Presentation for Webuquerque's November 2, 2011 event.
Practical examples of some of the latest CSS 3 techniques (and a few often-forgotten CSS 2.1 ones) including: image-free gradients and text shadows, attribute selectors, transitions and transforms, and media queries
CSS4 may only be in the working draft stage, but that doesn't mean we can't begin to use some of it's capabilities in our current email designs. Variables, color manipulation, custom media queries, and custom selectors are just a few of the powerful new features that can be utilized to take email design to the next level.
Brian Graves and Ryan Heap of DEG take a look at using a combination of Style Tiles and Atomic Design to create design systems that can take content all of the places it needs to go and keep it looking great, extendable and user friendly along the way.
Winning the Design Battle on Every ScreenBrian Graves
As your designs shift across breakpoints, keeping content priority in tact while delivering a great user experience can be tough. Add to that the challenging and outdated standards of email development and the task can seem even more daunting. What can be done to deliver consistently great experiences no matter the device your customers are on? Brian takes a look at how to overcome these challenges with design strategies and advanced CSS techniques that will wrangle your content into shape.
Adapting to a Multi-Device World: A Utility Company's PerspectiveBrian Graves
How do you adapt email strategy and design to perform in the new multi-device landscape? This case study of Portland General Electric will take a look at the challenges presented by PGE’s highly mobile customer base and how creating simplified, responsive templates led to improved engagement, not just on mobile, but across the board.
We’ll cover:
Strategy - PGE’s audience and modeling content and strategy around mobile friendly design
Design - A dive into the design methods and patterns used to make PGE’s campaigns user friendly regardless of device
Results - A deeper look at how the redesign has performed, including increased engagement on mobile & desktop
Looking Forward - How can multi-device engagement be improved in the future? A look at where we see multi-device engagement heading in the coming future.
How To Optimize Your Email Workflow - TEDC13 BostonBrian Graves
Our panel of experts will share their top tips for maximizing productivity, setting client expectations, executing creative briefs, building flexible and robust template systems, and making sure your production process stays on-track.
How to Optimize Your Email Workflow - TEDC13 LondonBrian Graves
Our panel of experts will share their top tips for maximizing productivity, setting client expectations, executing creative briefs, building flexible and robust template systems, and making sure your production process stays on-track.
PDF SubmissionDigital Marketing Institute in NoidaPoojaSaini954651
https://www.safalta.com/online-digital-marketing/advance-digital-marketing-training-in-noidaTop Digital Marketing Institute in Noida: Boost Your Career Fast
[3:29 am, 30/05/2024] +91 83818 43552: Safalta Digital Marketing Institute in Noida also provides advanced classes for individuals seeking to develop their expertise and skills in this field. These classes, led by industry experts with vast experience, focus on specific aspects of digital marketing such as advanced SEO strategies, sophisticated content creation techniques, and data-driven analytics.
Fonts play a crucial role in both User Interface (UI) and User Experience (UX) design. They affect readability, accessibility, aesthetics, and overall user perception.
EASY TUTORIAL OF HOW TO USE CAPCUT BY: FEBLESS HERNANEFebless Hernane
CapCut is an easy-to-use video editing app perfect for beginners. To start, download and open CapCut on your phone. Tap "New Project" and select the videos or photos you want to edit. You can trim clips by dragging the edges, add text by tapping "Text," and include music by selecting "Audio." Enhance your video with filters and effects from the "Effects" menu. When you're happy with your video, tap the export button to save and share it. CapCut makes video editing simple and fun for everyone!
Maximize Your Content with Beautiful Assets : Content & Asset for Landing Page pmgdscunsri
Figma is a cloud-based design tool widely used by designers for prototyping, UI/UX design, and real-time collaboration. With features such as precision pen tools, grid system, and reusable components, Figma makes it easy for teams to work together on design projects. Its flexibility and accessibility make Figma a top choice in the digital age.
Transforming Brand Perception and Boosting Profitabilityaaryangarg12
In today's digital era, the dynamics of brand perception, consumer behavior, and profitability have been profoundly reshaped by the synergy of branding, social media, and website design. This research paper investigates the transformative power of these elements in influencing how individuals perceive brands and products and how this transformation can be harnessed to drive sales and profitability for businesses.
Through an exploration of brand psychology and consumer behavior, this study sheds light on the intricate ways in which effective branding strategies, strategic social media engagement, and user-centric website design contribute to altering consumers' perceptions. We delve into the principles that underlie successful brand transformations, examining how visual identity, messaging, and storytelling can captivate and resonate with target audiences.
Methodologically, this research employs a comprehensive approach, combining qualitative and quantitative analyses. Real-world case studies illustrate the impact of branding, social media campaigns, and website redesigns on consumer perception, sales figures, and profitability. We assess the various metrics, including brand awareness, customer engagement, conversion rates, and revenue growth, to measure the effectiveness of these strategies.
The results underscore the pivotal role of cohesive branding, social media influence, and website usability in shaping positive brand perceptions, influencing consumer decisions, and ultimately bolstering sales and profitability. This paper provides actionable insights and strategic recommendations for businesses seeking to leverage branding, social media, and website design as potent tools to enhance their market position and financial success.
Connect Conference 2022: Passive House - Economic and Environmental Solution...TE Studio
Passive House: The Economic and Environmental Solution for Sustainable Real Estate. Lecture by Tim Eian of TE Studio Passive House Design in November 2022 in Minneapolis.
- The Built Environment
- Let's imagine the perfect building
- The Passive House standard
- Why Passive House targets
- Clean Energy Plans?!
- How does Passive House compare and fit in?
- The business case for Passive House real estate
- Tools to quantify the value of Passive House
- What can I do?
- Resources
20. Problems with CSS
• Cross-browser compatibility issues
• Vendor prefixes
• No variables
• No inline importing
• No nested selectors
• No functions/mixins
• No color manipulation
• No basic arithmetic
21. Rise of the Preprocessors.
How we filled in the gaps.
28. Problems with Preprocessors
• Not “real” code
• Proprietary syntax
• Often written in non front-end languages
• Not as easily extensible
• Must be compiled
• Compile times can be slow
• Browsers are catching up
38. PostCSS Advantages
• Write CSS using CSS
• Use CSS3 without worry
• Even Use CSS4
• Modular
• Works with your existing task runner
• Faster compile times
• Built on Node
• No Ruby dependencies
• Easier to debug
• Tons of existing plugins
• Can’t find a plugin? Write one
in javascript.
57. Problems with CSS
• Cross-browser compatibility issues
• Vendor prefixes
• No variables
• No inline importing
• No nested selectors
• No functions/mixins
• No color manipulation
• No basic arithmetic
Throughout 2012 there was a hoax taking place on Facebook and Twitter. Someone had Photoshopped the display of the Delorian from Back to the Future II to read June 27th, 2012.
Everyone, well everyone that didn’t know the movie well, posted away. All, wanting to know where there hover boards were.
so why did this phenomenon take off
it’s 2015
We may not have flying cars
but we do have hover boards. just ask justin bieber or wiz.
and we have slightly better 3d graphics
and thankfully we’ve all but killed off fax machines.
and…
So, how Did We Get Here? how did we get to the point where we can say css is amazing?
One of the things that got us here was the wisdom of the csswg to make the css spec more modular.
While trying to finish CSS 2.1, they realized that these big monolithic "versions" weren't any good. They were difficult to maintain, and slow to develop.
So they decided to split up the CSS language into a bunch of independent modules.
So, despite what you may have heard, there really is no such thing as css3
Each css module can now level up independently, and contains only a smallish set of features, so it's harder for a large set of features to be slowed down by a single stubborn feature.
Some modules start out at level 3, if they extend something from CSS2.1.
Others start out at level 1, if they're something new (for example, Flexbox).
the end result of all of this modularization is that we’re now seeing css features come out at a record pace.
but while they were coming out faster that before, most of them only focused on the visual aspects of css
things like animation - transitions, transforms & keyframes
typography - web fonts, hyphenation, etc
new layout techniques like flexbox, columns, grids
everyone knows the inherent problems with absolute pos and floats. some of the workarounds we used for years. these layout techniques are great and address a lot of those problems.
and while all of these things helped to solve those existing problems. they didn’t get to the core of the problems with css.
this is what you hear from a lot of developers.
and it’s because CSS does have a lot of inherent problems still
Cross-browser compatibility issues
Vendor prefixes
No variables
No inline importing
No nested selectors
No functions/mixins
No color manipulation No basic arithmetic
Developers wanted these problems solved, but for a long time, the spec updates coming through were only addressing the visual front end.
Developers wanted better authoring tools and realized they had to do it themselves.
Enter preprocessors! People started to fill in those gaps themselves
to help them do this they created things like sass that gave them many of these powers
sass is probably the most popular of the bunch but there’s also
also fairly popular, less does many of the same things as sass, just maybe with a little bit smaller user base
and there’s also stylus - probably the least popular, but maybe the most powerful. adds additional things like built in globbing and some other things. popular with people who hate punctuation. :)
preprocessors gave devs the authoring enhancements they craved- those things like variables, nesting, color functions, custom media queries
The way all of these work is: A developer writes code using a preprocessor’s proprietary syntax.
A task runner notices the code change and compiles the preprocessor code.
Standards-based CSS is output by the task runner and fed to the browser.
But preprocessors perpetuate a problem
We’re putting more and more layers of abstraction between the code we write and the code the browser can read
And that’s because preprocessors are their own programming languages when you really think about it.
Not "real" code - a browser can never read sass
Proprietary syntax
Often written in “non-front-end" languages
Not as easily extensible -
Must be compiled, today and forever - sass will never natively run in a browser
Compile times can be slow
Browsers are catching up
but well they had they issues, preprocessors did solve our problems.
and as use of them surged, the w3c began to take notice.
But they haven’t just adopted everything from Sass. They’ve taken more of an in with the good out with the bad type approach.
And now we’re at a point where many of these authoring tools are in proposed or working draft stages in native css. Some have even made their way into browsers.
That means that we’re at the beginning stages of being able to use these things in native css.
Free from sass, less, or stylus
things like variables
color functions
nesting
custom media queries
but all of these things are just proposed spec
they aren’t approved and very few of them have landed in browsers. really only variables in firefox.
so, what is the solution?
Instead of using a preprocessor. We can use what’s been referred to as a postprocessor. Who here has heard of PostCSS or just the general concept of a postprocessor?
now to be fair. things like PostCSS, which is the most popular, aren’t really postprocessors. That is, they don’t happen at runtime, so technically yes, postprocessors are still preprocessors.
but there definitely are differences between something like postcss and sass
If you remember — our preprocessor process:
A developer writes code using a preprocessor’s proprietary syntax.
A task runner notices the code change and compiles the preprocessor code.
Standards-based CSS is output by the task runner and fed to the browser.
with our post processor or transpiler, instead, our process looks like this:
A developer writes code in standards based (even next-gen) CSS.
A task runner notices the change and transpiles it into browser-friendly CSS.
Standards-based CSS is output by the task runner and fed to the browser.
PostCSS Advantages:
Write your CSS using CSS.
Use CSS3 with reckless abandon.
Hell, use CSS4. Who cares if that's not actually a thing yet?
Modular - only use what you need
Works with your existing task runners - grunt, gulp, or probably even fly.js that I heard about all of 12 hours ago
Faster compile times
Built on Node! - which means No more Ruby dependencies!
Easier to debug if you’re a js dev
Countless plugins
Can't find a plugin that does what you want? Write your own in nothing but JavaScript.
There’s a good chance you’ve at least heard of or are already using part of the postCSS ecosystem.
Autoprefixer - A popular replacement for Compass's vendor prefix mixins.
You define which browsers you need to support
Cross-references the caniuse database
Automatically adds vendor prefixes to your CSS3 properties.
No need to memorize special function names; just write CSS and let it do its work in the background.
but autoprefixer is just one postcss plugin
there are many many more.
and you may notice that this list and the list of upcoming native css authoring tools is very similar.
VARIABLES
if you’re used to sass variables, the syntax may look a little different. but the basic concept is the same as a variable used in any other language.
you define your variables with that dash dash you see there in root.
and then call it with var()…
is the syntax as clean as the $ sign in sass? arguably not, but you honestly get used to it very quickly, and…it is native spec, so you’re going to have to use it eventually
one caveat, if you’re new to variables - make sure to use a naming system that makes sense
you should know just from looking at your variable, what it represents. otherwise they lose most of their value.
Color Module Level 4 - allow you to modify colors
Use postcss-color.
You may have done similar things in sass with saturation or lighten and darken functions.
Essentially, color functions work like this:
using tint as an example - what tint does is mix your base color with white.
so if you have an element, say a link that’s blue and then you want to set a modifier of some sort off of your base color, you can do so right in your css.
call the color in your color function, and pass in tint() plus the percentage of white you want to mix it with. so, essentially the amount you want to lighten it by and the result is what you see here.
shade is more or less works the same as tint, only instead of mixing the base color with white it mixes it with black, darkening it.
and tints and shades aren’t your only color options
you can do things with alpha transparently, hsl, you can blend colors,
and there’s even some new crazy stuff in the spec you can do like guarantee contrast.
nested selectors - this IS in the spec…but only in authoring state…that is to say…not very far along at all
the authoring state of the spec is proposed to work like this:
red set of curly braces
and you can use postcss-nesting if you want to use that spec style
but there is also postcss plugin for sass style nesting if that’s what you’re used to and more comfortable with
postcss-nested
Just like Sass, remember to use them sparingly.
custom media queries - let you set your media queries to variables
custom media queries example
easier to reference
works well with “resize until it looks like shit - add a media query approach”
estimate media queries and then adjust as you go
also good for not having to remember the exact pixel dimensions you set your breakpoints at - you can just reference small, medium, large, etc
One of the things not in the spec, at least yet, but that we weren’t willing to give up is the concept of partials and globbing
And the good news is that if you can do it with sass, you can probably pretty easily do it with postcss.
postcss-import allows you to do basic partials.
and if you’re a fan of globbing…grunt-sass-globbing will still work for you
in fact aaron has spent probably more time than necessary trying to convince the creator to drop sass from the name
Mixins
As a team, we’re honestly of the opinion that if you’ve got super complex mixins you’re probably over-engineering. But there are definitely use cases, so if you want mixins, which aren’t yet in the spec, you can use the postcss-mixins plugin.
FRONT-END DEVELOPMENT
IS AT A CROSSROADS.
We're not that far away from next-gen CSS and JS being adopted into standards and supported natively in all modern browsers.
Until that happens, it's a wonderful time to get as close to "real" code as you can in your development process.
Let’s take a look back at our problems with CSS. Which ones have we solved?
Really? Most of them!
One day, hopefully, we really can get to a point where all of this is available in browsers natively.
But even though that’s not yet the case, the specs are out there and they’re catching up.
There’s no longer any reason to hide behind a language of abstraction.
Let’s choose to work towards ONCE AGAIN getting as close as we can to REAL, POWERFUL, CSS.