булевские переменные в направляющих с sqlite

Вместо того, чтобы поставить width to 0, измените на display:none;, как показано ниже. Это делает трюк!

    #search-box{
    flex-grow:0.7;
    border-radius:50px;
    height:50px;
    margin:25px 60px 0px 50px;
    box-sizing: border-box;
    width:0px;
    transition:all 0.8s ease;
    background-color:black;
    }
    #search-txt{
        position:relative;
        top:13px;
        left:15px;
        display:none;
        outline:none;
        background:white;
        border:none;
        }
    #search-btn{
        float:right;
        position:relative;
        bottom:8px;
        left:5px;
        height:60px;
        width:65px;
        background: green;
        border-radius: 50%;
        outline:none;
        cursor:pointer;

    }
    #search-box.active{
        width:200px;
        border:1px solid black;
    }
<section>
    <h1> <span> @ </span>USMAN'S WEBSITE </h1>
    <ul>
    <a href="#"> <li> <i class="fas fa-home"></i><br>HOME </li> </a>
    <a href="#"> <li> <i class="far fa-newspaper"></i><br> ABOUT  </li> </a>
    <a href="#"> <li> <i class="fas fa-briefcase"></i> <br>  WORK </li></a>
    <a href="#"> <li> <i class="fas fa-user-alt"></i> <br>  TEAM </li></a>
    <a href="#"> <li> <i class="fas fa-phone"></i><br>CONTACT  </li></a>
    </ul>
    <div id="search-box">
    <input id="search-txt" type="text" placeholder="Search.."  >
    <button id="search-btn" type="submit"><i class="fas fa-search"></i></button>
    </div>

    </section>

9
задан John Topley 6 May 2009 в 07:58
поделиться

2 ответа

Use this instead:

t.column :admin, :boolean, :default => false, :null => false

Read why here.

13
ответ дан 4 December 2019 в 14:31
поделиться

The problem may be with the database migration. I don't think that :bool is the right data type name to use. Try :boolean instead, e.g.

t.column :admin, :boolean, :default => false, :null => false
1
ответ дан 4 December 2019 в 14:31
поделиться
Другие вопросы по тегам:

Похожие вопросы: