• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Alert font size

Scheduled Pinned Locked Moved Development
5 Posts 3 Posters 3.1k Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    Varguit
    last edited by yawns Feb 10, 2018, 11:00 AM Feb 10, 2018, 10:23 AM

    Hi, I’m trying to increase the font-size of the alert, I want it to fit almost the entire screen.

    I’ve copied the css to custom and modified the font-size that comes at 70% by default, I’ve tried with 300% and even with 300px but no effect on the size of the text.
    Can someone tell me how to? I don’t want to modify de original alert.js where the font-size is 30px for the title and 22px for the message.

    That’s my custom.css

    .ns-box {
    
    background: #fff;
    padding: 17px;
    line-height: 1.4;
    margin-bottom: 10px;
    z-index: 1;
    color: black;
    font-size: 300%;
    position: relative;
    display: table;
    word-wrap: break-word;
    max-width: 100%;
    border-radius: 5px;
    }
    
    .ns-alert {
    border-style: solid;
    border-color: #fff;
    padding: 17px;
    line-height: 1.4;
    margin-bottom: 10px;
    z-index: 3;
    color: white;
    font-size: 300%;
    position: fixed;
    text-align: center;
    right: 0;
    left: 0;
    margin-right: auto;
    margin-left: auto;
    top: 40%;
    width: 40%;
    height: auto;
    word-wrap: break-word;
    border-radius: 20px;
    }
    
    S 1 Reply Last reply Feb 10, 2018, 12:11 PM Reply Quote 0
    • S Offline
      strawberry 3.141 Project Sponsor Module Developer @Varguit
      last edited by Feb 10, 2018, 12:11 PM

      @Varguit the problem is that there are some inline styles, some css ninja should get you going

      .ns-alert span.light[style],
      .ns-alert span.thin[style] {
          font-size: 60px !important;
      }
      

      Please create a github issue if you need help, so I can keep track

      M 1 Reply Last reply Apr 29, 2019, 2:13 PM Reply Quote 3
      • V Offline
        Varguit
        last edited by Feb 10, 2018, 1:34 PM

        0_1518269679909_a.png

        1 Reply Last reply Reply Quote 4
        • M Offline
          mmmmh Project Sponsor @strawberry 3.141
          last edited by Apr 29, 2019, 2:13 PM

          @strawberry-3-141 I am also trying to accomplish bigger alert text. I made the suggested addition to my custom.css but it doesn’t work. What am I missing?

          1 Reply Last reply Reply Quote 0
          • M Offline
            mmmmh Project Sponsor
            last edited by Apr 29, 2019, 3:01 PM

            Okay, I figured it out. For posterity: one needs to address the specific sub-style:

            .ns-alert span.light.dimmed.medium,
            .ns-alert span.thin.thin.bright.small {
                font-size: 80px !important;
            }
            
            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy