JSFiddle - React, Tailwind, and code Playground

by Madalina Taina

HTML

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<div class="container-fluid">
        
            
        <div class="row">
            <h4 class="title">Wikipedia Viewer</h4>
            <h4 class="port">by l-emi</h4>
        </div>
        
        <div id="aligner">
        <div class="row">
          
                <div id="centbox">
                    <div class="row">
                        <button type="button" class="butoni" id="randy">Random article</button>
                    <input type="text" name="search" placeholder="Or search!" class="butoni" id="searchy">
                    </div>
                </div>
            
           
        </div>
        
             <div id="resultati">
                <ul id="output">
                        
                </ul>
            </div>
        </div>
        
    </div>

CSS

@import url(https://fonts.googleapis.com/css?family=Allerta);

body {
    background-color: #F5F5F5;
    font-family: 'Allerta', sans-serif; 
}

a {
    text-decoration: none !important;
    color: inherit;
}

a:hover {
     color: inherit; 
     text-decoration:none; 
}


.title {
    position: fixed;
    left: 0;
    margin: 5px;
    color: #584559;
}

.port {
    position: fixed;
    right: 0;
    margin: 5px;
    color: #584559 !important;
    text-decoration: none !important;
}

.port:hover {
    cursor: pointer;
    cursor: hand;
}

#centbox {
    overflow: auto;
    position: fixed;
    display: inline-block;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: table;
    text-align: center;
}

.butoni {
    height: 3em;
    width: 12em;
}

#randy {
    background-color: #584559;
    color: #F5F5F5;
    border: none;
    padding: 0px 15px 0px 15px;
}

#randy:active {
    background-color: #473747;
    color: #F5F5F5 !important;
}


#searchy {
    text-align: center;
    border: solid;
    border-color: #584559 !important;
    border-width: 0.2em;
    padding: 10px;
}


#resultati {
    background-color: #e3e1df;
    padding: 5px;
    margin-top: 3.5em;
    width: 50%;
    position: fixed;
    display: inline-block;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#aligner {
  clear: both;
  float:left;
}

@media screen and (max-width: 680px) {
    #resultati {
        width: 75%;
    }
}

@media screen and (max-width: 500px) {
    #resultati {
        width: 90%;
    }
}

@media screen and (max-width: 310px) {
    #resultati {
        margin-top: 4.5em;
    }
}