Skip to content

Commit 38a2cbc

Browse files
committed
feat: contextual scope section layout
Has a character limiter
1 parent cce36b1 commit 38a2cbc

2 files changed

Lines changed: 48 additions & 1 deletion

File tree

assets/style/index.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,25 @@ main {
7777
width: 800px;
7878
max-width: calc(100% - 10px);
7979
}
80+
main > section > form > div > label > small {
81+
float: right;
82+
font-size: 14px;
83+
font-weight: bold;
84+
}
85+
main > section > form > div > label > small.good {
86+
color: limegreen;
87+
}
88+
main > section > form > div > label > small.caution {
89+
color: gold;
90+
}
91+
main > section > form > div > label > small.danger {
92+
color: tomato;
93+
}
94+
main > section > form > div > label > small > sub {
95+
padding-left: 3px;
96+
font-size: 8px;
97+
font-weight: normal;
98+
}
8099
main > section > form > div > label input[type="text"] {
81100
margin: 5px 0;
82101
padding: 7px 14px;

index.html

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,35 @@
8686
</form>
8787

8888
</section>
89-
<section id="scope"></section>
89+
<section id="scope">
90+
91+
<details>
92+
<summary>Scope</summary>
93+
<ul>
94+
<li>It must be something that intuitively specifies the location of the change</li>
95+
<li>It should aim to provide additional contextual information</li>
96+
</ul>
97+
</details>
98+
99+
<form>
100+
101+
<div>
102+
103+
<label for="scopeInput">
104+
<input type="text" name="scope" id="scopeInput" maxlength="50" placeholder="Add an optional noun that describes the contextual scope of the change"><br>
105+
<small>0 / 50</small>
106+
</label>
107+
108+
</div>
109+
110+
<nav>
111+
<button type="reset" class="previous"><< Previous</button>
112+
<button type="submit" class="next">Next >></button>
113+
</nav>
114+
115+
</form>
116+
117+
</section>
90118
<section id="summary"></section>
91119
<section id="body"></section>
92120
<section id="footer"></section>

0 commit comments

Comments
 (0)