cloudscribe / cloudscribe.Web.Pagination

ASP.NET Core MVC TagHelper for Pagination
Apache License 2.0
141 stars 25 forks source link

Hi, Some issues with CSS ? #27

Closed roniaxe closed 7 years ago

roniaxe commented 7 years ago

Hi Joe!

Wanted to thank you for your great project. I wanted to ask you, for some reason the pagination CSS seems to look awkward, and I couldn't find the reason since all the static resources looks in place. I attach a picture of how the pagination looks after forked it from Git. image

It looks the same pretty much in the other paginations examples.

Hope you can figure out where's the problem. Thank you ! Roni.

joeaudette commented 7 years ago

It is designed to work with bootstrap css if you don't use bootstrap then you must style it with your own custom css

roniaxe commented 7 years ago

Yeah obviously, but it seems like bootstrap.css is in : image

joeaudette commented 7 years ago

you are having this problem with my demo app not in your own project? Maybe the boostrap is not installed. In Visual Studio 2015, right click the "Dependencies" node in the demo app and then click "Restore Packages". That should make it download and install bootstrap and other client side dependencies. Visual Studio should generally install it automatically but sometimes it may act up and you have to tell it what to do

joeaudette commented 7 years ago

the demo app works fine for me

roniaxe commented 7 years ago

Yeah it's your demo app . I restored the dependencies, but it doesn't seems to make any changes. Bootstrap is installed, as i see the table and other components work with the bootstrap css, but only the pagination is not responding the the bootstrap. Hmm.. this is strange. I'll try to deep into it a little more to find why.

joeaudette commented 7 years ago

that is very strange indeed, does the problem happen on all the pages with the pager or just one/some? do you have Visual Studio 2015 update 3?

joeaudette commented 7 years ago

I would use the web browser dev tools to look for any errors in the console or any script or css failing to load

roniaxe commented 7 years ago

Yeah it happens in all the pages of the demo, but only with the demo. If i'll start a new project using bootstrap it'll work as expected, with the bootstrap CSS. I'm on update 3. Also, my ASPNETCORE_ENVIRONMENT in launchSettings.json is set to Development.

joeaudette commented 7 years ago

I just downloaded a new zip copy of this repo, after restoring packages and rebuild solution it works fine, so it is a real mystery why it isn't working for you, especially strange that most of the css works. are you using Windows or something else?

roniaxe commented 7 years ago

It's a mystery indeed :) , I really have hard time understand how come bootstrap is refusing to be loaded. I just downloaded a fresh new ZIP of the repo, and hoped i'll see anything different, but it's the same. I'm using Windows. I'll keep update you as I fix it, hopefully.

roniaxe commented 7 years ago

It looks like for some reason bootstrap is not loaded from my static directory, Only when copied this line to the body (without conditions) it seems to work fine

image

This is weird...

roniaxe commented 7 years ago

Looking again, it does load, but i think that bootstap.css that comes with the project demo is missing some data. For example, can't find navbar-inverse..

roniaxe commented 7 years ago

I found the issue , bower is running with --forst-latest flag, which causing it downloading always bootstrap 4, that is missing many of the styles included in 3.* . this is the bug report : https://github.com/aspnet/Tooling/issues/665

Thanks for your help !!

joeaudette commented 7 years ago

interesting, glad you found the problem