Git Product home page Git Product logo

water.css's Introduction

NPM page On Product Hunt Contributors MIT license


Water.css

๐ŸŒŠ A drop-in collection of CSS styles to make simple websites just a little nicer

Water.css


Goals

  • Responsive
  • Themeable
  • Good browser support (works on my old kindle's browser :P)
  • Tiny size
  • Beautiful
  • No classes

Why?

I commonly make quick demo pages or websites with simple content. For these, I don't want to spend time styling them but don't like the ugliness of the default styles.

Water.css is a CSS framework that doesn't require any classes. You just include it in your <head> and forget about it, while it silently makes everything nicer.

Who?

You might want to use Water.css if you're making a simple static page or demo website that you don't want to spend time styling.

Although it originally wasn't built for more complex websites, many developers have used Water.css as a base stylesheet and creatively applied custom styles to build out an entire app. Nothing is stopping you from doing the same!

How?

Just stick this in your <head>:

๐ŸŒ™/โ˜€ Automatic Theme:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.min.css">

๐ŸŒ™ Dark Theme:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/dark.min.css">

โ˜€ Light Theme:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/light.min.css">


A preview of the different themes is available on the demo page! โšก

How the "Automatic Theme" works

The main water.css file automatically switches between light and dark mode depending on the system preferences of a user's device. This detection is made possible through a CSS media query called prefers-color-scheme. In browsers where the preference can't be detected, water.css will stick to the light theme.

If you want to avoid this behavior, use either dark.css or light.css.

Supporting Internet Explorer

All three distributions of Water.css support Internet Explorer 11, but the main water.css file doesn't respect the user's color scheme and will be locked to light mode due to lack of prefers-color-scheme support.

Be aware that IE also doesn't support runtime theming, and fixed fallback values will be used. If you want to override the Water.css theme in a way that's compatible with IE, we recommend that you compile your own theme.

Unminified builds

All versions are also available as unminified stylesheets, which can be handy during development.
Simply remove the .min from the file name.

Theming

Do you want to make some adjustments or build your own theme completely different from the official dark or light themes? Since Water.css is built with CSS variables this is super easy to do! Here's a list list of all the variables you can change to your liking:

  • --background-body
  • --background
  • --background-alt
  • --selection
  • --text-main
  • --text-bright
  • --text-muted
  • --links
  • --focus
  • --border
  • --code
  • --animation-duration
  • --button-hover
  • --scrollbar-thumb
  • --scrollbar-thumb-hover
  • --form-placeholder
  • --form-text
  • --variable
  • --highlight
  • --select-arrow

Runtime theming

โš  If you use a version with support for legacy browsers like Internet Explorer, skip to Compiling your own theme!

Water.css uses Custom Properties ("CSS variables") to define its base styles such as colors. These can be changed and overwritten right in the browser.

Because of this, you can simply add your own stylesheet to the page and set your own CSS variables there. As long as your stylesheet comes after Water.css in the HTML, your values will override the default ones and your theme is applied!

This short example will use Water.css, but color all links red:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/water.css@2/out/water.min.css" />
<style>
  :root {
    --links: red;
  }
</style>

If you want to change a value for dark or light mode only, use a media query like this:

<style>
  :root {
    --links: blue; /* Always applied */
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --links: yellow; /* Only applied in dark mode (overrides blue) */
    }
  }
</style>

Compiling your own theme

If you are targeting browsers without support for CSS Custom Properties such as Internet Explorer, runtime theming is not an option. To apply your own theming, you'll need to make your changes in the source files themselves, then re-compile the CSS files. This works like the following:

  • Clone the repository to your machine
  • Run yarn to install dependencies
  • Make the theming changes you want in src/variables-*.css
  • Run yarn build to compile the CSS files
  • Use the compiled files in the out/ directory on your site

You also might want to check out the Contributing Guide as it contains further information about the build setup.

Contributing

Water.css becomes better for everyone when people like you help make it better!

Check out our Contributing Guide to learn how to get started.
And thanks for taking the time to contribute! :)

water.css's People

Contributors

0xflotus avatar alexanderbluhm avatar aloisdg avatar amasad avatar danielbiegler avatar dannymcgee avatar dependabot[bot] avatar drwpow avatar dtinth avatar eazulay avatar erjanmx avatar fedeaperez avatar gavinhenderson avatar habeckmatt avatar harshitjoshi9152 avatar himanshupandey2002 avatar janschneider1 avatar jehna avatar jonaskuske avatar jsmailes avatar kcclemo avatar khuongduybui avatar kognise avatar kylejrp avatar marcobiedermann avatar olgark avatar posiunas avatar sergioca87 avatar showtim3 avatar ty-porter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

water.css's Issues

Dev server not working

The development server doesn't live reload on changes and doesn't automatically build on CSS changes.

Remove `dist` folder

The dist folder should be removed in favor of publishing these build artifacts through npm. We would want to remove these files, add dist to .gitignore and create a new .npmignore that excludes the same files as .gitignore except for the dist folder.

This will make pull requests easier to review and prevent contributors from having to build beforehand.

This is probably a breaking change and should be done with the release of 2.0.0.

chat

  • Discord server would maybe be nice for questions etc.

Checkbox focus state is offset

Hey there, I noticed in your demo page the checkbox focus state is skewed. Just a heads up :)

I'm on Chrome Canary Version 75.0.3764.0 (Official Build) canary (64-bit)

Screen Capture on 2019-04-14 at 10-01-22

Demo page "switch theme" does not work.

@kognise @kylejrp @jonaskuske
I think using CSS variables is a great idea!!(#70)
However, I found a problem on the demo page, though.

By use "prefers-color-scheme", it does not switch with "switch theme" on the demo page.
This is because the device's theme setting is prioritized.

So, in order to preview both "switch theme" and "prefers-color-scheme" on the demo page, I think it is necessary to take measures such as creating a dedicated demo page.(Page for loading "* .standalone.css".)

I am sorry if it has already been discussed somewhere or the correspondence is in progress.

Modern version with CSS variables

So, turning this into a separate issue instead of just a comment in #25:

I'd like to see a "modern" version of water.css, using actual CSS variables (aka Custom Properties) for theming. They're supported in all modern browsers for a little more than two years now, here's the full browser support sheet.

This would allow us to ship builds including both the light and the dark theme (without having to load two separate files) for devs who want to add both themes to their site, to make theming depend on users' system-wide theme preference. (see #25)

We could still transpile the variables to static CSS where appropriate so we wouldn't lose any browser support, just add additional smaller builds for those who don't have to support IE any longer.

This would give us the following builds:
(you can also explore the options here: https://codepen.io/21stCenturyJonas/full/JqjPgL)

light.standalone.css

Includes light variables and core, compiled to "normal" static CSS โ€“ same as current light.css:

@import 'parts/_variables-light.scss';
@import 'parts/_core.scss';

dark.standalone.css

Includes dark variables and core, compiled to "normal" static CSS โ€“ same as current dark.css:

@import 'parts/_variables-dark.scss';
@import 'parts/_core.scss';

dark.css

Includes both dark and light variables, left as CSS custom properties so they can be changed dynamically. Dark is the default, light variables are only applied if (prefers-color-scheme: light) matches.

@import 'parts/_variables-dark.scss';
@media (prefers-color-scheme: light) {
  @import 'parts/_variables-light.scss';
}
@import 'parts/_core.scss';

light.css

Includes both light and dark variables, left as CSS custom properties so they can be changed dynamically. Light is the default, dark variables are only applied if (prefers-color-scheme: dark) matches.

@import 'parts/_variables-light.scss';
@media (prefers-color-scheme: dark) {
  @import 'parts/_variables-dark.scss';
}
@import 'parts/_core.scss';

dark-legacy.css

URL-imports (โ†’ at runtime in the browser) the compiled, static dark theme and, in case (prefers-color-scheme: light) matches, the compiled, static light theme, too. Requires multiple network requests and a larger download size overall but enables user-preference dependent theming in legacy browsers.

@import url('dark.standalone.css');
@import url('light.standalone.css') (prefers-color-scheme: light);

light-legacy.css

URL-imports (โ†’ at runtime in the browser) the compiled, static light theme and, in case (prefers-color-scheme: dark) matches, the compiled, static dark theme, too. Requires multiple network requests and a larger download size overall but enables user-preference dependent theming in legacy browsers.

@import url('light.standalone.css');
@import url('dark.standalone.css') (prefers-color-scheme: dark);

Happy to work on this once mission is a go ๐Ÿ˜€

slow development

been waiting for new version for weeks now.
considering the popularity of the project I hoped for things to move a bit faster here.

Fix switch theme button for IE11

I haven't nailed down the source of this problem, but the "Switch Theme" button on the demo page has been broken on IE11 for a while.

This change was not introduced by #85. However, #85 may have added more compatibility issues on top of it.

We could try tracing down the original source of the problem, or we could just update the build tools to automatically support IE11 and other browsers.

Move light theme to it's own file

It's pretty hypocritical saying:

Water.css is a css framework that doesn't require any classes. You just include it in your and forget about it, while it silently makes everything nicer.

But then for using the light theme I need to add a .light.

I think for clarity, size and ease of use it would be wise to split light and dark theme to their own files. When I want a light theme, why do I have to load all of the dark theme stylings? That's wasteful.

Splitting in respective files lends itself to creating more themes, for example a more red one, a blue one, a green one, grey, orange, etc.

Move to Netlify?

I'm considering switching to Netlify for our website. Here are some benefits of doing this:

  • Faster deployments of updates to the demo site
  • Ultra fast loading (does this matter that much?)
  • And, the most important thing at least to me: deployments of the demo for every pull request

This way anyone can view someone's new styles without downloading or installing anything. The main con of switching is that Netlify is a separate addon and might complicate things for a project in an early-ish stage.

I'd love to hear the community's feedback on this - what are your thoughts?

Support for <meter>, <progress>

HTML supports built-in progress bars:

<meter value="4" min="0" max="5">Section 4 of 5</meter><br>
<progress value="69" max="420"></progress>
<meter value="0.69">69%</meter>

Support for this stuff too would be cool :)

Bookmarklet

Hi!

I really like the idea of a simple, plug-to-play theme, so I created a simple piece of JavaScript that removes all style sheets and replaces them with water.css (light by default), to be used as a bookmarklet on sites with terrible, unreadable style sheets. It also makes sure that the viewport is setup properly for mobile devices.

Here's the code for the bookmarklet that you can copy:

javascript:document.querySelectorAll('link[rel="stylesheet"]').forEach(e=>e.parentElement.removeChild(e));var x=document.createElement("link");if(x.rel="stylesheet",x.href="https://cdn.jsdelivr.net/gh/kognise/water.css@latest/dist/light.css",document.head.appendChild(x),0==document.querySelectorAll('meta[name="viewport"]').length){var y=document.createElement("meta");y.name="viewport",y.content="width=device-width, initial-scale=1.0",document.head.appendChild(y)}

Here's the formatted code:

document.querySelectorAll('link[rel="stylesheet"]').forEach(x => x.parentElement.removeChild(x));
var x = document.createElement('link');
x.rel = 'stylesheet';
x.href = 'https://cdn.jsdelivr.net/gh/kognise/water.css@latest/dist/light.css';
document.head.appendChild(x);
if (document.querySelectorAll('meta[name="viewport"]').length == 0) {
    var y = document.createElement('meta');
    y.name = 'viewport';
    y.content = 'width=device-width, initial-scale=1.0';
    document.head.appendChild(y);
}

Support for <details>, <summary>

<details>
<summary>Sample Text</summary>
<p>Read this sample text.</p>
</details>

This is some neat HTML code which allows for collapsible/toggle-able content, but it'd be neat if the content within <p>...</p> was in a dotted border or something to make it easily distinguishable from the previously already displayed stuff.

Code, pre, and kbd styles

We need styles for inline code, inline keyboard shortcuts, and code blocks. This includes the following tags:

  • <code>
  • <kbd>
  • <pre>

Possibly also the following:

  • <samp>
  • <output>

Any help would be appreciated!

Move docs files into their own folder

@jonaskuske had a great suggestion in #71 to move all the docs files to their own folder. I think this will help clean up the project directory.

However, this change will break the Netlify configuration, as it's looking for index.html and not docs\index.html. @kognise will have to update the Netlify configuration as we make this change.

Prevent scroll bar from causing a layout shift

Because the layout is centered - a scroll bar coming in and out causes a slight shift. This is mostly visible in single page apps where the header should be static but it clicks to the side when moving between long and short pages.

min-height: 101% causes the scroll bar to always show up which is what this kind of layout needs.

Filesize Goal Conflicts

Hey @kognise! I just wanted to open up a friendly discussion on the filesize goal. I think it's holding water.css from being the best it can be.

One of the water.css goals is:

  • Small size (< 2kb)

However, it's come up that adding some new features would increase the file size:
#32 (comment)
#22 (comment)
#14 (comment)
#19 (comment)

I think this conflicts with some of the other goals:

  • Good code quality

Having a file size constraint encourages writing less-legible but smaller sized CSS rules.

  • Good browser support

Autoprefixing is taking up some of the file size.

  • Beautiful

A small file size is preventing new features from being added.


Proposition:

  • Remove the specific file size from the goal, but still keep the goal about a small file size.
  • Advertise the gzip'd file size from the CDN somewhere on the demo page. (It looks like jsdeliver serves dark.css in 856 B, which is much smaller than the 2 KB! Maybe gulp could calculate this at build time? Or javascript could calculate the real response size on the demo page?)

This would allow water.css to encourage readable code, add support for any browser, and add any kind of features. I think keeping a small file size as a goal will still discourage adding things like background images to the .css file and bloating it.

Switch Theme button doesn't work in IE11

The switch theme button on the demo page doesn't work in IE11. I'm not seeing any bugs in the console, but this is definitely coming from the code in script.js.

It looks like it could just be the arrow function used on the first line.

document.getElementById('switch').addEventListener('click', () => {

Caniuse mentions that it isn't supported in IE11:
https://caniuse.com/#feat=arrow-functions

To close this issue, we'd want to rewrite this function to be compatible with IE11 and test that the "switch theme" button works in IE11.

Support for text-level semantics

  1. <kbd and <code> should not have the same visual styles
  2. Support for <samp>
  3. Support for <mark>
  4. Support for <var>
  5. Support for <time>
  6. Support for <small>
  7. Support for <data> (?? -- rarely used -- not in w3c spec, but in WHATWG)
  8. Support for <q>
  9. Support for <cite>

I'm not sure if the following require custom styling: <abbr>, <dfn>, <ruby>, <rp>, <rt>, <bdi>

Add blockquotes

Blockquote styles are probably the next step! These would probably involve a thick left border of sorts which might need it's own Sass variable.

And let's think about whether or not a footer inside a blockquote should be styled differently for citing a source.

If you decide to take this upon yourself, thanks!

Accessibility Compliance

We should pick a specific level of accessibility and make sure all of our components meet that level of accessibility.

Steps:

  • Choose between AA and AAA accessibility
  • Add an accessibility checker to our gulp build tools and/or pull requests
  • Make sure each CSS component complies with our accessibility checks
  • Make sure the demo page complies with our accessibility checks before merging
  • Add accessibility to the project goals

I can take care of the build tools, but I think I'm looking for @kognise and the community's opinion on what level of accessibility we should be complying with.

Add button[disabled] styling

Right now, <button disabled> displays like any other button, same opacity, same cursor, same hover styles โ€“ no way to see that it's disabled other than clicking on it and wondering why nothing happens.
Some additional styles are necessary here in my opinion. ๐Ÿ‘€

How about adding a config file, such as linter?

I saw this PR(#23).
I think it is a good idea to add Linter.
Currently, gulpfile.js does not standardize the presence of semicolons and the style of indent.

However, it is inefficient to create all linter settings manually.
So I suggest creating a config based on JavaScript Standard Style(eslint-config-standard).

In addition, I think that it is also effective to set up the next.

If you have an opinion please!
If you are considering adding, I can give PR. (It will take a little while.)

<h1> heading semantics

Styling for <h1> headings is currently broken, as all <h1> headings are forced to have the same font size.

HTML allows you to have multiple <h1> elements on a pageยน, with one being the main site title and the others being nested e.g. inside <article> elements and acting as the main title for the respective article.

Browsers respect this and display nested <h1> elements smaller than the main one, but water.css breaks this because it forces all <h1> elements to have the same font-size.

<html>
  <body>
    <h1>Main title</h1>
    <article>
      <h1>Sub title</h1> <!-- Should have same size as <h2> -->
    </article>
  </body>
</html>

ยน The Document Outline as intended by HTML5 โ€“ but while browsers visually adhere to it by scaling down <h1> elements, they don't implement the Outline algorithm on a semantic level, unfortunately.

Add version picker in demo

I think it would be a good idea for the demo to have a link to the cdn of the current theme that the page is on. Like when it's on light, the link to the light cdn, and the same for dark.

Publish to npm

It might be nice to have water.css published to npm with every release. Then, users can install it using npm install water.css and include it in their projects without referencing a CDN.

This would mean we would have to update the package.json version semantically with every release as well.

::selection

By darkening the background color by 40% we can get a nice background color for selections.

I propose adding something like this:

::selection {
  background-color: darken($background-color, 40%);
}

Styling of input[type=range]

I think range inputs are in need of some better styles โ€“ the missing axis of the slider makes it unnecessarily hard to identify them imo:

image

Keep aspect ratio for images with height attribute

If I add size attributes for the image on the demo page, as shown below, the kitten gets squeezed when its container width is smaller than the image width. The width is changed, but the height remains the same, so the image changes aspect ratios.

<img src="https://placekitten.com/408/287" alt="Example kitten" width="408" height="287">

squashed

But if I add height: auto to the img rule set in the _base.scss file, the image keeps its aspect ratio when resized.

img {
  max-width: 100%;
  height: auto;
}

better

I like to specify both width and height on any image, when known, so that the text on the page doesn't jump around as the images load. Can that line be added to the img rule set without causing other problems? Thank you.

<address> and links inside

We can style the <address> element, or more specifically, the links inside!

MDN has good documentation:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/address

They've put icons before each type of link by using the following selectors:

a[href^="mailto"]::before {
    content: "๐Ÿ“ง ";
}

a[href^="tel"]::before {
    content: "๐Ÿ“ž ";
}

We could probably do something more interesting here, but I'm not a great designer and nothing's coming to mind. Any ideas?

<code> overlaps other lines

When <code> is adjacent to <code> in a different line, the background color will overlap.
This is also true for <code> in <li>.
I looking at Google Chrome.

If you consider this markup, I think it is better to adjust line-height, padding, margin, etc...

Better documentation of elements

#76 brought up the point that it's difficult for new HTML users to understand how to use some of the more complicated HTML elements.

I'd love to see index.html (or maybe a separate page) have some sections on how to use each of the elements water.css supports. For example, documentation for the blockquote element could be:


Blockquote

Documentation

Example usage:

<blockquote cite="https://www.huxley.net/bnw/four.html">
    <p>Words can be like X-rays, if you use them properly โ€“ they'll go through anything. You read and you're pierced.</p>
    <footer>
        <cite>โ€“ Aldous Huxley, Brave New World</cite>
    </footer>
</blockquote>

Demo:

Words can be like X-rays, if you use them properly โ€“ they'll go through anything. You read and you're pierced.

โ€“ Aldous Huxley, Brave New World

There would be a few parts to this issue:

  1. Discussion on what the content documentation should contain?
  2. Discussion on what the documentation should look like visually?
  3. Writing of the html for this documentation

This is a lot of work to do, so any help on this issue is very appreciated!

Switch Theme Doesn't Work At First Click

Expected behavior

I was expecting it to switch the theme after clicking on the button the very first time.

Actual behavior

The switch button doesn't work at first click. But works fine afterward.

How to reproduce

Browser

Version 73.0.3683.103 (Official Build) (64-bit)

Operating system: Tecno Camon X pro ( Android 0)

Recording Of The Bug

im4.ezgif.com

Table styles

Tables could probably use some default styles.
image

Here's a list of potential elements to style:

  • table (The full table)
  • thead (The header row of a table)
  • tbody (The body rows of a table)
  • tfoot (The footer row of a table)
  • tr (A row of the table)
  • td (Single cell)
  • th (Single cell corresponding to a row or column header)

Here's some other uncommon elements that are valid inside of a table:

  • caption
  • colgroup / col

Mixed http and https content error on github page

The website shows "not secure" warning:

Screenshot 2019-04-07 at 15 27 35

And condsole points to the placekitten.com fixed http request:

Loading mixed (insecure) display content โ€œhttp://placekitten.com/408/287โ€ on a secure page```

Style of <select>

I really love the library โค๏ธ but I think the <select> tag needs some adjustment.
It is hard to see a difference to a simple button.
Bildschirmfoto 2019-04-20 um 16 47 05

Maybe an inline svg can be added to show that it is a <select>.

select {
  background: #949494
    url("data:image/svg+xml;utf8,<svg viewBox='0 0 140 140' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><g><path d='m121.3,34.6c-1.6-1.6-4.2-1.6-5.8,0l-51,51.1-51.1-51.1c-1.6-1.6-4.2-1.6-5.8,0-1.6,1.6-1.6,4.2 0,5.8l53.9,53.9c0.8,0.8 1.8,1.2 2.9,1.2 1,0 2.1-0.4 2.9-1.2l53.9-53.9c1.7-1.6 1.7-4.2 0.1-5.8z'/></g></svg>")
    no-repeat;
  background-size: 12px;
  background-position: calc(100% - 15px) 57%;
  background-color: #efefef;
  padding-right: 35px;
}

Something like this looks good.
Bildschirmfoto 2019-04-20 um 16 52 36

Thank you for this cool lib :)

Refactor hard coded colors into reusable variables

This is a must, imo. Since you want to be able to switch some stuff easily for different clients.

CSS vars aren't supported by all browsers but question is if it's even worth talking about supporting older browsers since this helper lib is just for small PoC stuff.

If support for older stuff is needed one could use Sass but then again comes the question if this is overkill for such a small helper lib. I do believe however, that being able to quickly switch color themes is necessary - at least for me personally.

What do you think?

Update Theming Guide in README.md

The source files for water.css were changed from SASS to just plain CSS using CSS variables. See the full details on #71.

This made the theming guide in README.md out of date. It needs these minor updates:

  • The references to SASS should be removed.
  • The variables should no longer be SASS variables. Instead of listing all our variables, we can just link to src/variables-dark.css or src/variables-light.css
  • How to edit CSS variables in browser to test theming
  • Basic Theming: How to override these CSS variables with your own stylesheet
  • Advanced Theming: Information about setting up a custom build file in src/builds/ should be added. There's a few types of builds that we should have descriptions for (see #71):
    • Normal (Like dark.css)
    • Standalone (Like dark.standalone.css)
    • Legacy (Like dark-legacy.css)
    • Legacy Standalone (Like dark-legacy.standalone.css)
  • Policy around support for community themes from #26/#42

Unfortunate input fields placing

Hi all,

So I noticed a weird issue. When I have a simple form going, without water.css it looks like this:
without water.css

With water.css it looks like this
with water.css

If the image failed to load: for some reason, after including water.css it moves input fields to the left of the form. If the import is commented out - fields are centered.

Not sure what's causing it all, though it looks like a thing to def fix.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.