Changeset 7218


Ignore:
Timestamp:
10/21/18 17:47:48 (6 years ago)
Author:
Leif-Jöran
Message:

Update adv.css to make GQB look more modern

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SRUAggregator/trunk/src/main/resources/assets/adv.css

    r7146 r7218  
    2121        cursor: move;
    2222}
    23 
     23.corpusview-corpora {
     24    /*
     25    max-height: 70%;
     26    overflow-y: scroll;
     27    */
     28}
     29
     30#ADVtokenMenu {
     31    flex: 1;
     32}
     33
     34#ADVtokenMenu > * {
     35    float:right;
     36}
     37#unavailable-corpora-message{
     38    font-size: smaller;
     39}
    2440.query_token {
    2541        background-color: #e1e1e1;
     
    3753}
    3854
    39 #adv_query_input_group {
    40         overflow: auto;
    41         white-space: nowrap;
     55
     56#adv-tokens {
     57    display: flex;
     58    flex-wrap: wrap;
     59    align-items: baseline;
     60}
     61
     62#adv-tokens > div:first-child {
     63    display:contents; /* the react TransitionGroup creates a div that we dont really want. */
    4264}
    4365
     
    144166}
    145167
     168.adv-query-preview {
     169    margin-bottom: unset;
     170}
     171
    146172/* .query_token .token_footer button i { */
    147173/*      position: relative; */
     
    151177/* } */
    152178
    153 .query_token .token_footer button.insert_arg {
     179/*.query_token .token_footer button.insert_arg {
    154180    float: left;
    155181}
    156 
    157 .query_token .token_footer button {
    158 //      width: 20px;
    159 //      height: 20px;
    160         float: right;
     182*/
     183.query_token .token_footer > button {
     184    /*vertical-align: top;*/ /* flex layout overrides */
    161185}
    162186
    163187.query_token .token_footer {
    164188        font-size: .8em;
     189        display: flex;
     190    align-items: start;
    165191}
    166192
     
    184210/* } */
    185211
    186 .query_token select, input {
     212.or-containter select, .or-containter input {
    187213    border: 1px dashed #ccc;
    188214    outline: medium none;
     
    191217
    192218.query_token .repeat {
    193         float: right;
    194219        margin-right: 25px;
    195220}
     
    234259.token-enter {
    235260  opacity: 0.01;
    236   margin-left: -50%;
    237 }
    238 .token-enter.token-enter-active {
     261  /*margin-left: -50%;*/ /*margin makes dom reflow and makes laggy animation*/
     262  transform: translateX(-50%);
     263}
     264.token-enter-active {
    239265  opacity: 1;
    240   margin-left: 0;
     266  /*margin-left: 0;*/
     267  transform: translateX(0);
    241268  transition: all 250ms linear;
    242269}
    243 .token-leave {
    244   opacity: 1;
    245   margin-left: 0;
    246 }
    247 .token-leave.token-leave-active {
     270.token-exit {
     271}
     272.token-exit-active {
    248273  opacity: 0.01;
    249   margin-left: 50%;
     274  /*margin-left: 50%;*/
     275  /*transform: translateX(50%);*/
    250276  transition: all 250ms linear;
    251277}
Note: See TracChangeset for help on using the changeset viewer.