Latest Post
Posted on
Article content goes here...
Click the "Forgot Password" link on the login page and follow the instructions sent to your email.
We accept all major credit cards, PayPal, and bank transfers.
Yes, we offer a 14-day free trial with full access to all features.
In mathematics, we often use x and y for unknowns.
To run this command, type npm start in your terminal.
// Calculate the square of a number
function square(x) {
return x * x;
}
console.log(square(5)); // Output: 25
Save your file with Ctrl + S.
After compilation, you'll see: Build successful
``` -------------------------------- ### Color Input Usage Example Source: https://github.com/kognise/water.css/blob/master/_autodocs/04-form-elements.md Demonstrates how to use the color input element with a predefined value. ```html ``` -------------------------------- ### Usage Example for Select Dropdowns Source: https://github.com/kognise/water.css/blob/master/_autodocs/04-form-elements.md Demonstrates the HTML structure for single and multi-select dropdowns that can be styled by the provided CSS. ```html ``` -------------------------------- ### HTML Usage Example for samp Element Source: https://github.com/kognise/water.css/blob/master/_autodocs/06-code-blocks-syntax.md Demonstrates how to use the samp element to display sample program output within a paragraph. ```htmlWhen you run the command, you'll see output like: $ processing complete in 1.23s
``` -------------------------------- ### Dialog Usage Example Source: https://github.com/kognise/water.css/blob/master/_autodocs/07-tables-lists-content.md Demonstrates how to open, display content within, and handle the close event of a modal dialog. ```html ``` -------------------------------- ### Footer Usage Example Source: https://github.com/kognise/water.css/blob/master/_autodocs/07-tables-lists-content.md Provides an example of a typical HTML structure including a header, main content, and a footer with copyright and links. ```htmlWelcome to my website.
Read the API documentation for details.
Check the installation guide.
```
--------------------------------
### Usage Example for Highlighted Text
Source: https://github.com/kognise/water.css/blob/master/_autodocs/03-typography-elements.md
Shows how to use the mark tag to emphasize a section of text with a background highlight.
```html
This text contains a highlighted section for emphasis.
``` -------------------------------- ### Placeholder Usage Example Source: https://github.com/kognise/water.css/blob/master/_autodocs/04-form-elements.md Illustrates the use of placeholder text in both input and textarea elements. ```html ``` -------------------------------- ### Usage Example for Keyboard Input Source: https://github.com/kognise/water.css/blob/master/_autodocs/06-code-blocks-syntax.md Demonstrates how to use the kbd HTML element to represent keyboard input in various contexts. This helps users identify key combinations or single key presses. ```htmlPress Ctrl + C to copy.
To open the developer console, press F12.
Use Cmd + Z to undo on macOS.
The keyboard shortcut is: Alt + Shift + S
``` -------------------------------- ### Comprehensive Form Example Source: https://github.com/kognise/water.css/blob/master/_autodocs/13-integration-examples.md Demonstrates various form elements including text inputs, textareas, radio buttons, checkboxes, and select dropdowns, all styled with Water.css. ```html| Name | Status | |
|---|---|---|
| Alice Johnson | alice@example.com | Active |
| Bob Smith | bob@example.com | Inactive |
Introduction paragraph.
Section content.
More detailed content.
``` -------------------------------- ### Label and Input Usage Example Source: https://github.com/kognise/water.css/blob/master/_autodocs/04-form-elements.md Shows a common pattern of using a label associated with a text input field. ```html ``` -------------------------------- ### Text Input Usage Example Source: https://github.com/kognise/water.css/blob/master/_autodocs/04-form-elements.md Demonstrates the usage of various text input types with placeholders. These elements will be styled by the provided CSS selectors. ```html ``` -------------------------------- ### Implement Skip-to-Content Link Source: https://github.com/kognise/water.css/blob/master/_autodocs/08-links-styling.md Add a skip-to-content link for improved keyboard navigation. This example includes basic CSS for positioning and focus states. ```html Skip to main contentThis is the main content area, centered and constrained to 800px width.
Content in a section.
See the documentation for details.
Visit our about page.
``` -------------------------------- ### Semantic HTML Styling Example Source: https://github.com/kognise/water.css/blob/master/_autodocs/09-layout-structure.md Demonstrates the correct usage of semantic HTML elements for styling with Water.css, avoiding unnecessary class-based markup. ```htmlIntroduction paragraph.
function greet(name) {
console.log(`Hello, ${name}!`);
}
greet('World');
def fibonacci(n):
if n <= 1:
return n
return fibonacci(n - 1) + fibonacci(n - 2)
print(fibonacci(10))
Example
Hello
```
--------------------------------
### Strong and Bold Text Usage Example
Source: https://github.com/kognise/water.css/blob/master/_autodocs/03-typography-elements.md
Shows how to use strong and b tags for emphasized text, and how they are styled.
```html
This is very important information.
This is bold text.
Visit our homepage for more information.
Read the documentation and guide.
``` -------------------------------- ### Usage Example for Checkboxes and Radio Buttons Source: https://github.com/kognise/water.css/blob/master/_autodocs/04-form-elements.md Shows how to structure HTML for checkboxes and radio buttons within label elements for accessibility and styling. ```html ``` -------------------------------- ### Blockquote and Quote Usage Example Source: https://github.com/kognise/water.css/blob/master/_autodocs/03-typography-elements.md Illustrates the use of blockquote with a footer and the q element for inline quotes. ```htmlThe early bird gets the worm, but the second mouse gets the cheese.
As they say, innovation distinguishes between a leader and a follower
.
This article was published .
Meeting scheduled for
``` -------------------------------- ### Usage Example for Special Link Prefixes Source: https://github.com/kognise/water.css/blob/master/_autodocs/03-typography-elements.md Demonstrates the use of mailto, tel, and sms links with their respective emoji prefixes. ```htmlEmail: contact@example.com
Call us: +1-555-0100
Text: +1-555-0100
``` -------------------------------- ### Textarea Usage Example Source: https://github.com/kognise/water.css/blob/master/_autodocs/04-form-elements.md Shows different ways to use textarea elements, including a basic textarea, one with specified rows and columns, and a disabled textarea. ```html ``` -------------------------------- ### Horizontal Rule Usage Example Source: https://github.com/kognise/water.css/blob/master/_autodocs/07-tables-lists-content.md Demonstrates the use of the `Content for section 1.
Content for section 2.
``` -------------------------------- ### Static Site with Navigation using Water.css Source: https://github.com/kognise/water.css/blob/master/_autodocs/13-integration-examples.md An example of a multi-page static site structure styled with Water.css. It includes header, navigation, main content with articles, and footer elements. ```htmlThoughts on code and design
Posted on
Article content goes here...
Posted on
Article content goes here...
The easiest way to solve your problems.
| Plan | Price | Action |
|---|---|---|
| Starter | $9/month | |
| Pro | $29/month |
| SKU | Product | Warehouse A | Warehouse B | Action |
|---|---|---|---|---|
| 001 | Widget | 42 | 18 | |
| 002 | Gadget | 27 | 33 | |
| 003 | Doohickey | 15 | 9 | |
| Total: | 84 | 60 | ||
Invoice Number: #2024-001
Date:
| Item | Qty | Price | Total |
|---|---|---|---|
| Product A | 2 | $50.00 | $100.00 |
| Product B | 1 | $75.00 | $75.00 |
| Total: | $175.00 | ||
Payment due within 30 days of invoice date.
``` -------------------------------- ### HTML Usage Example for var Element Source: https://github.com/kognise/water.css/blob/master/_autodocs/06-code-blocks-syntax.md Illustrates the use of the var element to denote variables in mathematical expressions, function signatures, and environment variables. ```htmlLet x = 5 and y = 10.
The function signature is: function f(x, y)
Set the environment variable API_KEY to your token.
``` -------------------------------- ### Watch Task Source: https://github.com/kognise/water.css/blob/master/_autodocs/11-build-system-reference.md This Gulp task starts the development server with file watching. It runs an initial build and then watches for changes in CSS and documentation files, rebuilding and live-reloading the browser on any modification. ```javascript const watch = gulp.series(build, startDevServer) ``` -------------------------------- ### Water.css in a Single Page Application (SPA) Source: https://github.com/kognise/water.css/blob/master/_autodocs/13-integration-examples.md Implement Water.css in a basic SPA structure. This example uses JavaScript to toggle the visibility of different sections to simulate page navigation. ```htmlThis is the home page.
This is the about page.
Site tagline
Article content...
def fibonacci(n):
if n <= 1:
return n
return fibonacci(n-1) + fibonacci(n-2)
```
--------------------------------
### Link Water.css from Local File
Source: https://github.com/kognise/water.css/blob/master/_autodocs/00-index.md
Include Water.css by linking to a local copy of the stylesheet. Ensure the path is correct relative to your HTML file.
```html
```
--------------------------------
### Basic Link Structure
Source: https://github.com/kognise/water.css/blob/master/_autodocs/08-links-styling.md
Demonstrates how to structure navigation and article content with multiple links. Water.css applies default styling to these links.
```html
Learn more by reading our getting started guide, exploring the examples, or contacting us with questions.
` and `` together, with a language class for potential syntax highlighting integration. The `` element ensures correct monospace text rendering.
```html
// This is a code block
const greeting = "Hello, World!";
console.log(greeting);
```
--------------------------------
### Water.css Build Commands
Source: https://github.com/kognise/water.css/blob/master/_autodocs/14-quick-reference.md
Use these yarn commands for building, developing, linting, and validating the Water.css project.
```bash
yarn build # Compile CSS
```
```bash
yarn dev # Watch + dev server
```
```bash
yarn lint # Check code style
```
```bash
yarn validate # Full quality check
```
--------------------------------
### Common HTML Elements with Water.css
Source: https://github.com/kognise/water.css/blob/master/_autodocs/14-quick-reference.md
Examples of various HTML elements styled by Water.css, including headings, text formatting, links, code, lists, tables, forms, details, and dialogs.
```html
Main title
Subtitle
```
```html
Bold text
Italic text
Highlighted
```
```html
Home
Email us
Call us
```
```html
Use npm install to install.
const greeting = "Hello, World!";
```
```html
- Item 1
- Item 2
- First
- Second
```
```html
Header 1 Header 2
Cell 1 Cell 2
```
```html
```
```html
Click to expand
Hidden content here.
```
```html
```
--------------------------------
### Custom Body Margins and Padding
Source: https://github.com/kognise/water.css/blob/master/_autodocs/09-layout-structure.md
Adjust the spacing around the main content by overriding the `margin` and `padding` properties of the `body` element. This example adds more vertical space and horizontal padding.
```css
body {
margin: 40px auto; /* More space at top/bottom */
padding: 0 20px; /* More horizontal padding */
}
```
--------------------------------
### Build Task
Source: https://github.com/kognise/water.css/blob/master/_autodocs/11-build-system-reference.md
This Gulp task compiles styles and documentation. It runs the style and docs tasks in parallel.
```javascript
const build = gulp.parallel(style, docs)
```
--------------------------------
### Build Custom Water.css Theme
Source: https://github.com/kognise/water.css/blob/master/_autodocs/02-css-variables-reference.md
Compile a custom version of Water.css with fixed variable values for optimization or IE11 compatibility. This involves cloning the repository, modifying source files, and running the build script.
```bash
git clone https://github.com/kognise/water.css.git
cd water.css
yarn install
# Edit src/variables-light.css and src/variables-dark.css
yarn build
# CSS in out/ is ready to use
```
--------------------------------
### Basic HTML Template with Water.css
Source: https://github.com/kognise/water.css/blob/master/_autodocs/13-integration-examples.md
A minimal HTML document demonstrating the basic inclusion of Water.css for immediate styling. This is suitable for simple web pages where no custom styling is needed.
```html
Page Title
Welcome
This page is styled with Water.css, no custom CSS required.
```
--------------------------------
### Custom Print CSS Override Example
Source: https://github.com/kognise/water.css/blob/master/_autodocs/10-print-styles.md
While Water.css handles most print styles, you can override them using a @media print block in your CSS. This is typically only needed for custom elements or specific styling requirements.
```css
/* Usually not needed */
@media print {
.custom-element {
color: #000;
background: white;
}
}
```
--------------------------------
### Custom Print Styles with @media print
Source: https://github.com/kognise/water.css/blob/master/_autodocs/10-print-styles.md
Extend the @media print rule to define styles that apply only when printing. This example hides navigation, sets backgrounds for highlighted elements, and controls page breaks.
```html
```
--------------------------------
### Run Complete Quality Validation
Source: https://github.com/kognise/water.css/blob/master/_autodocs/11-build-system-reference.md
Executes a comprehensive quality check that includes ESLint validation, stylelint validation, and an accessibility audit via Pa11y. All checks must pass before publishing.
```bash
yarn validate
```