SlideShare a Scribd company logo
Amelia Marschall-Miller
Gravity Works Design + Development

ADVANCED CSS IN DOTNETNUKE
1.
[Advanced
 Selectors]
Advanced Attribute Selectors
l  rel= match the following attribute value exactly
l  Target links:
     –  a[href="http://dotnetnuke.com"]
        { color: red; }!
l  Target form input types:
     –  input[type="text"] { padding: 3px; } !
     –  input[type="radio"] { float: left; }!
l  Target images:
     –  img[align=right] { margin-left:10px; }!
Advanced Attribute Selectors
l  rel*= match the following value found anywhere in
    the attribute
l  Target external links only:
     –  a[rel*="external"] { color: red; }!


l  rel^= match the attribute value that starts with this
l  Target any link within a domain:
     –  a[href^=”http://wikipedia.com"]
        { color: red; }!
Advanced Attribute Selectors
l  rel$= match the attribute value that ends with this
l  Target file extensions:
     –  a[href$=".pdf"] { 

        background: url(icon-pdf.png) left; }!
     –  a[href$=".doc"] { 

        background: url(icon-doc.png) left; }!


!
Advanced Attribute Selectors
l  Note that you can use multiple attribute selectors in
    the same selector, which requires all of them to match
    for the selector itself to match.
     –  a[href$=".pdf”][title^="Important"]
        { color: red; }!




Support:




                                   7+
Advanced Pseudo Selectors
l  input[type=“radio”]:checked { color: red; }
l  div:not(#container) { color: blue; }!
l  p::first-line { font-size: 1.2em; }!
l  p::first-letter { font-size: 2em; }
l  .container:before {content:”url(icon.png)”;}!
   !
Support:




                        variable
Advanced Child Selectors
l  Target a specific list item:
     –  li:nth-child(3) { color: red; } !
l  Target every nth item:
     –  li:nth-child(3n) { color: red; }!
     –  tr:nth-child(odd) { background-color: grey;} 
l  Target a specific list item from the end:
     –  li:nth-last-child(3) { color: red; } !
Support:




 3.5+                       9+
2.
Box Shadow
  Spread
Box Shadow Spread
l  4th Box Shadow property:
     –  box-shadow: 0 0 6px 10px #000;!
l  Fake multiple borders
l  Negative spread prevents blurry sides:
     –  box-shadow: 0 15px 15px -12px #222;!
l  EXAMPLES
Support:




  4+                        9+
3.
Ellipse Containers
Ellipse Containers
l  Set border-radius:50%; for a flexible ellipse.
l  Perfect for containers!
l  EXAMPLE




Support:




  4+                            9+        11+
4.
CSS 3 Cursors
CSS3 Cursors
l  NEW available custom cursor: properties
l  EXAMPLE




Support:

        *                           *         *

 *Not all options supported
5.
Pointer Events
Pointer Events (click behind!)
l  pointer-events:none; !
l  Allows elements below the set div to be clicked on
l  EXAMPLE




Support:




 3.6+
6.
Transitions
Transitions
l  transition-property: The CSS property that will be
    altered
l  transition-duration: How long the transition will
    take (2s)
l  transition-timing-function: Control how the
    duration is timed
l  transition-delay: Length of pause between action
    and transition (2s)
Transitions
l  CSS properties that can be transitioned:
     –  Background color         –  Opacity
     –  Background position      –  Margin
     –  Border-color             –  Padding
     –  Border width             –  Text-shadow
     –  Color                    –  Box-shadow
     –  Font-size                –  Line-height
     –  Font-weight              –  Text-indent
     –  Height, Width            –  Visibility
     –  Left, Right, Top, Bottom –  Z-index
     –  Transform                –  “all”
Transitions
l  transition-timing-function: Property options:
     –  linear: Constant speed
     –  ease: Gradual slow down
     –  ease-in: Speed up
     –  ease-out: Slow down
     –  ease-in-out: Speed up and then slow down
     –  cubic-bezier(x1, y1, x2, y2): X and Y
        values defining the shape of a bezier curve the
        transition will follow
Transitions
l  Put the transition properties on the original element
l  Put the desired change properties on the action element
     .object { !
         color:#000;!
         transition-property:color; !!
         transition-duration:1s; !!
         transition-timing-function:linear; }!
     .object:hover { color:#fff; }!
Transitions
l  Can transition multiple CSS properties at once
l  Use browser prefixes
l  EXAMPLE 1      EXAMPLE 2
l  leaverou.github.com/animatable
l  cubic-bezier.com / roblaplaca.com/examples/bezierBuilder

Support:




  4+                                 10+    10.5+
7.
CSS Arrows
CSS Arrows
l  Rotate a square div placed before an element to create
    an arrow coming out of it
l  .comment .text:before {     

    transform: rotate(45deg); }
l  EXAMPLE
l  Alternate technique: http://cssarrowplease.com!

Support (CSS Transform):




                                  9+
8.
Background
 Patterns
Background Patterns
l  Adjust the percentage of the color stop
    in a linear gradient for thinner stripes
l  Use background-size to repeat gradient
l  Rotate issue: 0deg:
   –  WC3 Recommendation: repeat top-bottom
   –  Prefixed browser implementation: repeat left-right
l  background: -webkit-linear-gradient(0deg, #999 25%, #ddd 25%);

    background: -moz-linear-gradient(0deg, #999 25%, #ddd 25%);

    background: linear-gradient(90deg, #999 25%, #ddd 25%);

  background-size: 30px 30px;!
l  Stripe Example
Background Patterns
l  Two diagonal repeating gradients
    makes a checkerboard pattern
l  Checkerboard Example

l  background-color: #EEEEEE;

  background: 

  linear-gradient(45deg, black 25%, transparent
  25%, transparent 75%, black 75%, black), 

  linear-gradient(135deg, black 25%, transparent
  25%, transparent 75%, black 75%, black); 

  background-size: 60px 60px;!
Background Patterns
l  A diagonal gradient with a single color stop
    creates a triangle
l  Four positioned triangles repeated
    creates a zig zag
l  Zig Zag Example
l  background-color: #FFC;

    background: 

    linear-gradient(135deg, #15A86D 25%, transparent 25%), 

    linear-gradient(225deg, #15A86D 25%, transparent 25%), 

    linear-gradient(315deg, #15A86D 25%, transparent 25%), 

    linear-gradient(45deg, #15A86D 25%, transparent 25%); 

    background-position: -40px 0, -40px 0, 0 0, 0 0; 

    background-size: 80px 80px; !
Background Patterns
l  CSS Pattern Gallery: lea.verou.me/css3patterns


Support (with browser prefixes):



 3.6+                  5.1+        11.1+

Support (without browser prefixes):



 16          10
9.
Beautiful Buttons
Beautiful Buttons


l  EXAMPLE

l  Add a slide out detail on :hover!
     –  Increase right padding of button
     –  Change width of the extra text span from 0px to
        100px
     –  Animate: transition: all 0.3s linear;!
10.
Prefix Free CSS
Prefix Free CSS
l  “-prefix-free lets you use only unprefixed CSS
    properties everywhere. It works behind the scenes,
    adding the current browser’s prefix to any CSS code,
    only when it’s needed.”
l  leaverou.github.com/prefixfree



Support:




 3.5+                   4+           9+      10+
Questions?

Amelia Marschall-Miller
Gravity Works Design + Development
Partner & Creative Director

GravityWorksDesign.com


     @MimiAmelia

More Related Content

What's hot

Simplify your CSS with Stylus and Nib
Simplify your CSS with Stylus and NibSimplify your CSS with Stylus and Nib
Simplify your CSS with Stylus and Nib
Christian Joudrey
 
Css3
Css3Css3
Precise Android Text Drawing
Precise Android Text DrawingPrecise Android Text Drawing
Precise Android Text Drawing
Richard Creamer
 
Sass and Compass - Getting Started
Sass and Compass - Getting StartedSass and Compass - Getting Started
Sass and Compass - Getting Startededgincvg
 
Canvas - HTML 5
Canvas - HTML 5Canvas - HTML 5
Canvas - HTML 5
Jaeni Sahuri
 
ECS19 - Chris Kent - List Formatting in Office 365 and SharePoint 2019
ECS19 - Chris Kent - List Formatting in Office 365 and SharePoint 2019ECS19 - Chris Kent - List Formatting in Office 365 and SharePoint 2019
ECS19 - Chris Kent - List Formatting in Office 365 and SharePoint 2019
European Collaboration Summit
 
Regex intro
Regex introRegex intro
Regex intro
Ghulam Imaduddin
 
Wrangling the CSS Beast with Sass
Wrangling the CSS Beast  with SassWrangling the CSS Beast  with Sass
Wrangling the CSS Beast with Sass
Rob Friesel
 
Eye Candy Without Images: Fun With CSS3
Eye Candy Without Images: Fun With CSS3Eye Candy Without Images: Fun With CSS3
Eye Candy Without Images: Fun With CSS3
Shoshi Roberts
 

What's hot (10)

Simplify your CSS with Stylus and Nib
Simplify your CSS with Stylus and NibSimplify your CSS with Stylus and Nib
Simplify your CSS with Stylus and Nib
 
Css3
Css3Css3
Css3
 
Precise Android Text Drawing
Precise Android Text DrawingPrecise Android Text Drawing
Precise Android Text Drawing
 
Sass and Compass - Getting Started
Sass and Compass - Getting StartedSass and Compass - Getting Started
Sass and Compass - Getting Started
 
HTML 5_Canvas
HTML 5_CanvasHTML 5_Canvas
HTML 5_Canvas
 
Canvas - HTML 5
Canvas - HTML 5Canvas - HTML 5
Canvas - HTML 5
 
ECS19 - Chris Kent - List Formatting in Office 365 and SharePoint 2019
ECS19 - Chris Kent - List Formatting in Office 365 and SharePoint 2019ECS19 - Chris Kent - List Formatting in Office 365 and SharePoint 2019
ECS19 - Chris Kent - List Formatting in Office 365 and SharePoint 2019
 
Regex intro
Regex introRegex intro
Regex intro
 
Wrangling the CSS Beast with Sass
Wrangling the CSS Beast  with SassWrangling the CSS Beast  with Sass
Wrangling the CSS Beast with Sass
 
Eye Candy Without Images: Fun With CSS3
Eye Candy Without Images: Fun With CSS3Eye Candy Without Images: Fun With CSS3
Eye Candy Without Images: Fun With CSS3
 

Similar to DotNetNuke World CSS3

Big Design Conference: CSS3
Big Design Conference: CSS3 Big Design Conference: CSS3
Big Design Conference: CSS3 Wynn Netherland
 
Compass, Sass, and the Enlightened CSS Developer
Compass, Sass, and the Enlightened CSS DeveloperCompass, Sass, and the Enlightened CSS Developer
Compass, Sass, and the Enlightened CSS Developer
Wynn Netherland
 
Mobile-first OOCSS, Sass & Compass at BBC Responsive News
Mobile-first OOCSS, Sass & Compass at BBC Responsive NewsMobile-first OOCSS, Sass & Compass at BBC Responsive News
Mobile-first OOCSS, Sass & Compass at BBC Responsive NewsKaelig Deloumeau-Prigent
 
Agile CSS development with Compass and Sass
Agile CSS development with Compass and SassAgile CSS development with Compass and Sass
Agile CSS development with Compass and Sass
Andrea Verlicchi
 
Chapter 13: Colors and Backgrounds
Chapter 13: Colors and BackgroundsChapter 13: Colors and Backgrounds
Chapter 13: Colors and Backgrounds
Steve Guinan
 
Css3
Css3Css3
MTA managing the graphical interface by using css
MTA managing the graphical interface by using cssMTA managing the graphical interface by using css
MTA managing the graphical interface by using css
Dhairya Joshi
 
Css & css3
Css & css3Css & css3
Css & css3
isha
 
Preprocessor presentation
Preprocessor presentationPreprocessor presentation
Preprocessor presentation
Mario Noble
 
CSS for basic learner
CSS for basic learnerCSS for basic learner
CSS for basic learner
Yoeung Vibol
 
Class 4 handout w css3 using j fiddle
Class 4 handout w css3 using j fiddleClass 4 handout w css3 using j fiddle
Class 4 handout w css3 using j fiddleErin M. Kidwell
 
Interactive Graphics
Interactive GraphicsInteractive Graphics
Interactive GraphicsBlazing Cloud
 
5. Web Technology CSS Advanced
5. Web Technology CSS Advanced 5. Web Technology CSS Advanced
5. Web Technology CSS Advanced
Jyoti Yadav
 
IT2255 Web Essentials - Unit II Web Designing
IT2255 Web Essentials - Unit II  Web DesigningIT2255 Web Essentials - Unit II  Web Designing
IT2255 Web Essentials - Unit II Web Designing
pkaviya
 
IE9에서 HTML5 개발하기
IE9에서 HTML5 개발하기IE9에서 HTML5 개발하기
IE9에서 HTML5 개발하기
Reagan Hwang
 
Prototyping w/HTML5 and CSS3
Prototyping w/HTML5 and CSS3Prototyping w/HTML5 and CSS3
Prototyping w/HTML5 and CSS3
Todd Zaki Warfel
 
SVGo: a Go Library for SVG generation
SVGo: a Go Library for SVG generationSVGo: a Go Library for SVG generation
SVGo: a Go Library for SVG generation
Anthony Starks
 

Similar to DotNetNuke World CSS3 (20)

Big Design Conference: CSS3
Big Design Conference: CSS3 Big Design Conference: CSS3
Big Design Conference: CSS3
 
Accelerated Stylesheets
Accelerated StylesheetsAccelerated Stylesheets
Accelerated Stylesheets
 
Compass, Sass, and the Enlightened CSS Developer
Compass, Sass, and the Enlightened CSS DeveloperCompass, Sass, and the Enlightened CSS Developer
Compass, Sass, and the Enlightened CSS Developer
 
Mobile-first OOCSS, Sass & Compass at BBC Responsive News
Mobile-first OOCSS, Sass & Compass at BBC Responsive NewsMobile-first OOCSS, Sass & Compass at BBC Responsive News
Mobile-first OOCSS, Sass & Compass at BBC Responsive News
 
Agile CSS development with Compass and Sass
Agile CSS development with Compass and SassAgile CSS development with Compass and Sass
Agile CSS development with Compass and Sass
 
Chapter 13: Colors and Backgrounds
Chapter 13: Colors and BackgroundsChapter 13: Colors and Backgrounds
Chapter 13: Colors and Backgrounds
 
Css3
Css3Css3
Css3
 
MTA managing the graphical interface by using css
MTA managing the graphical interface by using cssMTA managing the graphical interface by using css
MTA managing the graphical interface by using css
 
Css3
Css3Css3
Css3
 
Css & css3
Css & css3Css & css3
Css & css3
 
Preprocessor presentation
Preprocessor presentationPreprocessor presentation
Preprocessor presentation
 
CSS for basic learner
CSS for basic learnerCSS for basic learner
CSS for basic learner
 
CSS and CSS3
CSS and CSS3CSS and CSS3
CSS and CSS3
 
Class 4 handout w css3 using j fiddle
Class 4 handout w css3 using j fiddleClass 4 handout w css3 using j fiddle
Class 4 handout w css3 using j fiddle
 
Interactive Graphics
Interactive GraphicsInteractive Graphics
Interactive Graphics
 
5. Web Technology CSS Advanced
5. Web Technology CSS Advanced 5. Web Technology CSS Advanced
5. Web Technology CSS Advanced
 
IT2255 Web Essentials - Unit II Web Designing
IT2255 Web Essentials - Unit II  Web DesigningIT2255 Web Essentials - Unit II  Web Designing
IT2255 Web Essentials - Unit II Web Designing
 
IE9에서 HTML5 개발하기
IE9에서 HTML5 개발하기IE9에서 HTML5 개발하기
IE9에서 HTML5 개발하기
 
Prototyping w/HTML5 and CSS3
Prototyping w/HTML5 and CSS3Prototyping w/HTML5 and CSS3
Prototyping w/HTML5 and CSS3
 
SVGo: a Go Library for SVG generation
SVGo: a Go Library for SVG generationSVGo: a Go Library for SVG generation
SVGo: a Go Library for SVG generation
 

More from gravityworksdd

Responsive & Responsible Web Design in DNN
Responsive & Responsible Web Design in DNNResponsive & Responsible Web Design in DNN
Responsive & Responsible Web Design in DNN
gravityworksdd
 
Working with the DNN Service Framework
Working with the DNN Service FrameworkWorking with the DNN Service Framework
Working with the DNN Service Framework
gravityworksdd
 
Responsive Web Design: From Mobile To Desktop, And Beyond (updated for MobiDe...
Responsive Web Design: From Mobile To Desktop, And Beyond (updated for MobiDe...Responsive Web Design: From Mobile To Desktop, And Beyond (updated for MobiDe...
Responsive Web Design: From Mobile To Desktop, And Beyond (updated for MobiDe...gravityworksdd
 
To be or not to be...a DNN module
To be or not to be...a DNN moduleTo be or not to be...a DNN module
To be or not to be...a DNN module
gravityworksdd
 
Real World Leadership Strategies for Women
Real World Leadership Strategies for WomenReal World Leadership Strategies for Women
Real World Leadership Strategies for Women
gravityworksdd
 
Getting Started With Android Library Projects
Getting Started With Android Library ProjectsGetting Started With Android Library Projects
Getting Started With Android Library Projects
gravityworksdd
 

More from gravityworksdd (6)

Responsive & Responsible Web Design in DNN
Responsive & Responsible Web Design in DNNResponsive & Responsible Web Design in DNN
Responsive & Responsible Web Design in DNN
 
Working with the DNN Service Framework
Working with the DNN Service FrameworkWorking with the DNN Service Framework
Working with the DNN Service Framework
 
Responsive Web Design: From Mobile To Desktop, And Beyond (updated for MobiDe...
Responsive Web Design: From Mobile To Desktop, And Beyond (updated for MobiDe...Responsive Web Design: From Mobile To Desktop, And Beyond (updated for MobiDe...
Responsive Web Design: From Mobile To Desktop, And Beyond (updated for MobiDe...
 
To be or not to be...a DNN module
To be or not to be...a DNN moduleTo be or not to be...a DNN module
To be or not to be...a DNN module
 
Real World Leadership Strategies for Women
Real World Leadership Strategies for WomenReal World Leadership Strategies for Women
Real World Leadership Strategies for Women
 
Getting Started With Android Library Projects
Getting Started With Android Library ProjectsGetting Started With Android Library Projects
Getting Started With Android Library Projects
 

Recently uploaded

FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
g2nightmarescribd
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 

Recently uploaded (20)

FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 

DotNetNuke World CSS3

  • 1. Amelia Marschall-Miller Gravity Works Design + Development ADVANCED CSS IN DOTNETNUKE
  • 3. Advanced Attribute Selectors l  rel= match the following attribute value exactly l  Target links: –  a[href="http://dotnetnuke.com"] { color: red; }! l  Target form input types: –  input[type="text"] { padding: 3px; } ! –  input[type="radio"] { float: left; }! l  Target images: –  img[align=right] { margin-left:10px; }!
  • 4. Advanced Attribute Selectors l  rel*= match the following value found anywhere in the attribute l  Target external links only: –  a[rel*="external"] { color: red; }! l  rel^= match the attribute value that starts with this l  Target any link within a domain: –  a[href^=”http://wikipedia.com"] { color: red; }!
  • 5. Advanced Attribute Selectors l  rel$= match the attribute value that ends with this l  Target file extensions: –  a[href$=".pdf"] { 
 background: url(icon-pdf.png) left; }! –  a[href$=".doc"] { 
 background: url(icon-doc.png) left; }! !
  • 6. Advanced Attribute Selectors l  Note that you can use multiple attribute selectors in the same selector, which requires all of them to match for the selector itself to match. –  a[href$=".pdf”][title^="Important"] { color: red; }! Support: 7+
  • 7. Advanced Pseudo Selectors l  input[type=“radio”]:checked { color: red; } l  div:not(#container) { color: blue; }! l  p::first-line { font-size: 1.2em; }! l  p::first-letter { font-size: 2em; } l  .container:before {content:”url(icon.png)”;}!    ! Support: variable
  • 8. Advanced Child Selectors l  Target a specific list item: –  li:nth-child(3) { color: red; } ! l  Target every nth item: –  li:nth-child(3n) { color: red; }! –  tr:nth-child(odd) { background-color: grey;}  l  Target a specific list item from the end: –  li:nth-last-child(3) { color: red; } ! Support: 3.5+ 9+
  • 9. 2. Box Shadow Spread
  • 10. Box Shadow Spread l  4th Box Shadow property: –  box-shadow: 0 0 6px 10px #000;! l  Fake multiple borders l  Negative spread prevents blurry sides: –  box-shadow: 0 15px 15px -12px #222;! l  EXAMPLES Support: 4+ 9+
  • 12. Ellipse Containers l  Set border-radius:50%; for a flexible ellipse. l  Perfect for containers! l  EXAMPLE Support: 4+ 9+ 11+
  • 14. CSS3 Cursors l  NEW available custom cursor: properties l  EXAMPLE Support: * * * *Not all options supported
  • 16. Pointer Events (click behind!) l  pointer-events:none; ! l  Allows elements below the set div to be clicked on l  EXAMPLE Support: 3.6+
  • 18. Transitions l  transition-property: The CSS property that will be altered l  transition-duration: How long the transition will take (2s) l  transition-timing-function: Control how the duration is timed l  transition-delay: Length of pause between action and transition (2s)
  • 19. Transitions l  CSS properties that can be transitioned: –  Background color –  Opacity –  Background position –  Margin –  Border-color –  Padding –  Border width –  Text-shadow –  Color –  Box-shadow –  Font-size –  Line-height –  Font-weight –  Text-indent –  Height, Width –  Visibility –  Left, Right, Top, Bottom –  Z-index –  Transform –  “all”
  • 20. Transitions l  transition-timing-function: Property options: –  linear: Constant speed –  ease: Gradual slow down –  ease-in: Speed up –  ease-out: Slow down –  ease-in-out: Speed up and then slow down –  cubic-bezier(x1, y1, x2, y2): X and Y values defining the shape of a bezier curve the transition will follow
  • 21. Transitions l  Put the transition properties on the original element l  Put the desired change properties on the action element .object { ! color:#000;! transition-property:color; !! transition-duration:1s; !! transition-timing-function:linear; }! .object:hover { color:#fff; }!
  • 22. Transitions l  Can transition multiple CSS properties at once l  Use browser prefixes l  EXAMPLE 1 EXAMPLE 2 l  leaverou.github.com/animatable l  cubic-bezier.com / roblaplaca.com/examples/bezierBuilder Support: 4+ 10+ 10.5+
  • 24. CSS Arrows l  Rotate a square div placed before an element to create an arrow coming out of it l  .comment .text:before { 
 transform: rotate(45deg); } l  EXAMPLE l  Alternate technique: http://cssarrowplease.com! Support (CSS Transform): 9+
  • 26. Background Patterns l  Adjust the percentage of the color stop in a linear gradient for thinner stripes l  Use background-size to repeat gradient l  Rotate issue: 0deg: –  WC3 Recommendation: repeat top-bottom –  Prefixed browser implementation: repeat left-right l  background: -webkit-linear-gradient(0deg, #999 25%, #ddd 25%);
 background: -moz-linear-gradient(0deg, #999 25%, #ddd 25%);
 background: linear-gradient(90deg, #999 25%, #ddd 25%);
 background-size: 30px 30px;! l  Stripe Example
  • 27. Background Patterns l  Two diagonal repeating gradients makes a checkerboard pattern l  Checkerboard Example l  background-color: #EEEEEE;
 background: 
 linear-gradient(45deg, black 25%, transparent 25%, transparent 75%, black 75%, black), 
 linear-gradient(135deg, black 25%, transparent 25%, transparent 75%, black 75%, black); 
 background-size: 60px 60px;!
  • 28. Background Patterns l  A diagonal gradient with a single color stop creates a triangle l  Four positioned triangles repeated creates a zig zag l  Zig Zag Example l  background-color: #FFC;
 background: 
 linear-gradient(135deg, #15A86D 25%, transparent 25%), 
 linear-gradient(225deg, #15A86D 25%, transparent 25%), 
 linear-gradient(315deg, #15A86D 25%, transparent 25%), 
 linear-gradient(45deg, #15A86D 25%, transparent 25%); 
 background-position: -40px 0, -40px 0, 0 0, 0 0; 
 background-size: 80px 80px; !
  • 29. Background Patterns l  CSS Pattern Gallery: lea.verou.me/css3patterns Support (with browser prefixes): 3.6+ 5.1+ 11.1+ Support (without browser prefixes): 16 10
  • 31. Beautiful Buttons l  EXAMPLE l  Add a slide out detail on :hover! –  Increase right padding of button –  Change width of the extra text span from 0px to 100px –  Animate: transition: all 0.3s linear;!
  • 33. Prefix Free CSS l  “-prefix-free lets you use only unprefixed CSS properties everywhere. It works behind the scenes, adding the current browser’s prefix to any CSS code, only when it’s needed.” l  leaverou.github.com/prefixfree Support: 3.5+ 4+ 9+ 10+
  • 34. Questions? Amelia Marschall-Miller Gravity Works Design + Development Partner & Creative Director GravityWorksDesign.com @MimiAmelia