You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficcontrol.apache.org by Oren Shemesh <or...@qwilt.com> on 2017/01/10 16:48:15 UTC
Standard CSS files for traffic portal ?
I am installing traffic portal for the first time.
The default installation exposes a HTML site without any CSS data, so the
site looks primitive and unprofessional.
The installation manual instructs the user to replace the default (empty)
CSS file with whatever she wants, but creating a nicer looking interface
requires a significant amount of knowledge about css, and some work.
Is there a place where I can get a CSS file for traffic portal, which would
make it look nicer ?
I noted that the traffic portal source code contains .scss files, which
according to my understanding, can be converted to .css as part of the
build process. Should I build traffic portal from source in order to use
these files? Are they good for my purpose ?
Thanks in advance, Oren
Re: Standard CSS files for traffic portal ?
Posted by Oren Shemesh <or...@qwilt.com>.
Thanks Jeremy, it sure looks much better with this css :-)
On Wed, Jan 11, 2017 at 6:28 PM, Jeremy Mitchell <mi...@gmail.com>
wrote:
> you are right. the css seems to be missing from the 1.7 rpm for some
> reason. I've attached the css that should go at resources/styles/main.css
>
> let me know if that helps.
>
> jeremy
>
> On Tue, Jan 10, 2017 at 11:53 PM, Oren Shemesh <or...@qwilt.com> wrote:
>
>> Thanks Jeremy,
>>
>> Yes, I followed the installation guide carefully... Did not try to build
>> from source, though.
>>
>> I guess there is a problem with the official build of the 1.7 RPM,
>> because this RPM (traffic_portal-1.7.0-3908.5b77f60f.x86_64.rpm,
>> downloaded from the non-ASF download page
>> <http://traffic-control-cdn.net/downloads/index.html>) does not
>> contain resources/styles/main.css.
>> (You can run "rpm -qlp traffic_portal-1.7.0-3908.5b77f60f.x86_64.rpm |
>> grep css" to validate this)
>> It does contain the comments-only file resources/assets/css/custom.css.
>>
>> I assume that the newer ASF downloads page (http://trafficcontrol.apache.
>> org/downloads/index.html) should contain links to the RPMs of TC version
>> 1.8.
>> Unfortunately I cannot see such links anywhere on that page. Is this a
>> temporary situation ?
>>
>> I guess I will have to build Traffic Portal from source, to get main.css.
>>
>> (Do you happen to know of a publicly-visible installation of Traffic
>> Portal, when I can "steal" main.css from ?)
>>
>> Thanks a lot !
>>
>> On Wed, Jan 11, 2017 at 6:17 AM, Jeremy Mitchell <mi...@gmail.com>
>> wrote:
>>
>>> Also, Oren, make sure you refer to these docs regarding installation of
>>> the traffic portal:
>>>
>>> http://trafficcontrol.apache.org/docs/latest/admin/traffic_portal.html
>>> http://trafficcontrol.apache.org/docs/latest/development/tra
>>> ffic_portal.html
>>>
>>> Jeremy
>>>
>>> On Tue, Jan 10, 2017 at 8:08 PM, Jeremy Mitchell <mi...@gmail.com>
>>> wrote:
>>>
>>>> Oren,
>>>>
>>>> Actually, the default installation of traffic portal does utilize a
>>>> significant amount of CSS provided by bootstrap as well additional CSS
>>>> required for layout of the traffic portal. This CSS can be found in
>>>> https://github.com/apache/incubator-trafficcontrol/blob/m
>>>> aster/traffic_portal/app/src/styles/main.scss
>>>>
>>>> Notice line #21 where the bootstrap stylesheet is imported. Also,
>>>> you'll see all the Sass files (.scss) that are imported at build time and
>>>> compiled to css. And then finally, you'll see additional Sass declarations.
>>>>
>>>> Anyhow, if the build is done correctly, you'll end up with this file
>>>> with all the minified CSS required of the traffic
>>>> portal: resources/styles/main.css
>>>>
>>>> And you can see in the traffic portal's index page where this CSS is
>>>> used: https://github.com/apache/incubator-trafficcontrol/blo
>>>> b/master/traffic_portal/app/src/index.html#L33
>>>>
>>>> And if the default style is not to your liking at that point, you
>>>> always have the option of overriding the default styles by creating your
>>>> own resources/assets/css/custom.css which is used on
>>>> https://github.com/apache/incubator-trafficcontrol/blob/mast
>>>> er/traffic_portal/app/src/index.html#L34
>>>>
>>>> Hope that help,
>>>>
>>>> Jeremy Mitchell
>>>>
>>>> FYI - here's what the default traffic portal will look like if built
>>>> correctly.
>>>>
>>>> [image: Inline image 1]
>>>>
>>>>
>>>>
>>>> On Tue, Jan 10, 2017 at 9:48 AM, Oren Shemesh <or...@qwilt.com> wrote:
>>>>
>>>>> I am installing traffic portal for the first time.
>>>>> The default installation exposes a HTML site without any CSS data, so
>>>>> the site looks primitive and unprofessional.
>>>>> The installation manual instructs the user to replace the default
>>>>> (empty) CSS file with whatever she wants, but creating a nicer looking
>>>>> interface requires a significant amount of knowledge about css, and some
>>>>> work.
>>>>>
>>>>> Is there a place where I can get a CSS file for traffic portal, which
>>>>> would make it look nicer ?
>>>>>
>>>>> I noted that the traffic portal source code contains .scss files,
>>>>> which according to my understanding, can be converted to .css as part of
>>>>> the build process. Should I build traffic portal from source in order to
>>>>> use these files? Are they good for my purpose ?
>>>>>
>>>>> Thanks in advance, Oren
>>>>>
>>>>
>>>>
>>>
>>
>>
>> --
>>
>> *Oren Shemesh*
>> Qwilt | Work: +972-72-2221637 <+972%2072-222-1637>| Mobile:
>> +972-50-2281168 <+972%2050-228-1168> | orens@qwilt.com <yo...@qwilt.com>
>>
>
>
--
*Oren Shemesh*
Qwilt | Work: +972-72-2221637| Mobile: +972-50-2281168 | orens@qwilt.com
<yo...@qwilt.com>
Re: Standard CSS files for traffic portal ?
Posted by Jeremy Mitchell <mi...@gmail.com>.
you are right. the css seems to be missing from the 1.7 rpm for some
reason. I've attached the css that should go at resources/styles/main.css
let me know if that helps.
jeremy
On Tue, Jan 10, 2017 at 11:53 PM, Oren Shemesh <or...@qwilt.com> wrote:
> Thanks Jeremy,
>
> Yes, I followed the installation guide carefully... Did not try to build
> from source, though.
>
> I guess there is a problem with the official build of the 1.7 RPM, because
> this RPM (traffic_portal-1.7.0-3908.5b77f60f.x86_64.rpm, downloaded from
> the non-ASF download page
> <http://traffic-control-cdn.net/downloads/index.html>) does not
> contain resources/styles/main.css.
> (You can run "rpm -qlp traffic_portal-1.7.0-3908.5b77f60f.x86_64.rpm |
> grep css" to validate this)
> It does contain the comments-only file resources/assets/css/custom.css.
>
> I assume that the newer ASF downloads page (http://trafficcontrol.apache.
> org/downloads/index.html) should contain links to the RPMs of TC version
> 1.8.
> Unfortunately I cannot see such links anywhere on that page. Is this a
> temporary situation ?
>
> I guess I will have to build Traffic Portal from source, to get main.css.
>
> (Do you happen to know of a publicly-visible installation of Traffic
> Portal, when I can "steal" main.css from ?)
>
> Thanks a lot !
>
> On Wed, Jan 11, 2017 at 6:17 AM, Jeremy Mitchell <mi...@gmail.com>
> wrote:
>
>> Also, Oren, make sure you refer to these docs regarding installation of
>> the traffic portal:
>>
>> http://trafficcontrol.apache.org/docs/latest/admin/traffic_portal.html
>> http://trafficcontrol.apache.org/docs/latest/development/tra
>> ffic_portal.html
>>
>> Jeremy
>>
>> On Tue, Jan 10, 2017 at 8:08 PM, Jeremy Mitchell <mi...@gmail.com>
>> wrote:
>>
>>> Oren,
>>>
>>> Actually, the default installation of traffic portal does utilize a
>>> significant amount of CSS provided by bootstrap as well additional CSS
>>> required for layout of the traffic portal. This CSS can be found in
>>> https://github.com/apache/incubator-trafficcontrol/blob/m
>>> aster/traffic_portal/app/src/styles/main.scss
>>>
>>> Notice line #21 where the bootstrap stylesheet is imported. Also, you'll
>>> see all the Sass files (.scss) that are imported at build time and compiled
>>> to css. And then finally, you'll see additional Sass declarations.
>>>
>>> Anyhow, if the build is done correctly, you'll end up with this file
>>> with all the minified CSS required of the traffic
>>> portal: resources/styles/main.css
>>>
>>> And you can see in the traffic portal's index page where this CSS is
>>> used: https://github.com/apache/incubator-trafficcontrol/blo
>>> b/master/traffic_portal/app/src/index.html#L33
>>>
>>> And if the default style is not to your liking at that point, you always
>>> have the option of overriding the default styles by creating your
>>> own resources/assets/css/custom.css which is used on
>>> https://github.com/apache/incubator-trafficcontrol/blob/mast
>>> er/traffic_portal/app/src/index.html#L34
>>>
>>> Hope that help,
>>>
>>> Jeremy Mitchell
>>>
>>> FYI - here's what the default traffic portal will look like if built
>>> correctly.
>>>
>>> [image: Inline image 1]
>>>
>>>
>>>
>>> On Tue, Jan 10, 2017 at 9:48 AM, Oren Shemesh <or...@qwilt.com> wrote:
>>>
>>>> I am installing traffic portal for the first time.
>>>> The default installation exposes a HTML site without any CSS data, so
>>>> the site looks primitive and unprofessional.
>>>> The installation manual instructs the user to replace the default
>>>> (empty) CSS file with whatever she wants, but creating a nicer looking
>>>> interface requires a significant amount of knowledge about css, and some
>>>> work.
>>>>
>>>> Is there a place where I can get a CSS file for traffic portal, which
>>>> would make it look nicer ?
>>>>
>>>> I noted that the traffic portal source code contains .scss files, which
>>>> according to my understanding, can be converted to .css as part of the
>>>> build process. Should I build traffic portal from source in order to use
>>>> these files? Are they good for my purpose ?
>>>>
>>>> Thanks in advance, Oren
>>>>
>>>
>>>
>>
>
>
> --
>
> *Oren Shemesh*
> Qwilt | Work: +972-72-2221637 <+972%2072-222-1637>| Mobile:
> +972-50-2281168 <+972%2050-228-1168> | orens@qwilt.com <yo...@qwilt.com>
>
Re: Standard CSS files for traffic portal ?
Posted by Oren Shemesh <or...@qwilt.com>.
Thanks Jeremy,
Yes, I followed the installation guide carefully... Did not try to build
from source, though.
I guess there is a problem with the official build of the 1.7 RPM, because
this RPM (traffic_portal-1.7.0-3908.5b77f60f.x86_64.rpm, downloaded from
the non-ASF download page
<http://traffic-control-cdn.net/downloads/index.html>) does not
contain resources/styles/main.css.
(You can run "rpm -qlp traffic_portal-1.7.0-3908.5b77f60f.x86_64.rpm | grep
css" to validate this)
It does contain the comments-only file resources/assets/css/custom.css.
I assume that the newer ASF downloads page (
http://trafficcontrol.apache.org/downloads/index.html) should contain links
to the RPMs of TC version 1.8.
Unfortunately I cannot see such links anywhere on that page. Is this a
temporary situation ?
I guess I will have to build Traffic Portal from source, to get main.css.
(Do you happen to know of a publicly-visible installation of Traffic
Portal, when I can "steal" main.css from ?)
Thanks a lot !
On Wed, Jan 11, 2017 at 6:17 AM, Jeremy Mitchell <mi...@gmail.com>
wrote:
> Also, Oren, make sure you refer to these docs regarding installation of
> the traffic portal:
>
> http://trafficcontrol.apache.org/docs/latest/admin/traffic_portal.html
> http://trafficcontrol.apache.org/docs/latest/development/
> traffic_portal.html
>
> Jeremy
>
> On Tue, Jan 10, 2017 at 8:08 PM, Jeremy Mitchell <mi...@gmail.com>
> wrote:
>
>> Oren,
>>
>> Actually, the default installation of traffic portal does utilize a
>> significant amount of CSS provided by bootstrap as well additional CSS
>> required for layout of the traffic portal. This CSS can be found in
>> https://github.com/apache/incubator-trafficcontrol/blob/m
>> aster/traffic_portal/app/src/styles/main.scss
>>
>> Notice line #21 where the bootstrap stylesheet is imported. Also, you'll
>> see all the Sass files (.scss) that are imported at build time and compiled
>> to css. And then finally, you'll see additional Sass declarations.
>>
>> Anyhow, if the build is done correctly, you'll end up with this file with
>> all the minified CSS required of the traffic portal: resources/styles/main.
>> css
>>
>> And you can see in the traffic portal's index page where this CSS is
>> used: https://github.com/apache/incubator-trafficcontrol/
>> blob/master/traffic_portal/app/src/index.html#L33
>>
>> And if the default style is not to your liking at that point, you always
>> have the option of overriding the default styles by creating your
>> own resources/assets/css/custom.css which is used on
>> https://github.com/apache/incubator-trafficcontrol/blob/mast
>> er/traffic_portal/app/src/index.html#L34
>>
>> Hope that help,
>>
>> Jeremy Mitchell
>>
>> FYI - here's what the default traffic portal will look like if built
>> correctly.
>>
>> [image: Inline image 1]
>>
>>
>>
>> On Tue, Jan 10, 2017 at 9:48 AM, Oren Shemesh <or...@qwilt.com> wrote:
>>
>>> I am installing traffic portal for the first time.
>>> The default installation exposes a HTML site without any CSS data, so
>>> the site looks primitive and unprofessional.
>>> The installation manual instructs the user to replace the default
>>> (empty) CSS file with whatever she wants, but creating a nicer looking
>>> interface requires a significant amount of knowledge about css, and some
>>> work.
>>>
>>> Is there a place where I can get a CSS file for traffic portal, which
>>> would make it look nicer ?
>>>
>>> I noted that the traffic portal source code contains .scss files, which
>>> according to my understanding, can be converted to .css as part of the
>>> build process. Should I build traffic portal from source in order to use
>>> these files? Are they good for my purpose ?
>>>
>>> Thanks in advance, Oren
>>>
>>
>>
>
--
*Oren Shemesh*
Qwilt | Work: +972-72-2221637| Mobile: +972-50-2281168 | orens@qwilt.com
<yo...@qwilt.com>
Re: Standard CSS files for traffic portal ?
Posted by Jeremy Mitchell <mi...@gmail.com>.
Also, Oren, make sure you refer to these docs regarding installation of the
traffic portal:
http://trafficcontrol.apache.org/docs/latest/admin/traffic_portal.html
http://trafficcontrol.apache.org/docs/latest/development/traffic_portal.html
Jeremy
On Tue, Jan 10, 2017 at 8:08 PM, Jeremy Mitchell <mi...@gmail.com>
wrote:
> Oren,
>
> Actually, the default installation of traffic portal does utilize a
> significant amount of CSS provided by bootstrap as well additional CSS
> required for layout of the traffic portal. This CSS can be found in
> https://github.com/apache/incubator-trafficcontrol/blob/
> master/traffic_portal/app/src/styles/main.scss
>
> Notice line #21 where the bootstrap stylesheet is imported. Also, you'll
> see all the Sass files (.scss) that are imported at build time and compiled
> to css. And then finally, you'll see additional Sass declarations.
>
> Anyhow, if the build is done correctly, you'll end up with this file with
> all the minified CSS required of the traffic portal: resources/styles/main.
> css
>
> And you can see in the traffic portal's index page where this CSS is used:
> https://github.com/apache/incubator-trafficcontrol/blob/master/
> traffic_portal/app/src/index.html#L33
>
> And if the default style is not to your liking at that point, you always
> have the option of overriding the default styles by creating your
> own resources/assets/css/custom.css which is used on
> https://github.com/apache/incubator-trafficcontrol/blob/
> master/traffic_portal/app/src/index.html#L34
>
> Hope that help,
>
> Jeremy Mitchell
>
> FYI - here's what the default traffic portal will look like if built
> correctly.
>
> [image: Inline image 1]
>
>
>
> On Tue, Jan 10, 2017 at 9:48 AM, Oren Shemesh <or...@qwilt.com> wrote:
>
>> I am installing traffic portal for the first time.
>> The default installation exposes a HTML site without any CSS data, so the
>> site looks primitive and unprofessional.
>> The installation manual instructs the user to replace the default (empty)
>> CSS file with whatever she wants, but creating a nicer looking interface
>> requires a significant amount of knowledge about css, and some work.
>>
>> Is there a place where I can get a CSS file for traffic portal, which
>> would make it look nicer ?
>>
>> I noted that the traffic portal source code contains .scss files, which
>> according to my understanding, can be converted to .css as part of the
>> build process. Should I build traffic portal from source in order to use
>> these files? Are they good for my purpose ?
>>
>> Thanks in advance, Oren
>>
>
>
Re: Standard CSS files for traffic portal ?
Posted by Jeremy Mitchell <mi...@gmail.com>.
Oren,
Actually, the default installation of traffic portal does utilize a
significant amount of CSS provided by bootstrap as well additional CSS
required for layout of the traffic portal. This CSS can be found in
https://github.com/apache/incubator-trafficcontrol/blob/master/traffic_portal/app/src/styles/main.scss
Notice line #21 where the bootstrap stylesheet is imported. Also, you'll
see all the Sass files (.scss) that are imported at build time and compiled
to css. And then finally, you'll see additional Sass declarations.
Anyhow, if the build is done correctly, you'll end up with this file with
all the minified CSS required of the traffic
portal: resources/styles/main.css
And you can see in the traffic portal's index page where this CSS is used:
https://github.com/apache/incubator-trafficcontrol/blob/master/traffic_portal/app/src/index.html#L33
And if the default style is not to your liking at that point, you always
have the option of overriding the default styles by creating your
own resources/assets/css/custom.css which is used on
https://github.com/apache/incubator-trafficcontrol/blob/master/traffic_portal/app/src/index.html#L34
Hope that help,
Jeremy Mitchell
FYI - here's what the default traffic portal will look like if built
correctly.
[image: Inline image 1]
On Tue, Jan 10, 2017 at 9:48 AM, Oren Shemesh <or...@qwilt.com> wrote:
> I am installing traffic portal for the first time.
> The default installation exposes a HTML site without any CSS data, so the
> site looks primitive and unprofessional.
> The installation manual instructs the user to replace the default (empty)
> CSS file with whatever she wants, but creating a nicer looking interface
> requires a significant amount of knowledge about css, and some work.
>
> Is there a place where I can get a CSS file for traffic portal, which
> would make it look nicer ?
>
> I noted that the traffic portal source code contains .scss files, which
> according to my understanding, can be converted to .css as part of the
> build process. Should I build traffic portal from source in order to use
> these files? Are they good for my purpose ?
>
> Thanks in advance, Oren
>