Update the checkboxes' appearance to be consistent with the rest of the form

I am utilizing the login form from a Fluent Kit framework, positioned third on the right in the example, specifically the dark one.

There is a minor detail that I would like to modify but unsure how: the checkbox input, when checked, defaults to the primary color defined by the framework instead of the desired info color consistent with the rest of the sign-up form. Do you have any suggestions on how to adjust this or create styles for various checkboxes, allowing for the use of different colors beyond just the primary option?


Below, I have attempted to replicate the styles by referencing the template links provided within the codepen:

input[id^="login2"]::-webkit-input-placeholder { color: #444444; }
:-moz-placeholder {
    color: #444444;
    opacity: 1;
}
input[id^="login2"]::-moz-placeholder {
    color: #444444;
    opacity: 1;
}
input[id^="login2"]:-ms-input-placeholder { color: #444444; }
input[id^="login2"]::-ms-input-placeholder { color: #444444; }
input[id^="login2"]::placeholder { color: #444444; }
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet"/>
<link href="https://cdn.jsdelivr.net/gh/nespero/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a0c6ccd5c5ced48dcbc9d4e0918e938e90">[email protected]</a>/css/fluent-kit.min.css" rel="stylesheet"/>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/nespero/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="62040e17070c164f090b1622534c504c52">[email protected]</a>/js/fluent-kit.min.js"></script>

<div class="row">

  <div class="col-xl-4 col-lg-6 col-md-8 py-2">
    <div class="mt-5 mt-md-0 bg-dimgrey text-white shadow-lg">
      <h5 class="py-3 text-center bold bg-darkdimgrey">
        Sign <span class="text-info">in</span>
      </h5>
      <div class="px-3"><hr class="my-0"></div>
      <div class="px-3 pt-3">
        <fieldset>
          <label for="login2-email">Email</label>
          <input id="login2-email" type="email" name="email" placeholder="<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="7c11193c19041d110c1019521f1311">[email protected]</a>">
        </fieldset>
        <fieldset>
          <label for="login2-password">Password</label>
          <input id="login2-password" type="password" name="password" placeholder="******************" class="input-with-button"/>
          <button class="mi mi-PasswordKeyHide text-info" data-toggle-password-visibility></button>
        </fieldset>
        <div class="d-flex my-2">
          <fieldset>
            <input type="checkbox" id="login2-remember-me" />
            <label for="login2-remember-me">Remember me</label>
          </fieldset>
          <small class="ml-auto"><a class="text-info bold" href="#">Forgot password?</a></small>
        </div>
        <div class="d-flex pb-3 mt-2">
          <small class="d-inline-block py-1">
            Not a member? <a class="text-info bold" href="#">Register</a>
          </small>
          <button class="ml-auto mt-0 btn btn-md btn-rounded btn-info cta">
            Sign in
            <i class="mi mi-ChevronRight"></i>
          </button>
        </div>
        <div class="pb-3 text-center">
          <small class="d-block mb-3">or sign in with</small>
          <div class="pb-3 d-flex justify-content-around">
            <a class="text-white" href="#"><i class="mi mi-facebook"></i></a>
            <a class="text-white" href="#"><i class="mi mi-twitter"></i></a>
            <a class="text-white" href="#"><i class="mi mi-google"></i></a>
            <a class="text-white" href="#"><i class="mi mi-linkedin"></i></a>
          </div>
        </div>
      </div>
    </div>
  </div>
  
</div>

Answer №1

Include this design

input[type=checkbox]#login2-remember-me:checked+label:after {
  background-color: #00B7C3;
}

input[type=checkbox]#login2-remember-me:checked+label:after {
  background-color: #00B7C3;
}
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" />
<link href="https://cdn.jsdelivr.net/gh/nespero/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="fe98928b9b908ad395978abecfd0cdd0ce">[email protected]</a>/css/fluent-kit.min.css" rel="stylesheet" />
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/nespero/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a8cec4ddcdc6dc85c3c1dce899869a8698">[email protected]</a>/js/fluent-kit.min.js"></script>

<div class="row">

  <div class="col-xl-4 col-lg-6 col-md-8 py-2">
    <div class="mt-5 mt-md-0 bg-dimgrey text-white shadow-lg">
      <h5 class="py-3 text-center bold bg-darkdimgrey">
        Log <span class="text-info">in</span>
      </h5>
      <div class="px-3">
        <hr class="my-0">
      </div>
      <div class="px-3 pt-3">
        <fieldset>
          <label for="login2-email">Email Address</label>
          <input id="login2-email" type="email" name="email" placeholder="<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="80ede5c0e5f8e1edf0ece5aee3efed">[email protected]</a>">
        </fieldset>
        <fieldset>
          <label for="login2-password">Passphrase</label>
          <input id="login2-password" type="password" name="password" placeholder="******************" class="input-with-button" />
          <button class="mi mi-PasswordKeyHide text-info" data-toggle-password-visibility></button>
        </fieldset>
        <div class="d-flex my-2">
          <fieldset>
            <input type="checkbox" id="login2-remember-me" />
            <label for="login2-remember-me">Save my info</label>
          </fieldset>
          <small class="ml-auto"><a class="text-info bold" href="#">Forgot secret?</a></small>
        </div>
        <div class="d-flex pb-3 mt-2">
          <small class="d-inline-block py-1">
            Not a part of us yet? <a class="text-info bold" href="#">Join Now</a>
          </small>
          <button class="ml-auto mt-0 btn btn-md btn-rounded btn-info cta">
            Log in
            <i class="mi mi-ChevronRight"></i>
          </button>
        </div>
        <div class="pb-3 text-center">
          <small class="d-block mb-3">or enter using</small>
          <div class="pb-3 d-flex justify-content-around">
            <a class="text-white" href="#"><i class="mi mi-facebook"></i></a>
            <a class="text-white" href="#"><i class="mi mi-twitter"></i></a>
            <a class="text-white" href="#"><i class="mi mi-google"></i></a>
            <a class="text-white" href="#"><i class="mi mi-linkedin"></i></a>
          </div>
        </div>
      </div>
    </div>
  </div>

</div>

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Adjust the div container to wrap underneath the image if the webpage width decreases

Hello there, I am currently in the process of creating my own portfolio. I have a brief introduction that I would like to display next to an image of myself, with the image positioned on the right side. I have a div called "container" which contains anoth ...

A checkbox placed within an anchor tag

Here is some code that I have: <a href class="dropdown-toggle"> <input type="checkbox" ng-model="test.checked"> <span class="fa fa-angle-down"></span> </a> When I click on the above code, I want the chec ...

Why does my design become chaotic when switching from four columns to two columns in responsive mode?

My layout is currently set up like this: But when I try to resize it into two columns, I encounter a new issue: I don't want to add height to the columns. How can I resolve this problem? Thank you. ...

Discover the nearest class and smoothly expand it with the slideDown function in jQuery

Hey there, I'm working on implementing a "View More" button on my page. The button will reveal another unordered list that currently has the class of "hidden-list". When the user clicks on "View More", I want it to slideToggle the hidden-list element ...

Numerous changes using media queries

Is there a way to have separate transitions in media queries without duplicating code? @media screen and (min-width: 800px) { #div { transition: width 1s; } } #div { transition: height 1s; /* Overrides previous one :( */ } How can I a ...

Restricting thumbnail scrolling within the visible area in a jQuery/CSS Gallery/Slideshow

Is it possible to create a gallery slideshow feature where the selected thumbnail's image source will be displayed in the main image container? I believe I can implement that part successfully. Currently, my challenge is defining the thumbnail scroll ...

Retrieve the href value from a DOM element

I'm currently working on a piece of code that aims to extract only the hrefs from the nav section. Here's what I have so far: componentDidMount(){ $("nav ul li a").each(function(k, j){ console.log(j); }); } So far, I've bee ...

Submitting data and files simultaneously to Ajax using Laravel

As I work on enhancing my registration page with Bootstrap Modal, I need to allow users to upload their image along with other information. HTML <form method="POST"> <center> <img name="user_image" id="proPic" src="ima ...

What is the method to determine the size of a numbered list?

Currently transitioning from jQuery to plain JavaScript. Previously used this in jQuery: var list = $('.list li'), listLength = list.length; Now attempting to achieve the same with JavaScript, but encountering issues: var list = documen ...

Error with an absolutely positioned element within a link in the Firefox browser

I'm experimenting with a unique effect for my links that involves making it look like the upper left corner has been bitten off. To achieve this, I am using absolute positioning of a square element with the same background color as the link itself. W ...

Click event triggers the loading of a page

Recently, I found a simple jQuery event that loads a page into an iframe within the corresponding div when clicked. You can check out the JS Fiddle example here Now, my goal is to achieve the following: Instead of using separate codes for #fra ...

JavaScript struggles when dealing with dynamically loaded tables

I am currently working on integrating the javascript widget from addtocalendar.com into my website. The code example provided by them is displayed below. Everything functions as expected when I place it on a regular page. However, I am facing an issue wher ...

Executing individual if/each statements to choose specific divs and modify the position of their background images separately

I am currently faced with the challenge of relocating a background image within a div based on the content of a span. The complication arises from the fact that multiple divs share the same class and cannot be individually modified. For instance, each ce ...

The Coinmarketcap API is currently experiencing technical difficulties

Here's the code I have using an API from coinmarketcap.com to retrieve and display the current price in a table. Unfortunately, it's not working as expected and I'm struggling to pinpoint the issue. Any assistance would be greatly appreciate ...

The positioning of sub-menu items is incorrect

I would like the subitems in the menu to be positioned directly under the main menu items instead of being slightly offset to the right. CSS ul#menu { float:left; width:100%; margin:0; padding:0; list-style-type:none; background-c ...

Incorporate a Background Image, which is linked to a website URL, by utilizing an external CSS file within

I am struggling to incorporate an external CSS file (specifically a background image from a URL) into my HTML document. I have successfully applied internal CSS, so the issue is not with the website link. Despite reviewing similar posts addressing comparab ...

What are some ways to replicate the experience of a lengthy document loading?

I am interested in conducting tests on JavaScript code that runs both before and after the document is fully loaded. Is there a way to purposely delay my document's loading process (for instance, by 10 seconds) so I can easily observe the effects occ ...

How can I make HTML elements smaller to properly fit within a fixed-size div container?

Could anyone provide guidance on how to display HTML elements such as h1, h2, p, block quotes, and lists inside a fixed width and height <div id="preview"></div>? I want the content to be shrunk down so it fits perfectly scaled and proportion ...

Displaying information in a visually appealing way with DataTable and Bootstrap 4.2.1, featuring customizable options

I am having trouble replicating the format shown on the example page of the DataTables website. <link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> <link href="assets/plugins/DataTables-1.10.18/dataTables.bootstrap4. ...

What is the most efficient way to coordinate setting svg attributes together?

I've created a page featuring two svg arrows, and here is the code portion: <div class="button prev-button" v-on:click="prevPage"> <svg class="button-icon" stroke-linecap="round" stroke-width="1" stroke="rgb(0,0,0)" stroke-opacity="0.2" ...