Page MenuHomePhabricator

No OneTemporary

diff --git a/ui/form/_controls.scss b/ui/form/_controls.scss
index 4d07707..263da20 100644
--- a/ui/form/_controls.scss
+++ b/ui/form/_controls.scss
@@ -1,192 +1,198 @@
/*
The MIT License
Copyright 2019 César de la Cal Bretschneider <cesar@magic3w.com>.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
/*
Created on : Jun 17, 2019, 11:59:07 AM
Author : César de la Cal Bretschneider <cesar@magic3w.com>
*/
.frm-ctrl {
display: block;
width: 100%;
&.right {
text-align: right;
}
}
.frm-group {
margin-bottom: 1rem;
}
.frm-inline {
display: flex;
flex-flow: row wrap;
.frm-ctrl {
display: inline-block;
width: auto;
}
}
.frm-lbl {
padding: .75rem .4rem;
color: #444;
font-size: .9rem;
}
input[type="text"].frm-ctrl,
+input[type="url"].frm-ctrl,
+input[type="tel"].frm-ctrl,
+input[type="search"].frm-ctrl,
+input[type="number"].frm-ctrl,
+input[type="password"].frm-ctrl,
+input[type="email"].frm-ctrl,
textarea.frm-ctrl {
padding: .75rem .5rem;
}
/*
* Checkbox specific styling
*/
input[type="checkbox"].frm-ctrl {
display: none;
}
span.frm-ctrl-chk {
display: inline-block;
width: 1.3rem;
height: 1.3rem;
border-radius: .25rem;
border: solid 1px #CCC;
background-color: #DDD;
position: relative;
margin-right: .2rem;
vertical-align: -.4rem;
transition: background-color .3s ease;
&:before {
content: '';
position: absolute;
top: 0;
left: 0;
height: 1.3rem;
width: 1.3rem;
background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%228%22%20height%3D%228%22%20viewBox%3D%220%200%208%208%22%3E%3Cpath%20fill%3D%22%23FFF%22%20d%3D%22M6.41%200l-.69.72-2.78%202.78-.81-.78-.72-.72-1.41%201.41.72.72%201.5%201.5.69.72.72-.72%203.5-3.5.72-.72-1.44-1.41z%22%2F%3E%3C%2Fsvg%3E%0A');
background-position: center center;
background-repeat: no-repeat;
background-size: 0 0;
border-radius: 50%;
transition: background-size .15s ease;
}
}
span.frm-ctrl-chk.toggle {
display: inline-block;
width: 2rem;
height: 1.3rem;
border-radius: .65rem;
background-color: #CCC;
position: relative;
margin-right: .2rem;
vertical-align: -.4rem;
transition: background-color .3s ease;
border: none;
&:before {
content: '';
position: absolute;
top: .15rem;
left: .15rem;
height: 1rem;
width: 1rem;
background-color: #FFF;
border-radius: 50%;
transition: left .3s ease;
}
}
input[type="checkbox"].frm-ctrl:checked + span.frm-ctrl-chk{
background-color: #56a1d6;
border: solid 1px #56a1d6;
&:before {
background-size: .8rem .8rem;
}
&.toggle {
border: none;
&:before {
left: .9rem;
}
}
}
/*
* Radio specific styling
*/
input[type="radio"].frm-ctrl {
display: none;
}
span.frm-ctrl-rad {
display: inline-block;
border: solid .05rem #777;
width: 1.3rem;
height: 1.3rem;
border-radius: .65rem;
background-color: #DDD;
position: relative;
margin-right: .2rem;
vertical-align: -.4rem;
transition: background-color .3s ease;
&:before {
position: absolute;
background: #FFF;
top: .65rem;
left: .65rem;
height: .0rem;
width: .0rem;
content: '';
border-radius: 50%;
transition: left .3s ease, top .3s ease, width .3s ease, height .3s ease, opacity .3s ease;
}
}
input[type="radio"].frm-ctrl:checked + span.frm-ctrl-rad{
background-color: #56a1d6;
&:before {
top: .3rem;
left: .3rem;
height: .6rem;
width: .6rem;
background-color: #FFF;
color: #FFF;
line-height: .9rem;
font-size: .9rem;
text-align: center;
font-weight: bold;
}
}
diff --git a/ui/form/_reset.scss b/ui/form/_reset.scss
index 8979af0..151bba2 100644
--- a/ui/form/_reset.scss
+++ b/ui/form/_reset.scss
@@ -1,84 +1,90 @@
/*
The MIT License
Copyright 2019 César de la Cal Bretschneider <cesar@magic3w.com>.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
/*
Created on : Jun 17, 2019, 11:56:04 AM
Author : César de la Cal Bretschneider <cesar@magic3w.com>
*/
label {
display: inline-block;
}
input, textarea {
line-height: inherit;
margin: 0;
}
textarea {
resize: vertical;
}
input[type="text"],
+input[type="url"],
+input[type="tel"],
+input[type="search"],
+input[type="number"],
+input[type="password"],
+input[type="email"],
textarea {
border-radius: 3px;
border: solid 1px #CCC;
box-shadow: 0 0 0 transparent;
transition: box-shadow .15s ease;
&:focus {
border-color: #279af1;
box-shadow: 0px 0px 2px #279af1;
outline: none;
}
}
select {
border-radius: 3px;
border: solid 1px #CCC;
box-shadow: 0 0 0 transparent;
transition: box-shadow .15s ease;
background: #FFF;
&:focus {
border-color: #279af1;
box-shadow: 0px 0px 2px #279af1;
outline: none;
}
}
fieldset {
border: none;
padding: 0;
margin: 0;
}
legend {
font-size: 1.3rem;
margin-bottom: .3rem;
}
input[type="submit"]:not(.disabled), button:not(.disabled) {
cursor: pointer;
}
\ No newline at end of file

File Metadata

Mime Type
text/x-diff
Expires
Thu, Apr 15, 3:49 PM (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4447
Default Alt Text
(6 KB)

Event Timeline