Skip to content

Commit fc10ffe

Browse files
committed
Merge pull request #64 from primer/nuke_github_css
Remove github/github-specific CSS
2 parents 4893fa9 + 972477a commit fc10ffe

File tree

1 file changed

+0
-263
lines changed

1 file changed

+0
-263
lines changed

scss/_forms.scss

Lines changed: 0 additions & 263 deletions
Original file line numberDiff line numberDiff line change
@@ -378,236 +378,6 @@ dl.form {
378378
select { margin-top: 5px; }
379379
}
380380

381-
// IE 9
382-
html.no-dnd-uploads {
383-
.drag-and-drop {
384-
min-height: 32px;
385-
386-
.default {
387-
display: none;
388-
}
389-
}
390-
391-
.upload-enabled textarea {
392-
border-bottom: 1px solid #ddd;
393-
}
394-
}
395-
396-
.drag-and-drop {
397-
padding: 7px 10px;
398-
margin: 0;
399-
font-size: 13px;
400-
line-height: 16px;
401-
color: #aaa;
402-
background-color: #fafafa;
403-
border: 1px solid #ccc;
404-
border-top: 0;
405-
border-bottom-right-radius: 3px;
406-
border-bottom-left-radius: 3px;
407-
408-
.default,
409-
.loading,
410-
.error {
411-
display: none;
412-
}
413-
414-
.error {
415-
color: $brand-red;
416-
}
417-
418-
// Spinner
419-
img {
420-
vertical-align: top;
421-
}
422-
}
423-
424-
.is-default .drag-and-drop .default {
425-
display: inline-block;
426-
}
427-
428-
.is-uploading .drag-and-drop .loading {
429-
display: inline-block;
430-
}
431-
432-
.is-bad-file .drag-and-drop .bad-file {
433-
display: inline-block;
434-
}
435-
436-
.is-too-big .drag-and-drop .too-big {
437-
display: inline-block;
438-
}
439-
440-
.is-empty .drag-and-drop .empty {
441-
display: inline-block;
442-
}
443-
444-
.is-bad-browser .drag-and-drop .bad-browser {
445-
display: inline-block;
446-
}
447-
448-
.drag-and-drop-error-info {
449-
font-weight: normal;
450-
color: #aaa;
451-
452-
a {
453-
color: $brand-blue;
454-
}
455-
}
456-
457-
.is-failed .drag-and-drop .failed-request {
458-
display: inline-block;
459-
}
460-
461-
.manual-file-chooser {
462-
position: absolute;
463-
width: 240px;
464-
padding: 5px;
465-
margin-left: -80px;
466-
cursor: pointer;
467-
opacity: 0.0001;
468-
}
469-
470-
.manual-file-chooser:hover + .manual-file-chooser-text {
471-
text-decoration: underline;
472-
}
473-
474-
.btn {
475-
// align manual-file-chooser inside a button
476-
.manual-file-chooser {
477-
top: 0;
478-
padding: 0;
479-
line-height: 34px;
480-
}
481-
}
482-
483-
// Focused Textarea styles
484-
.upload-enabled textarea {
485-
display: block;
486-
border-bottom: 1px dashed #ddd;
487-
border-bottom-right-radius: 0;
488-
border-bottom-left-radius: 0;
489-
}
490-
491-
.focused .drag-and-drop {
492-
@extend input[type="text"]:focus;
493-
box-shadow: rgba(#51a7e8, 0.5) 0 0 3px;
494-
}
495-
496-
// Dropping a file on top
497-
.dragover textarea,
498-
.dragover .drag-and-drop {
499-
box-shadow: rgba(#c9ff00, 1) 0 0 3px;
500-
}
501-
502-
503-
// Form style with a write and a preview tab
504-
.previewable-comment-form {
505-
position: relative;
506-
507-
.tabnav {
508-
position: relative;
509-
padding: 10px 10px 0;
510-
}
511-
512-
.comment {
513-
border: 1px solid #cacaca;
514-
}
515-
516-
.comment-header .comment-header-actions { display: none; }
517-
518-
.comment-form-error { margin-bottom: 10px; }
519-
520-
.write-content,
521-
.preview-content {
522-
display: none;
523-
padding: 0 10px 10px;
524-
}
525-
526-
&.write-selected .write-content,
527-
&.preview-selected .preview-content {
528-
display: block;
529-
}
530-
531-
textarea {
532-
display: block;
533-
width: 100%;
534-
min-height: 100px;
535-
max-height: 500px;
536-
padding: 10px;
537-
resize: vertical;
538-
539-
&.fullscreen-contents:focus {
540-
border: 0;
541-
box-shadow: none;
542-
}
543-
}
544-
}
545-
546-
547-
// A two column form, with a .main and a .sidebar column
548-
//
549-
// Override some `.timeline-comment-wrapper` defaults.
550-
// The `div` is needed to be more specific than the other class.
551-
div.composer {
552-
margin-top: 0;
553-
border: 0;
554-
}
555-
556-
// Override the previewable comment form defaults
557-
.composer .comment-form-textarea {
558-
height: 200px;
559-
min-height: 200px;
560-
}
561-
562-
.composer-infobar {
563-
height: 35px;
564-
padding: 0 10px;
565-
margin-bottom: 10px;
566-
border-bottom: 1px solid #eee;
567-
}
568-
569-
.composer .tabnav { margin: 0 0 10px; }
570-
571-
.infobar-widget {
572-
573-
&.milestone {
574-
position: relative; // requires so that the `right: 0;` below works
575-
float: right;
576-
577-
.select-menu-modal-holder { right: 0; }
578-
}
579-
580-
&.assignee {
581-
float: left;
582-
583-
.css-truncate-target {
584-
max-width: 110px;
585-
}
586-
}
587-
588-
.text,
589-
.avatar,
590-
.select-menu {
591-
display: inline-block;
592-
vertical-align: top;
593-
}
594-
595-
.text {
596-
margin-top: 3px;
597-
598-
a {
599-
font-weight: bold;
600-
color: #333;
601-
}
602-
}
603-
604-
.progress-bar {
605-
width: 200px;
606-
overflow: hidden; // round the corners if 100%
607-
line-height: 18px;
608-
}
609-
}
610-
611381

612382
// Hide the up/down buttons in <input type="number"> in the login form, the
613383
// input is used for two-factor auth codes, type="number" makes it more usable
@@ -672,39 +442,6 @@ input::-webkit-inner-spin-button {
672442
margin-left: -1px;
673443
}
674444

675-
h2.account {
676-
margin: 15px 0 0;
677-
font-size: 18px;
678-
font-weight: normal;
679-
color: #666;
680-
}
681-
682-
p.explain {
683-
position: relative;
684-
font-size: 12px;
685-
color: #666;
686-
687-
strong {
688-
color: #333;
689-
}
690-
691-
.octicon {
692-
margin-right: 5px;
693-
color: #bbb;
694-
}
695-
696-
.minibutton {
697-
top: -4px;
698-
float: right;
699-
}
700-
}
701-
702-
.options-content p.explain {
703-
padding: 10px 10px 0;
704-
margin-top: 0;
705-
border-top: 1px solid #ddd;
706-
}
707-
708445
.form-actions {
709446
@include clearfix;
710447

0 commit comments

Comments
 (0)