Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial commit Accessibility #174

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 81 additions & 39 deletions css/jquery-comments.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,16 @@ http://viima.github.io/jquery-comments/*/
text-shadow: none;
}

.jquery-comments input,
.jquery-comments select,
.jquery-comments button,
.jquery-comments textarea {
font-family: 'Arial';
font-size: 1em;
}

.jquery-comments a[href]:not(.tag) {
color: #2793e6;
color: #0a6ab2;
text-decoration: none;
}

Expand Down Expand Up @@ -90,7 +98,7 @@ http://viima.github.io/jquery-comments/*/

.jquery-comments .tag:not(.deletable):hover {
background-color: #d8edf8;
border-color: #2793e6;
border-color: #0a6ab2;
}

.jquery-comments [contentEditable=true]:empty:not(:focus):before{
Expand Down Expand Up @@ -232,6 +240,8 @@ http://viima.github.io/jquery-comments/*/
}

.jquery-comments .textarea-wrapper .close {
position: absolute;
top: 0;
width: 1em;
height: 1em;
}
Expand Down Expand Up @@ -259,7 +269,8 @@ http://viima.github.io/jquery-comments/*/
padding-top: .3em;
}

.jquery-comments .textarea-wrapper .control-row > span {
.jquery-comments .textarea-wrapper .control-row > span,
.jquery-comments .textarea-wrapper .control-row > button {
float: right;
line-height: 1.6em;
margin-top: .4em;
Expand All @@ -270,47 +281,53 @@ http://viima.github.io/jquery-comments/*/
opacity: .5;
}

.jquery-comments .textarea-wrapper .control-row > span:not(:first-child) {
.jquery-comments .textarea-wrapper .control-row > *:not(:first-child) {
margin-right: .5em;
}

.jquery-comments .textarea-wrapper .control-row > span.enabled {
.jquery-comments .textarea-wrapper .control-row > .enabled {
opacity: 1;
cursor: pointer;
}

.jquery-comments .textarea-wrapper .control-row > span:not(.enabled) {
.jquery-comments .textarea-wrapper .control-row > span:not(.enabled),
.jquery-comments .textarea-wrapper .control-row > button:not(.enabled) {
pointer-events: none;
}

.jquery-comments .textarea-wrapper .control-row > span.enabled:hover {
.jquery-comments .textarea-wrapper .control-row > .enabled:hover {
opacity: .9;
}

.jquery-comments .textarea-wrapper .control-row > span.upload {
.jquery-comments .textarea-wrapper .control-row > .upload {
position: relative;
overflow: hidden;
background-color: #999;
background-color: #575757;
}

.jquery-comments .textarea-wrapper .control-row > .upload.focus {
outline: 2px dotted #0a6ab2;
}

.jquery-comments ul.navigation {
.jquery-comments .navigation {
clear: both;

color: #999;
color: #575757;
border-bottom: 2px solid #CCC;
line-height: 2em;
font-size: 1em;
margin-bottom: 0.5em;
}

.jquery-comments ul.navigation .navigation-wrapper {
.jquery-comments .navigation .navigation-wrapper {
position: relative;
}

.jquery-comments ul.navigation li {
.jquery-comments .navigation button {
display: inline-block;
position: relative;
padding: 0 1em;
line-height: 2em;
cursor: pointer;
text-align: center;

Expand All @@ -320,12 +337,12 @@ http://viima.github.io/jquery-comments/*/
user-select: none;
}

.jquery-comments ul.navigation li.active,
.jquery-comments ul.navigation li:hover {
.jquery-comments .navigation button.active,
.jquery-comments .navigation button:hover {
color: #000;
}

.jquery-comments ul.navigation li.active:after {
.jquery-comments .navigation button.active:after {
content: " ";
display: block;
right: 0;
Expand All @@ -336,39 +353,39 @@ http://viima.github.io/jquery-comments/*/
left: 0;
}

.jquery-comments ul.navigation li[data-sort-key="attachments"] {
.jquery-comments .navigation button[data-sort-key="attachments"] {
float: right;
}

.jquery-comments ul.navigation li[data-sort-key="attachments"] i {
.jquery-comments .navigation button[data-sort-key="attachments"] i {
margin-right: 0.25em;
}

.jquery-comments ul.navigation .navigation-wrapper.responsive {
.jquery-comments .navigation .navigation-wrapper.responsive {
display: none;
}

@media screen and (max-width: 600px) {
.jquery-comments ul.navigation .navigation-wrapper {
.jquery-comments .navigation .navigation-wrapper {
display: none;
}
.jquery-comments ul.navigation .navigation-wrapper.responsive {
.jquery-comments .navigation .navigation-wrapper.responsive {
display: inline;
}
}

.jquery-comments.responsive ul.navigation .navigation-wrapper {
.jquery-comments.responsive .navigation .navigation-wrapper {
display: none;
}
.jquery-comments.responsive ul.navigation .navigation-wrapper.responsive {
.jquery-comments.responsive .navigation .navigation-wrapper.responsive {
display: inline;
}

.jquery-comments ul.navigation .navigation-wrapper.responsive li.title {
.jquery-comments .navigation .navigation-wrapper.responsive li.title {
padding: 0 1.5em;
}

.jquery-comments ul.navigation .navigation-wrapper.responsive li.title header:after {
.jquery-comments .navigation .navigation-wrapper.responsive li.title header:after {
display: inline-block;
content: "";
border-left: 0.3em solid rgba(0, 0, 0, 0) !important;
Expand All @@ -379,8 +396,8 @@ http://viima.github.io/jquery-comments/*/
top: -0.1em;
}

.jquery-comments ul.navigation .navigation-wrapper.responsive li.title.active header:after,
.jquery-comments ul.navigation .navigation-wrapper.responsive li.title:hover header:after {
.jquery-comments .navigation .navigation-wrapper.responsive li.title.active header:after,
.jquery-comments .navigation .navigation-wrapper.responsive li.title:hover header:after {
border-top-color: #000;
}

Expand Down Expand Up @@ -441,7 +458,7 @@ http://viima.github.io/jquery-comments/*/
}

.jquery-comments ul.dropdown li .email {
color: #999;
color: #575757;
font-size: 0.95em;
margin-top: 0.1em;
}
Expand Down Expand Up @@ -524,11 +541,14 @@ http://viima.github.io/jquery-comments/*/
}

.jquery-comments ul.main li.comment .comment-header .name {
margin: 0 0.5rem 0 0;
font-size: 1em;
display: inline-block;
font-weight: bold;
}

.jquery-comments ul.main li.comment .comment-header .reply-to {
color: #999;
color: #575757;
font-size: .8em;
font-weight: normal;
vertical-align: top;
Expand All @@ -539,7 +559,7 @@ http://viima.github.io/jquery-comments/*/
}

.jquery-comments ul.main li.comment .comment-header .new {
background: #2793e6;
background: #0a6ab2;
font-size: 0.8em;
padding: 0.2em 0.6em;
color: #fff;
Expand Down Expand Up @@ -569,7 +589,7 @@ http://viima.github.io/jquery-comments/*/
margin: 0;
font-size: .9em;
font-style: italic;
color: #999;
color: #575757;
}

.jquery-comments ul.main li.comment .wrapper .content time.edited:before {
Expand Down Expand Up @@ -604,7 +624,7 @@ http://viima.github.io/jquery-comments/*/
}

.jquery-comments ul.main li.comment .actions > * {
color: #999;
color: #575757;
font-weight: bold;
}

Expand Down Expand Up @@ -684,20 +704,21 @@ http://viima.github.io/jquery-comments/*/
font-size: 2.4em;
}

.jquery-comments ul.main li.comment .child-comments li.toggle-all {
padding-top: 0;
.jquery-comments ul.main li.comment .toggle-all {
margin-left: calc(3.6em + .5em);
padding: .5em;
}

.jquery-comments ul.main li.comment .child-comments li.toggle-all span:first-child {
.jquery-comments ul.main li.comment .toggle-all span:first-child {
vertical-align: middle;
}

.jquery-comments ul.main li.comment .child-comments li.toggle-all span:first-child:hover {
.jquery-comments ul.main li.comment .toggle-all span:first-child:hover {
cursor: pointer;
text-decoration: underline;
}

.jquery-comments ul.main li.comment .child-comments li.toggle-all .caret {
.jquery-comments ul.main li.comment .toggle-all .caret {
display: inline-block;
vertical-align: middle;
width: 0;
Expand All @@ -712,7 +733,7 @@ http://viima.github.io/jquery-comments/*/
border-right-color: rgba(0, 0, 0, 0);
}

.jquery-comments ul.main li.comment .child-comments li.toggle-all .caret.up {
.jquery-comments ul.main li.comment .toggle-all .caret.up {
border-top-color: rgba(0, 0, 0, 0);
border-bottom-color: inherit;
margin-top: -.2em;
Expand Down Expand Up @@ -770,7 +791,7 @@ http://viima.github.io/jquery-comments/*/
}

.jquery-comments .droppable-overlay .droppable-container .droppable.drag-over {
color: #999;
color: #575757;
}

.jquery-comments .droppable-overlay .droppable-container .droppable i {
Expand All @@ -784,3 +805,24 @@ http://viima.github.io/jquery-comments/*/
.jquery-comments.read-only .actions {
display: none;
}

/* Accessibility */
input:focus, input:active,
textarea:focus, textarea:active
select:focus, select:active,
button:focus, button:active,
a:focus, a:active {
outline: 2px dotted #0a6ab2;
}

.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
Loading