Skip to content

New design #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

New design #12

wants to merge 8 commits into from

Conversation

garbas
Copy link
Member

@garbas garbas commented Mar 4, 2022

@samueldr Can you look at the styles/index.less if everything is implemented ok?

@github-actions
Copy link

github-actions bot commented Mar 4, 2022

@tomberek
Copy link

tomberek commented Mar 6, 2022

Looks pretty.

@davidak
Copy link
Member

davidak commented Mar 7, 2022

Generally looks good.

Few remarks:

this text is not very readable. it's too thin and has little contrast

Screenshot from 2022-03-07 06-51-56

same here

Screenshot from 2022-03-07 06-51-32

the badges look bad, because the text is not perfectly centered. also the font size looks a bit too big for the size of the badge

Screenshot from 2022-03-07 06-51-21

See bootstrap for comparison:

Screenshot from 2022-03-07 07-02-57

https://getbootstrap.com/docs/5.1/components/badge/#background-colors

Comment on lines 43 to 49
& > table.styled-table {
& > thead { font-size: 130%; }
& > tbody { font-size: 100%; }

& > thead > tr > th { background: inherit; }
& > tbody > tr.stale { opacity: 60%; }
}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
& > table.styled-table {
& > thead { font-size: 130%; }
& > tbody { font-size: 100%; }
& > thead > tr > th { background: inherit; }
& > tbody > tr.stale { opacity: 60%; }
}
& > table.styled-table {
display: block;
overflow-x: auto;
& > thead { font-size: 130%; }
& > tbody { font-size: 100%; }
& > thead > tr > th { background: inherit; }
& > tbody > tr.stale { opacity: 60%; }
}

The site breaks a bit on mobile.
This would make the table vertically scrollable instead.

Copy link
Member

Choose a reason for hiding this comment

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

image

Copy link
Member

Choose a reason for hiding this comment

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

See the other suggestion; it's already implemented via a helper class.

@ncfavier
Copy link
Member

ncfavier commented Mar 7, 2022

I liked the "Build problem" badges in red. Grey means "feel free to ignore" to me.

Otherwise agree with @davidak

<noscript>
<p class="jsfallback">This page requires Javascript.</p>
</noscript>

<table class="table table-striped">
<table class="styled-table">
Copy link
Member

Choose a reason for hiding this comment

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

diff --git a/index.html b/index.html
index 8f0a044..7e12ad8 100644
--- a/index.html
+++ b/index.html
@@ -63,18 +63,20 @@
         <p class="jsfallback">This page requires Javascript.</p>
       </noscript>
 
-      <table class="styled-table">
-        <thead>
-          <tr>
-            <th>Channel</th>
-            <th>Last updated</th>
-            <th>Commit</th>
-            <th>Hydra job for tests</th>
-            <th>Channel Status</th>
-          </tr>
-        </thead>
-        <tbody id="channel-status"></tbody>
-      </table>
+      <div class="responsivescroll-table">
+        <table class="styled-table">
+          <thead>
+            <tr>
+              <th>Channel</th>
+              <th>Last updated</th>
+              <th>Commit</th>
+              <th>Hydra job for tests</th>
+              <th>Channel Status</th>
+            </tr>
+          </thead>
+          <tbody id="channel-status"></tbody>
+        </table>
+      </div>
     </div>
   </main>

(Can't suggest as it goes outside the diff span)

This will make only the table content scrollable.

It is okay to use the class names, or alternatively the mixins could be used.

}

.label {
font-size: 100%;
Copy link
Member

Choose a reason for hiding this comment

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

This is breaking the labels, and this is why they're not vertically aligned anymore. To feel correctly aligned, manual nudging needs to be done, padding-top: 0.4em; seems to fix it

More testing needs to be done, but this seems universal enough?

padding-top: calc(0.1rem + 0.3em);

It would need to be applied to the common styles.

#container();

& > table.styled-table {
& > thead { font-size: 130%; }
Copy link
Member

Choose a reason for hiding this comment

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

I wouldn't change the default for one specific site.

Suggested change
& > thead { font-size: 130%; }

Changing the font size all over isn't great. Are there specific concerns this is about?

Copy link
Member Author

Choose a reason for hiding this comment

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

This was about getting the table more readable.

& > thead { font-size: 130%; }
& > tbody { font-size: 100%; }

& > thead > tr > th { background: inherit; }
Copy link
Member

Choose a reason for hiding this comment

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

Why are we straying from the design here?

Suggested change
& > thead > tr > th { background: inherit; }

I mean this as a real question. If there are issues or concern, maybe it should be addressed a the common styles instead of in every projects.

Copy link
Member Author

Choose a reason for hiding this comment

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

Probably there is a style consern we should look at since table in its default form was not readable enough (to small).

Comment on lines +6 to +15
& > header {
&:extend(.navigation-bar all);

margin-bottom: 0;
}

// TODO: why is this not possible?
//& > div.page-title {
// &:extend(.page-title all);
//}
Copy link
Member

Choose a reason for hiding this comment

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

I think I see the problem.

The assumed structure for a page was:

body
  header
    ...
  main
    .page-title
    ...

This can be fixed by instead relying on

header + div.page-title {
  margin-top: -1rem;     
}                        

Though this has to be fixed at the common styles repo to be more proper.

Suggested change
& > header {
&:extend(.navigation-bar all);
margin-bottom: 0;
}
// TODO: why is this not possible?
//& > div.page-title {
// &:extend(.page-title all);
//}
& > header {
&:extend(.navigation-bar all);
}

Copy link
Member

Choose a reason for hiding this comment

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

@samueldr
Copy link
Member

samueldr commented Mar 8, 2022

A reminder that I had a sample of the DOM here:

There are a few differences compared to my draft (used to design the table component)

I don't mind if it's not used, I just wanted to make sure you realized I had prepared things out. Also note that the icons are in common styles.

garbas and others added 3 commits March 17, 2022 13:30
Co-authored-by: Samuel Dionne-Riel <[email protected]>
Co-authored-by: Samuel Dionne-Riel <[email protected]>
Co-authored-by: Samuel Dionne-Riel <[email protected]>
@github-actions
Copy link

Co-authored-by: Samuel Dionne-Riel <[email protected]>
@github-actions
Copy link

@github-actions
Copy link

@github-actions
Copy link

Co-authored-by: Samuel Dionne-Riel <[email protected]>
@github-actions
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants