Преглед изворни кода

Add `add-group` button, style input fields.

Add:
    templates/index.html, static/sass/index.sass
        -Add element tree for a sample input field.
        -Style input fields such that labels are aligned.
        -Add and style the `add-group` button.
tags/v1.0^2
Severyn Kozak пре 10 година
родитељ
комит
53bc6cde3f
3 измењених фајлова са 85 додато и 18 уклоњено
  1. +3
    -1
      static/sass/_variables.sass
  2. +46
    -3
      static/sass/index.sass
  3. +36
    -14
      templates/index.html

+ 3
- 1
static/sass/_variables.sass Прегледај датотеку

@@ -6,5 +6,7 @@ $baseColor1: #A31F34
$baseColor2: #8A8B8C
$baseColor3: #C2C0BF

$lightBlue: #4D90FE
$lightGray: #F1F1F1

$lightBlue: #67A0FD
$blue: #3177EB

+ 46
- 3
static/sass/index.sass Прегледај датотеку

@@ -70,6 +70,8 @@ div#search-field
font-style: italic

form#search-bar
min-width: 510px

input[type="text"], button
@extend .t3
@include vendor(box-sizing, border-box)
@@ -113,7 +115,8 @@ div#search-field
background-color: white
border: 1px solid $baseColor3
padding-top: 0px
overflow: auto
overflow-x: auto
height: 400px

>div
@include vendor(box-sizing, border-box)
@@ -145,7 +148,7 @@ div#search-field
div
@extend .t3

background-color: #F1F1F1
background-color: $lightGray
border: none
font-size: 96%
padding: 3%
@@ -156,6 +159,7 @@ div#search-field

background-color: $baseColor2
color: white
cursor: pointer
width: 90%

input[type="checkbox"]
@@ -168,10 +172,49 @@ div#search-field
color: white
width: 90%

button#add-group
background-color: $lightBlue
border: none
color: white
font-weight: bold
height: 40px
margin-bottom: 10%
width: 40px

&:hover
@extend .t3

background-color: $blue
cursor: pointer

#search-groups
background-color: blue
margin-top: 2%
max-height: 93%
overflow-y: scroll
width: 75%

.search-group
background-color: $lightGray
padding: 1%
margin-bottom: 1%

>div
margin-bottom: 0.7%

div
display: inline-block
width: 20%

input[type=text]
padding: 2px
width: 60%

input[type=checkbox]
margin-left: 2%

span
font-size: 80%

&.partly-visible
margin-top: 0%
padding-bottom: 3%


+ 36
- 14
templates/index.html Прегледај датотеку

@@ -73,23 +73,45 @@
</li>
</ul>
<button id="add-group">
+
<!-- <div> -->
+
<!-- </div> -->
</button>
<div>
</div>
</div>
<div id="search-groups">
<div class="search-group">Hello, world.</div>
<div class="search-group">Hello, world.</div>
<div class="search-group">Hello, world.</div>
<div class="search-group">Hello, world.</div>
<div class="search-group">Hello, world.</div>
<div class="search-group">Hello, world.</div>
<div class="search-group">Hello, world.</div>
<div class="search-group">Hello, world.</div>
<div class="search-group">Hello, world.</div>
<div class="search-group">Hello, world.</div>
<div class="search-group">Hello, world.</div>
<div class="search-group">
<div>
<div>Authors</div>
<input type="text">
<input type="checkbox" name="regex"><span>Regex?</span>
</div>
<div>
<div>Language</div>
<input type="text">
<input type="checkbox" name="regex"><span>Regex?</span>
</div>
</div>
<div class="search-group">Hello, world. 2</div>
<div class="search-group">Hello, world. 3</div>
<div class="search-group">Hello, world. 4</div>
<div class="search-group">Hello, world. 5</div>
<div class="search-group">Hello, world. 6</div>
<div class="search-group">Hello, world. 7</div>
<div class="search-group">Hello, world. 8</div>
<div class="search-group">Hello, world. 9</div>
<div class="search-group">Hello, world. 10</div>
<div class="search-group">Hello, world. 11</div>
<div class="search-group">Hello, world. 12</div>
<div class="search-group">Hello, world. 13</div>
<div class="search-group">Hello, world. 14</div>
<div class="search-group">Hello, world. 15</div>
<div class="search-group">Hello, world. 16</div>
<div class="search-group">Hello, world. 17</div>
<div class="search-group">Hello, world. 18</div>
<div class="search-group">Hello, world. 19</div>
<div class="search-group">Hello, world. 20</div>
<div class="search-group">Hello, world. 21</div>
<div class="search-group">Hello, world. 22</div>
</div>
</div>
</form>


Loading…
Откажи
Сачувај