Change fonts in WAB 2.6

1215
14
Jump to solution
11-14-2017 07:23 AM
GeorgeKatsambas
Occasional Contributor III

To change title fonts for all my widgets do I have to change each individual css file? For example in the Measure widget I want to change the font size of measure.

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

George,

  No you can add this new css rule to your apps theme common.css file:

.jimu-on-screen-widget-panel>.jimu-panel-title>.title-label,
.jimu-foldable-panel .title-label {
  font-size: 22px;
}

View solution in original post

0 Kudos
14 Replies
RobertScheitlin__GISP
MVP Emeritus

George,

  No you can add this new css rule to your apps theme common.css file:

.jimu-on-screen-widget-panel>.jimu-panel-title>.title-label,
.jimu-foldable-panel .title-label {
  font-size: 22px;
}
0 Kudos
GeorgeKatsambas
Occasional Contributor III

A few months ago you also helped me with changing the color

.FoldableTheme.default .jimu-on-screen-widget-panel > .jimu-panel-title {

  background-color: rgb(255, 0, 0);

  background-color: rgba(255, 0, 0, 1);

}

I can add this rule in the same place right? Do i need the Bold text as well?

WAB DE 2.6

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

George,

   Yes and Yes if you are using the foldable theme.

0 Kudos
GeorgeKatsambas
Occasional Contributor III

If i add .FoldableTheme.default  nothing happens, if i add 

@import url("panels/FoldablePanel/style.css");
@import url("panels/DockablePanel/style.css");
/********** styles for simple panel***********/
.jimu-simple-panel{
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
}
.jimu-on-screen-widget-panel>.jimu-panel-title>.title-label,
.jimu-foldable-panel .title-label {
font-size: 25px;
}
.jimu-on-screen-widget-panel>.jimu-panel-title>.title-label,
.jimu-foldable-panel .title-label {
background-color: rgb(255, 0, 0);
background-color: rgba(255, 0, 0,);
}

I get this, I assume my syntax is wrong somewhere?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

George,

Try this:

@import url("panels/FoldablePanel/style.css");
@import url("panels/DockablePanel/style.css");
/********** styles for simple panel***********/
.jimu-simple-panel{
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
}

.jimu-on-screen-widget-panel>.jimu-panel-title>.title-label,
.jimu-foldable-panel .title-label {
  font-size: 25px;
}

.jimu-on-screen-widget-panel > .jimu-panel-title {
  background-color: rgb(255, 0, 0);
  background-color: rgba(255, 0, 0, 1);
}
0 Kudos
GeorgeKatsambas
Occasional Contributor III

Thats not changing the color

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

George then try putting it like this:

@import url("panels/FoldablePanel/style.css");
@import url("panels/DockablePanel/style.css");
/********** styles for simple panel***********/
.jimu-simple-panel{
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
}

.jimu-on-screen-widget-panel>.jimu-panel-title>.title-label,
.jimu-foldable-panel .title-label {
  font-size: 25px;
}

.FoldableTheme.default .jimu-on-screen-widget-panel > .jimu-panel-title {
  background-color: rgb(255, 0, 0);
  background-color: rgba(255, 0, 0, 1);
}‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍
0 Kudos
GeorgeKatsambas
Occasional Contributor III

That does not work either, is it because the map was created in 2.5 and imported into 2.6?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

George,

   What theme are you using? I just tested again in 2.6 using the Foldable Theme and it looks like this:

Are you taking about the HeaderController widget panel not having the red color?

0 Kudos