Changeset 55e98e4 in OpenWorkouts-current


Ignore:
Timestamp:
Jan 16, 2019, 8:14:17 PM (5 years ago)
Author:
Segundo Fdez <segun.2@…>
Branches:
current, feature/docs, master
Children:
5cbc4a0
Parents:
816820d
Message:

Added login and sign up pages design. Organize styles and added navigation with ui common styles

Location:
ow
Files:
3 added
5 edited

Legend:

Unmodified
Added
Removed
  • ow/static/css/main.css

    r816820d r55e98e4  
    88@import "variables.css";
    99
     10/* UI */
     11@import "ui/form.css";
     12@import "ui/buttons.css";
     13
    1014/* Common styles */
    1115@import "common.css";
    1216
     17/* Modules */
     18@import "modules/header.css";
     19
    1320/* Pages */
    1421@import "pages/login.css";
  • ow/static/css/pages/login.css

    r816820d r55e98e4  
    1 
    2 /* logo
    3 ---------------------------------------------------------------------- */
    4 .logo {
    5     font-size: 24px;
    6     line-height: 1em;
    7     font-weight: 800;
    8     text-transform: uppercase;
    9     margin: 0;
    10     span{
    11         transition: all 250ms ease-in-out;
    12     }
    13     &:hover{
    14         span{
    15             color: var(--color-app);
    16         }
    17     }
    18 }
    19 .logo-open {
    20     display: block;
    21     color: var(--color-app);
    22 }
    23 .logo-work,
    24 .logo-outs {
    25     color: var(--color-app-light);
    26 }
    27 
    28 
    29 
     1/* ==========================================================================
     2   Login page
     3   ========================================================================== */
    304
    315.login-content {
     
    359    justify-content: center;
    3610    align-items: center;
    37     height: 85vh;
     11    min-height: calc(100vh - 98px);
    3812    padding: 1em 0;
    39     /*
    40     background-blend-mode: multiply;
    41     background-color: var(--color-app);
    42     */
    4313}
    4414
    45     /* Provisional */
    46     .message {
    47         padding: .5em;
    48         margin: 0;
    49         text-align: center;
    50         font-size: 13;
    51         &.message-error{
    52             color: white;
    53             background-color: red;
    54         }
    55     }
    56     form{
    57         width: 100%;
    58         max-width: 350px;
    59     }
     15.login-content form {
     16    max-width: 380px;
     17    background-color: rgba(0,0,0,0.8);
     18    border-radius: 6px;
     19    padding: 2em  1.5em;
     20}
    6021
    61     legend {
    62         display: none;
    63     }
    6422
    65     fieldset {
    66         border: none;
    67         background-color: var(--color-main-medium);
    68         border-radius: 6px;
    69         padding: 2em;
    70         >div {
    71             margin-bottom: 1.5em;
    72         }
    73     }
    74     input {
    75         width: 100%;
    76         padding: .5em .75em;
    77         border: 1px solid transparent;
    78         border-radius: 2px;
    79         &:focus{
    80             border-color: var(--color-app);
    81         }
    82     }
     23.login-content label {
     24    color: white;
     25}
    8326
    84     label {
    85         display: block;
    86         font-size: 14;
    87         color: white;
    88         margin-bottom: .25em;
    89     }
    90     .button {
    91         transition: all 500ms ease-in-out;
    92         background-color: var(--color-app);
    93         color: white;
    94         margin-bottom: 1em;
    95         text-transform: uppercase;
    96         &:hover {
    97             background-color: darken(var(--color-app), 10%);
    98         }
    99     }
     27.login-content a {
     28    color: var(--color-main-light);
     29    font-size: 13px;
     30    text-decoration: none;
     31    margin-right: .75em;
     32}
     33
     34.login-content a:hover {
     35    color: white;
     36}
     37
     38
     39
     40
     41
     42
     43
     44
     45/* Provisional */
     46.message {
     47    padding: .5em;
     48    margin: 0;
     49    border-radius: 4px;
     50    text-align: center;
     51    font-size: 13px;
     52}
     53
     54.message.message-error{
     55    background-color: var(--color-app-dark);
     56    color: white;
     57    margin-bottom: .5em;
     58}
  • ow/static/css/variables.css

    r816820d r55e98e4  
    44    --color-main: #151515;
    55    --color-main-dark: #454545;
    6     --color-main-medium: #666;
     6    --color-main-medium: #999;
    77    --color-main-light: #ccc;
    88    --color-main-xtralight: #f5f5f5;
    99
     10    --color-app-dark: #e81029;
    1011    --color-app: #EE4056;
    1112    --color-app-medium: #ee0000;
  • ow/templates/login.pt

    r816820d r55e98e4  
    3434                     type="password" i18n:attributes="placeholder">
    3535            </div>
    36             <input class="button" type="submit" name="submit" value="Login">
     36            <div>
     37              <input class="button button-action" type="submit" name="submit" value="Login">
     38            </div>
    3739            <a class="login-remember" href="#" i18n:translate="">
    38               Forgot your password?</a> |
     40              Forgot your password?</a>
    3941            <a class="join-now" href="" i18n:translate=""
    4042               tal:attributes="href request.resource_url(context, 'signup')">
  • ow/templates/signup.pt

    r816820d r55e98e4  
    1212      <!-- Login -->
    1313
    14       <div class="signup-content">
     14      <div class="login-content">
    1515
    1616        <form method="post" name="signup" action="">
     
    5757          </fieldset>
    5858
    59           <input class="button" type="submit" name="submit" value="Sign up!">
     59          <input class="button button-action" type="submit" name="submit" value="Sign up!">
    6060
    6161        </form>
Note: See TracChangeset for help on using the changeset viewer.