From 5157352946e3b4d2de0ddae79dbd91682b3069c2 Mon Sep 17 00:00:00 2001 From: gene Date: Sat, 26 Oct 2024 12:45:59 +0200 Subject: [PATCH] Updated default font size. --- docs/feed/rss.xml | 22 +++++++++---------- docs/pages/documentation/about/index.html | 17 +++++++------- .../documentation/active_refresh/index.html | 19 ++++++++-------- .../api/helpers/Logger/index.html | 17 +++++++------- .../api/helpers/TaskQueue/index.html | 17 +++++++------- .../api/helpers/Utils.dom/index.html | 17 +++++++------- .../api/helpers/Utils/index.html | 17 +++++++------- .../api/helpers/Utils_dom/index.html | 17 +++++++------- .../api/helpers/ZxQuery/index.html | 17 +++++++------- .../api/helpers/ZxQueryStatic/index.html | 17 +++++++------- docs/pages/documentation/api/index.html | 17 +++++++------- .../api/localizer/Localizer/index.html | 17 +++++++------- .../api/observable/ObjectObserver/index.html | 17 +++++++------- .../observable/ObservableListener/index.html | 17 +++++++------- .../observable/ObservableObject/index.html | 17 +++++++------- .../api/zuix/ActiveRefresh/index.html | 17 +++++++------- .../api/zuix/ComponentContext/index.html | 17 +++++++------- .../api/zuix/Componentizer/index.html | 17 +++++++------- .../api/zuix/ContextController/index.html | 17 +++++++------- .../api/zuix/ControllerInstance/index.html | 17 +++++++------- .../api/zuix/ViewObserver/index.html | 17 +++++++------- .../documentation/api/zuix/Zuix/index.html | 17 +++++++------- .../documentation/basic_concepts/index.html | 17 +++++++------- docs/pages/documentation/cli/index.html | 17 +++++++------- docs/pages/documentation/component/index.html | 17 +++++++------- .../documentation/context_options/index.html | 17 +++++++------- .../pages/documentation/controller/index.html | 17 +++++++------- .../documentation/getting_started/index.html | 17 +++++++------- docs/pages/documentation/index.html | 17 +++++++------- docs/pages/documentation/view/index.html | 17 +++++++------- docs/playground/index.html | 17 +++++++------- docs/search-index.json | 2 +- docs/search-list.json | 2 +- docs/search/index.html | 17 +++++++------- docs/service-worker.js | 2 +- docs/service-worker.js.map | 2 +- docs/sitemap.xml | 8 +++---- source/_inc/layouts/side_drawer.liquid | 2 +- source/_inc/layouts/side_drawer/drawer.css | 5 +++-- .../side_drawer/page_navigation.liquid | 2 +- source/_inc/layouts/side_drawer/style.css | 10 ++++----- .../documentation/active_refresh/index.md | 2 +- 42 files changed, 310 insertions(+), 278 deletions(-) diff --git a/docs/feed/rss.xml b/docs/feed/rss.xml index 7b01059..a346a8b 100644 --- a/docs/feed/rss.xml +++ b/docs/feed/rss.xml @@ -7,8 +7,8 @@ en - Wed, 13 Mar 2024 21:31:07 +0100 - Wed, 13 Mar 2024 21:31:07 +0100 + Sat, 26 Oct 2024 12:45:03 +0200 + Sat, 26 Oct 2024 12:45:03 +0200 zuix.js https://zuixjs.org//images/icons/icon-152x152.png @@ -149,15 +149,6 @@ - - Events and Active&rarr;Refresh - https://zuixjs.org//pages/documentation/active_refresh/ - https://zuixjs.org//pages/documentation/active_refresh/ - About scoped scripts, dependencies, refresh-handlers, built-in @ handlers, custom handlers. - Wed, 13 Mar 2024 21:22:35 +0100 - - - zuix.js <i class='material-icons notranslate'>emoji_nature</i> API https://zuixjs.org//pages/documentation/api/helpers/Utils.dom/ @@ -293,5 +284,14 @@ + + Events and Active&rarr;Refresh + https://zuixjs.org//pages/documentation/active_refresh/ + https://zuixjs.org//pages/documentation/active_refresh/ + About scoped scripts, dependencies, refresh-handlers, built-in @ handlers, custom handlers. + Sat, 26 Oct 2024 12:36:23 +0200 + + + diff --git a/docs/pages/documentation/about/index.html b/docs/pages/documentation/about/index.html index 7daf86e..a79c316 100644 --- a/docs/pages/documentation/about/index.html +++ b/docs/pages/documentation/about/index.html @@ -78,7 +78,7 @@ body { margin: 0; padding: 0; - font-size: 12px!important; + font-size: 12pt!important; font-family: "Roboto", "Open Sans", sans-serif; font-weight: 400; position: relative; @@ -124,7 +124,7 @@ } label { color: #366495; - font-size: 14px; + font-size: 12pt; text-transform: uppercase; font-weight: 600; margin-top: 24px; @@ -137,7 +137,7 @@ li { font-weight: 400; line-height: 175%; - font-size: 100%; + font-size: 105%; min-height: 32px; } li small { @@ -181,7 +181,7 @@ } code[class*=language-], pre[class*=language-] { - font-size: 115%; + font-size: 100%; } pre:not([class*="language-"]) { width: 100%; @@ -250,7 +250,7 @@ margin-bottom: 16px; } div.content > p { - font-size: 150% !important; + font-size: 110% !important; line-height: 170% !important; margin: 24px 0 24px; } @@ -385,11 +385,11 @@ .drawer-header .text-logo { font-family: "Roboto", "Open Sans", sans-serif; - font-size: 180%; + font-size: 150%; font-weight: 400; } .drawer-header .text-logo small { - font-size: 12px; + font-size: 10pt; vertical-align: middle; margin-left: 8px; } @@ -447,6 +447,7 @@ color: var(--primary-color); } .drawer-content li a { + font-weight: bold; color: var(--accent-color); position: relative; display: block; @@ -486,7 +487,7 @@ padding: 2px 4px; border-radius: 8px; margin-right: 4px; -}

Demos and templates

Old demos

 
Getting started
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.

Terms and concepts

This is a brief introduction to some terms and concepts commonly used in web development and related to zuix.js functionality. For a better understanding of these pages a basic knowledge of HTML, CSS and JavaScript is required.

Component

We can think of a component as a reusable part of the page that can be defined once and then added to any page, one or more times, by just referencing it.

In a component there are two kind of reusable parts:

  • a visible part (view), which is a block of HTML and CSS code that is rendered in the page
  • a program-logic part (controller), which is a block of JavaScript code used to control and animate the associated view

A complete component is therefore formed by the combo view + controller, although as described later in these pages, we can also have view-only components that do not contain any JavaScript code, or controller-only components that are associated to a generic element of the page instead of a specific view template.

Component implementation

A component can be implemented with various methods:

  • using a distinct file for each reusable part (.html, .css, .js)
  • using a single .js file which will also generate the output of the HTML and CSS code for the view
  • declaring all parts inline, on the HTML page itself

The first method, among other advantages, maximizes the maintainability, reusability, and customizability of each part. This design pattern, that reckons on loading all bits of a component from external files, is not directly supported by the web platform, and in order to be implemented it requires a resource loader such as zuix.js.

View rendering

"Rendering" is the process of outputting the view of a component instance into the page. This process can be implemented using one of the following methods:

  • Client-side
    the view is dynamically added using JavaScript
  • Server-side
    the view is pre-rendered on the server before the requested page is sent to the client
  • Build-side
    the view is pre-rendered during the build process of the page, using a static-site generator or similar tool

The first method is the standard approach in zuix.js, but it also allows to pre-render a component's view either server-side or during the build process, by simply outputting the component's HTML inside a container element with some special directive attributes (ctrl z-load), so that zuix.js will then instantiate the controller of the component and bind it to the pre-rendered view instance.

Web Components

The term Web Components identifies a set of Web Platform APIs that allow to create custom HTML elements.
The main advantage in using custom elements is encapsulation ‐ "being able to keep the markup structure, style, and behavior hidden and separate from other code on the page so that different parts do not clash, and the code can be kept nice and clean." (MDN)
zuix.js also implements emulated encapsulation through which is possible to load the same component either using a custom element or by using any standard element as host.

GitHub logo
JavaScript library for component-based websites and applications.

Terms and concepts

This is a brief introduction to some terms and concepts commonly used in web development and related to zuix.js functionality. For a better understanding of these pages a basic knowledge of HTML, CSS and JavaScript is required.

Component

We can think of a component as a reusable part of the page that can be defined once and then added to any page, one or more times, by just referencing it.

In a component there are two kind of reusable parts:

  • a visible part (view), which is a block of HTML and CSS code that is rendered in the page
  • a program-logic part (controller), which is a block of JavaScript code used to control and animate the associated view

A complete component is therefore formed by the combo view + controller, although as described later in these pages, we can also have view-only components that do not contain any JavaScript code, or controller-only components that are associated to a generic element of the page instead of a specific view template.

Component implementation

A component can be implemented with various methods:

  • using a distinct file for each reusable part (.html, .css, .js)
  • using a single .js file which will also generate the output of the HTML and CSS code for the view
  • declaring all parts inline, on the HTML page itself

The first method, among other advantages, maximizes the maintainability, reusability, and customizability of each part. This design pattern, that reckons on loading all bits of a component from external files, is not directly supported by the web platform, and in order to be implemented it requires a resource loader such as zuix.js.

View rendering

"Rendering" is the process of outputting the view of a component instance into the page. This process can be implemented using one of the following methods:

  • Client-side
    the view is dynamically added using JavaScript
  • Server-side
    the view is pre-rendered on the server before the requested page is sent to the client
  • Build-side
    the view is pre-rendered during the build process of the page, using a static-site generator or similar tool

The first method is the standard approach in zuix.js, but it also allows to pre-render a component's view either server-side or during the build process, by simply outputting the component's HTML inside a container element with some special directive attributes (ctrl z-load), so that zuix.js will then instantiate the controller of the component and bind it to the pre-rendered view instance.

Web Components

The term Web Components identifies a set of Web Platform APIs that allow to create custom HTML elements.
The main advantage in using custom elements is encapsulation ‐ "being able to keep the markup structure, style, and behavior hidden and separate from other code on the page so that different parts do not clash, and the code can be kept nice and clean." (MDN)
zuix.js also implements emulated encapsulation through which is possible to load the same component either using a custom element or by using any standard element as host.

GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.

Getting started

See zuix.js in action using the online playground, where is possible to create and download ready to use components directly in the browser!

sports_soccer Playground

Bare library usage on an existing site

JsDeliver

As a regular script:

<script src="https://cdn.jsdelivr.net/npm/zuix-dist@1.1.29"></script>

As a module:

<script type="module" src="https://cdn.jsdelivr.net/npm/zuix-dist@1.1.29/js/zuix.module.min.js"></script>

As a dependency of another module:

// file: my-class.module.js
 import 'https://cdn.jsdelivr.net/npm/zuix-dist@1.1.29/js/zuix.module.min.js'; 

NPM

npm install zuix-dist

then copy the library from node_modules/zuix-dist/js to your project's js folder and include it in your HTML page or JavaScript module.

Creating a new web project using the CLI

The zuix-cli tool can be used to create a new web project, the only prerequisite is that node.js must be installed first.

# Create a new website project named 'my-new-webapp'
 npx zuix new my-new-webapp

A new folder named my-new-webapp will be created containing all files required to run the starter project.

From the new folder we can now start the local server that will watch, build and serve the web application files (by default at http://localhost:8080).

cd my-new-webapp
-npx zuix start

Read more about all other zuix command functionality from zuix-cli documentation page.

GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.

Documentation

 
 
GitHub logo
JavaScript library for component-based websites and applications.

Documentation

 
 
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.

Playground

GitHub logo
JavaScript library for component-based websites and applications.

Playground

GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.
GitHub logo
JavaScript library for component-based websites and applications.