Changeset c90d245 in OpenWorkouts-current for ow


Ignore:
Timestamp:
Dec 17, 2018, 7:14:05 PM (5 years ago)
Author:
borja <borja@…>
Branches:
current, feature/docs, master
Children:
f7abb54
Parents:
722ae18
Message:

Set a common css class name that can be used in all forms to set default styling

for any form (ow-forms).

Updated edit-profile.pt so it uses this class for the edit profile form.

Location:
ow
Files:
2 edited

Legend:

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

    r722ae18 rc90d245  
    106106/* Edit profile form */
    107107
    108 .edit-profile form {
     108.ow-forms form {
    109109    width:100%;
    110110    max-width:40%
    111111}
    112112
    113 .edit-profile ul.error {
     113.ow-forms ul.error {
    114114    margin: 0px;
    115115    margin-bottom: 5px;
     
    118118}
    119119
    120 .edit-profile ul.error li {
     120.ow-forms ul.error li {
    121121    border: 1px solid red;
    122122    width:100%;
     
    126126}
    127127
    128 .edit-profile legend {
     128.ow-forms legend {
    129129    display:none
    130130}
    131131
    132 .edit-profile fieldset {
     132.ow-forms fieldset {
    133133    border:none;
    134134    border-bottom: 2px solid #e1e1e1;
    135135}
    136136
    137 .edit-profile fieldset>div {
     137.ow-forms fieldset>div {
    138138    margin-bottom:1.5em
    139139}
    140140
    141 .edit-profile input {
     141.ow-forms input {
    142142    width:100%;
    143143    padding:.5em .75em;
     
    146146}
    147147
    148 .edit-profile input:focus {
     148.ow-forms input:focus {
    149149    border-color: #333333;
    150150}
    151151
    152 .edit-profile input.button {
     152.ow-forms input.button {
    153153    width: 20%;
    154154}
    155155
    156 .edit-profile label {
     156.ow-forms label {
    157157    display:block;
    158158    font-size:14px;
  • ow/templates/edit_profile.pt

    r722ae18 rc90d245  
    2323  <metal:content metal:fill-slot="content">
    2424      <h2 i18n:translate="">Edit profile</h2>
    25     <div class="edit-profile">
     25    <div class="edit-profile ow-forms">
    2626      ${form.begin(multipart=True)}
    2727      ${form.csrf_token()}
Note: See TracChangeset for help on using the changeset viewer.