Basic (2022-04-18)
Orange-themed PDWebsitemplate page (T005, C025-C029, B001) introducing attribute breakpoints like class="resize _3" _768="2" _640="1".
Overview
Live Preview
Open the example in a new tab
Page Sections
Interactions
- Inline script in #nav: #btn-nav-show adds 'show' to the previous sibling of the T005 block (#nav-top, a fixed bar sliding in from top: -4rem) and locks body overflow; #btn-nav-collaspe adds 'collaspe' to #nav and after 300ms removes 'show' from the T005 block and restores scrolling. #nav-top has no content in the markup.
Dependencies
Styling
Entry starts with @import url("./fontawesome/css/all.css"), a path that does not exist and is absent from the compiled CSS. _PDColum defines ul.resize with _1024 / _768 / _640 / _480 / _414 column-count attributes.
cd target/20220418
npx sass sass/PDWebsitemplate.min.scss css/PDWebsitemplate.min.css --no-source-map || exit 1
Techniques
- Attribute breakpoints: class="resize _3" plus _768="2" _640="1" _480="1" set column counts per max-width breakpoint.
- Theme CSS variables in inline <style> on *: orange --col-sys rgba(255,150,60), --col-sys-dark rgb(195,90,0), --max-width 1140px, --module-hint 1.
- Fixed top bar with backdrop-filter blur and T005-nav-top-show / -hide keyframes; max-width breakpoints 479 / 639 / 767 / 1139px.
External Assets
https://fakeimg.pl/1024/282828/eae0d0/?text=sample
https://pardn.io/image/head.png
https://pardn.io/web-template/image/20220418.jpg
- https://joball.tw, /album, /case, /post (C029 links)
- ../icon/watch/1/fff.svg, ../image/bg-l.svg, ../image/bg-m.svg (referenced by compiled CSS, not present in the folder)
Known Issues
- CSS url(../icon/watch/1/fff.svg), url(../image/bg-l.svg), url(../image/bg-m.svg) point to <folder>/icon and <folder>/image, which do not exist. Links are otherwise relative or absolute URLs.