Bootstrap Group Select Using Flat UI

Bootstrap Group Select Using Flat UI

by Stefan Zamfira

HTML

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/flatly/bootstrap.min.css">
<body>
    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
            </div>
            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav">
                    <li>Home</li>
                    <li>About</li>
                </ul>  
            </div>
        </div>
    </div>
    <div class="container body-content">
        <div class="row">
          <div class="col-md-4 col-xs-8 col-lg-4" id="accountPanel">
            <div id="userMeta">
              <div class="avatar">
                <img src="http://lorempixel.com/200/200/people/" alt=""/>
                <span class="username">dumitrudiana</span>
              </div>
              <a href="#" class="updateAvatar">
                <i class="glyphicon glyphicon-camera"></i>
              </a>
            </div>
            
            <ul id="userData">
              <li>
                <label>Grupa</label>
                341
              </li>
              <li>
                <label>Semigrupa</label>
                <select>
                  <option value="1">Semigrupa 1</option>
                  <option value="2">Semigrupa 2</option>
                </select>
              </li>
              <li>
                <a href="btn btn-primary btn-block">
                  <i class="glyphicon glyphicon-calendar"></i>
                  Sync Calendar
                </a>
              </li>
            </ul>
            
          </div>
        </div>
        <footer class="navbar-fixed-bottom">
       ...

CSS

body {
    padding-top: 50px;
    padding-bottom: 20px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

.inputfile {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

    .inputfile + label {
        font-size: 1.25em;
        font-weight: 700;
        color: rgb(44, 62, 80);
        background-color: #fff;
        display: inline-block;
    }

        .inputfile:focus + label,
        .inputfile + label:hover {
            background-color: #fff;
        }

    .inputfile + label {
        cursor: pointer; /* "hand" cursor */
    }

    /*.inputfile:focus + label {
        outline: 1px dotted #000;
        outline: -webkit-focus-ring-color auto 5px;
    }*/

#spinner {
    display: none;
}

.isBlocked #spinner {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: rgba(0,0,0,0.5);
}


#floatingCirclesG {
    position: relative;
    width: 125px;
    height: 125px;
    margin: auto;
    transform: scale(0.6);
    -o-transform: scale(0.6);
    -ms-transform: scale(0.6);
    -webkit-transform: scale(0.6);
    -moz-transform: scale(0.6);
}

.f_circleG {
    position: absolute;
    background-color: rgba(255,255,255,0.48);
    height: 22px;
    width: 22px;
    border-radius: 12px;
    -o-border-radius: 12px;
    -ms-border-radius: 12px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    animation-name: f_fadeG;
    -o-animation-name: f_fadeG;
    -ms-animation-name: f_fadeG;
   ...