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.6k 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.
    • VarguitV Offline
      Varguit
      last edited by yawns

      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;
      }
      
      strawberry 3.141S 1 Reply Last reply Reply Quote 0
      • strawberry 3.141S Offline
        strawberry 3.141 Project Sponsor Module Developer @Varguit
        last edited by

        @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 Reply Quote 3
        • VarguitV Offline
          Varguit
          last edited by

          0_1518269679909_a.png

          1 Reply Last reply Reply Quote 4
          • M Offline
            mmmmh Project Sponsor @strawberry 3.141
            last edited by

            @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

              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

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • 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