Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/zumerlab/grid
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Muda committed Jun 13, 2023
2 parents 73b78ab + 31f90c9 commit ea513ce
Show file tree
Hide file tree
Showing 11 changed files with 48 additions and 476 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<img src="./docs/images/zumer.png" width=120 />
<img src="./assets/images/zumer.png" width=120 />

# Zumer - CSS radial library

Expand Down Expand Up @@ -59,17 +59,17 @@ Folllowing code set a container and inside it a radial layout with three circles
</html>
```

### Guide
## Guide

Basic documentation to understand and start with Zumer CSS.

#### `z-container`
### `z-container`

The `z-container` serves as the root element to scaffold Zumer. It encapsulates the entire Zumer framework and defines the boundaries for its usage. Multiple `z-container` elements can coexist on the same page, allowing for modular and flexible implementation.

At the `z-container` level, major CSS variables are defined, providing a centralized and customizable approach to styling and theming Zumer components. These variables can be easily modified within each `z-container` instance, ensuring consistency and flexibility across different sections of your application.

#### `ring-*` (probably orbit)
### `ring-*` (probably orbit)

The `ring-*` classes act as guides for positioning other elements within the Zumer radial grid. Think of them as rows in the grid structure. They play an important role in organizing and aligning elements within the circular layout of Zumer.

Expand All @@ -79,11 +79,11 @@ By leveraging the `ring-*` classes, you can easily position and arrange elements

It is possible to use multiple same level `ring-*` to stack differente elements.

#### `core`
### `core`

The `core` class functions similarly to a regular ring but is placed at the center of the container. It is particularly useful for positioning radial elements such as watch or gauge needles.

#### `arc`
### `arc`

If rings resemble rows, the `arc` class can be thought of as columns in the Zumer radial grid. An `arc` is a radial segment that serves as the background support for radial designs, but also may work standalone as buttons for instance. It offers customizable options, allowing you to fine-tune its appearance to suit your specific needs.

Expand All @@ -106,9 +106,9 @@ In this example, three arcs are placed in a Ring. To draw three arcs that cover
- Use the `offset-*` class to specify the starting angle of the arcs within the ring.
- Employ the `arc-*` class to define the length of the ring arc covered by the arcs.

#### `item` (probably orbiter)
### `item` (probably orbiter)

The `item` class is used to position and contain content within the Zumer radial grid. It offers various customization options, including different sizes (`xxs`, `xs`, `s`, `m`, `l`, `xl`, `xxl`), shapes (`line`, `circle`, `box`, `rounded`, `blob`), and relative ring positions (`middle`, `upper`, `lower`).
The `item` class is used to position and contain content within the Zumer radial grid. It offers various customization options, including different sizes (`xxs`, `xs`, `s`, `m`, `l`, `xl`, `xxl`), shapes (`line`, `circle`, `box`, `rounded`, `blob`), orbital position (`stationary`), and relative ring positions (`middle`, `upper`, `lower`).

One of the notable features of Zumer is the ability to nest `item` elements, allowing for complex and layered radial designs.

Expand Down
Binary file added assets/images/zumer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/images/zumer.png
Binary file not shown.
68 changes: 0 additions & 68 deletions examples/arc.html

This file was deleted.

15 changes: 1 addition & 14 deletions examples/arcgrid.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<link rel="stylesheet" href="../dist/css/zumer.min.css" type="text/css" defer/>
<link rel="stylesheet" href="../dist/css/zumer-ui.min.css" type="text/css" defer/>

<title>Radial grid layout - css only</title>
<title>Zumer CSS</title>
<style>
body {
font-family: 'Lucida Sans', Verdana, sans-serif;
Expand Down Expand Up @@ -69,11 +67,6 @@
<div class="arc"></div>
<div class="arc"></div>
</div>





</div>
</div>
<div class="col-sm-6">
Expand All @@ -93,12 +86,6 @@
<div class="item xs bg-primary" style="--item-number: 2; --angle: calc(-90 + var(--progress) * 3.6)"></div>
<div class="z-progress text-primary"></div>
</div>






</div>
</div>
</div>
Expand Down
3 changes: 1 addition & 2 deletions examples/generic.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../dist/css/index.min.css" type="text/css" defer/>
<title>Radial grid layout - css only</title>
<title>Zumer CSS</title>
<style>
body {
font-family: 'Lucida Sans', Verdana, sans-serif;
Expand Down
41 changes: 0 additions & 41 deletions examples/gradient.html

This file was deleted.

37 changes: 37 additions & 0 deletions examples/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../dist/css/index.min.css" type="text/css" defer/>
<title>Zumer CSS</title>
<style>
body {
font-family: 'Lucida Sans', Verdana, sans-serif;
padding: 40px;
}
</style>
</head>
<body>
<h2>Examples</h2>
<div class="z-container">

<ul class="ring-3 items-5">
<li class="arc"></li>
<li class="arc"></li>
<li class="arc"></li>
<li class="arc"></li>
<li class="arc"></li>
</ul>
<ul class="ring-3 items-5">
<li class="item m"><a href="./generic.html">Generic</a></li>
<li class="item m"><a href="./watch.html">Watch</a></li>
<li class="item m"><a href="./spread.html">Spread</a></li>
<li class="item m"><a href="./form.html">Form</a></li>
<li class="item m"><a href="./arcgrid.html">arc</a></li>
</ul>
</div>

</body>
</html>
Loading

0 comments on commit ea513ce

Please sign in to comment.