Skip to content

Actualización de UI#24

Open
andresciceri wants to merge 5 commits intoangularcolombia:masterfrom
andresciceri:lastVersion
Open

Actualización de UI#24
andresciceri wants to merge 5 commits intoangularcolombia:masterfrom
andresciceri:lastVersion

Conversation

@andresciceri
Copy link
Copy Markdown

#10 build: actualiza versión a 5.0.3, nuevo template con bootstrap 4.

"styles": [
"styles.styl"
"../node_modules/bootstrap/dist/css/bootstrap.min.css",
"../node_modules/font-awesome/css/font-awesome.min.css",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think is fine to use Font Awesome, but the use of Bootstrap should be reviewed. Perhaps it would be better and cleaner not to use a CSS framework.

color #CDDED2
display flex
flex-direction column
header.masthead {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

One of the perks of using a CSS preprocessor is nested selectors, they should, and must be used. I see complex selectors, that could be nested. I see you're keeping a high specificity, that should be avoided.

font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif; }
#mainNav .navbar-brand:focus, #mainNav .navbar-brand:hover {
color: #f05f40; }
#mainNav .navbar-nav > li.nav-item > a.nav-link,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Too specific selector. Avoid using ids for style selection.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Mmm sí, usar ID en css no es recomendable https://css-tricks.com/how-css-selectors-work/#article-header-id-0

this.authenticationService.user$.subscribe(user => {
this.user = user
});
window.addEventListener('scroll', this.scroll, true);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Perhaps this could go in a directive, detached from a specific component.

src/styles.styl Outdated
&.accent
color #fafafa
background-color #A852FE No newline at end of file
font-family 'Merriweather', 'Helvetica Neue', Arial, sans-serif
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Font names should go in a variable

src/styles.styl Outdated
-moz-transition all 0.2s
transition all 0.2s
&:hover
color #f05f40
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Colors should be variables too

src/styles.styl Outdated
border-color: #f90000; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
color: #fff;
background-color: #b70000 !important; }
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is really necessary to use !important here? I understand that overwriting a property in a framework could bring you here, but perhaps it's due a specificity problem. Worth checking it.

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.

3 participants