Skip to content

Simple CSS3 framework to achieve a web version of UITableView

License

Notifications You must be signed in to change notification settings

therealFoxster/css3-uitableview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

css3-uitableview

Simple CSS3 framework to achieve a web version of UITableView

phone-browser-screenshot

Get Started

To use css3-uitableview in your project, include:

  • uitableview.css
    <link rel="stylesheet" href="https://therealFoxster.github.io/css3-uitableview/src/uitableview.css">

and one of the following (optional but recommended):

  • uitableview.auto-dark.css to have the page automatically switch between light/dark appearance to match the system appearance

    <link rel="stylesheet" href="https://therealFoxster.github.io/css3-uitableview/src/uitableview.auto-dark.css">
  • uitableview.js to set light/dark appearance manually in your code

    <script src="https://therealFoxster.github.io/css3-uitableview/src/uitableview.js"></script>

    Note: By default, uitableview.js will remove uitableview.auto-dark.css, effectively disabling automatic appearance switching.

css3-uitableview uses Bootstrap Icons v1.9.1 so you can add icons with ease (see icon font usage). Visit https://icons.getbootstrap.com/#install to grab the latest version.

Structure

body#uitableview | div#uitableview [.dark] [.no-cell-background]
-- [h1#title]
-- div.section-container
---- div.section [.rounded]
------ [p.section-header]
------ div.cell | a.cell [.clickable] [.disabled] [.right-detail-text]
-------- [div.cell-icon]
---------- [img.icon] | [i.bi]
-------- div.cell-inner
---------- div.cell-labels
------------ p.cell-text
------------ [p.cell-detail-text]
---------- [div.cell-accessory-icon [.grey]]
------------ [i.bi]
------ [p.section-footer]

Note

  • Selectors in square brackets are optional
  • In a section, all cells should be of the same tag

See It in Action

License

The MIT License

About

Simple CSS3 framework to achieve a web version of UITableView

Topics

Resources

License

Stars

Watchers

Forks