Skip to content
This repository has been archived by the owner on Dec 11, 2021. It is now read-only.

Component: Meter Styling #73

Closed

Conversation

Noufal21
Copy link

Initial Styling for Meter

Initial Styling for Meter
Initial Styling for Meter
@Noufal21
Copy link
Author

I Signed CLA agreement

<body>
<meter max="120" value="50"></meter>
</body>
</html>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no new line at the end of this file.

Multicolor value bar.
MultiColor value bar.
1) Add new line at the end
2) MultiColor value bar.
@Noufal21
Copy link
Author

  1. Add new line at the end.
  2. MultiColor value bar.

New line at the end of the file is added.
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this tag: #57 (comment).

<!DOCTYPE html> change to lowercase as mention in the HTML styling guide.
/* Reset the default appearence */
-webkit-appearance: none;
width: 550px;
height: 25px;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This indentation is wrong (we don't have a SCSS style guide yet but it's kind of already decided that we'll use tabs. It's inconsistent with the rest of the code anyways.)

@arthurvr
Copy link
Contributor

I Signed CLA agreement

You'll need to update your git config to include your full name as well as your email address. You can read about it on http://contribute.jquery.org/CLA/status/?repo=css-chassis&sha=f4d3b387aeca6bb43c434f998237a94a899ea7a3#updating-git-config.


.meter::-webkit-meter-bar,.MultiColor::-webkit-meter-bar {
box-shadow: inset 0px 0px 7px -2px rgba(0,0,0,0.35);
background:#f1f1f1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a space. Like background: #f1f1f1;

Solve all the issue.
@Noufal21 Noufal21 force-pushed the 71-base-styling-for-meter branch 5 times, most recently from 1fd83d3 to 94f9e09 Compare April 21, 2015 18:40
Solve all the issue.
@Noufal21 Noufal21 force-pushed the 71-base-styling-for-meter branch from 94f9e09 to 4f6d7ba Compare April 21, 2015 18:47
Style new meter name as StripMeter
Do changes according to Jqueru CSS guide.
<title>Meter Styling</title>
<link rel="stylesheet" href="../dist/css/chassis.css">
</head>
<body>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per jQuery HTML Style Guide, <body> and <html> tags shouldn't be indented: http://contribute.jquery.org/style-guide/html/#indentation

@sfrisk
Copy link
Contributor

sfrisk commented May 3, 2015

The more I think about it, it might be wise if we're styling <meter> to also style <progress> since some browsers support <progress> and not <meter>

@@ -0,0 +1,58 @@
// ==========================================================================
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have file name and folder be spelt with a lower case 'm'

Although that being said, maybe meters should be included with typography? Thoughts?

}


.meter-multicolor:-moz-meter-optimum::-moz-meter-bar {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the contents of this selector are basically a direct copy of what you have in webkit implementation above (line 36). Why not just list both selectors up above once so you're not repeating the same contents multiple times in your scss file? It will help make customization easier.

Noufal21 added 3 commits May 5, 2015 22:33
Meter.html => meter.html
change all the nutpicks. :)
@sfrisk
Copy link
Contributor

sfrisk commented May 19, 2015

Per last week's meeting, closing this PR in favor of the approach in #80, since <meter>, <progress> and the <div> fallback for unsupported browsers really should be developed together.

@sfrisk sfrisk closed this May 19, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants