#notice-table {
.notice-description {
- @media only screen and (max-width: 767px) {
+ @media @mediaSm {
max-width: 80vw;
}
- @media only screen and (max-width: 991px) and (min-width: 768px) {
+ @media @mediaMd {
max-width: 360px;
}
- @media only screen and (min-width: 992px) and (max-width: 1199.98px) {
+ @media @mediaLg {
max-width: 510px;
}
- @media only screen and (min-width: 1200px) {
+ @media @mediaXl {
max-width: 640px;
}
}
margin-right: 0 !important;
}
- @media only screen and (max-width: 767px) {
+ @media @mediaSm {
#navbar:not(.shown) > *:not(:first-child) {
display: none;
}
}
&.pagination.menu {
- @media only screen and (max-width: 767px) {
+ @media @mediaSm {
.item:not(.active):not(.navigation),
.item.navigation span.navigation_label {
display: none;
}
// Conditional display
-@media only screen and (min-width: 768px) {
+@media @mediaMdAndUp {
.mobile-only,
.ui.button.mobile-only {
display: none;
}
}
-@media only screen and (max-width: 767px) {
+@media @mediaSm {
.not-mobile {
display: none;
}
clip: auto;
}
-@media only screen and (max-width: 991px) and (min-width: 768px) {
+@media @mediaMd {
.ui.container {
width: 95%;
}
border-width: 1px !important;
}
-@media only screen and (max-width: 1200px) {
+@media @mediaLgAndDown {
.ui.menu.new-menu {
overflow-x: auto !important;
justify-content: left !important;
}
.dropdown:not(.selection) > .menu.review-box > * {
- @media only screen and (max-height: 700px) {
+ @media (max-height: 700px) {
.CodeMirror,
.CodeMirror-scroll {
min-height: 100px;
left: 90%;
width: 15%;
- @media only screen and (max-width: 768px) {
+ @media @mediaSm {
top: 10px;
left: auto;
width: auto;
left: auto !important;
}
- @media only screen and (max-width: 768px) {
+ @media @mediaSm {
width: 100%;
}
}
text-align: center;
}
- @media only screen and (min-width: 768px) {
+ @media @mediaMdAndUp {
width: 800px !important;
.header {
}
}
- @media only screen and (max-width: 767px) {
+ @media @mediaSm {
.optional .title {
margin-left: 15px;
}
}
}
-@media only screen and (min-width: 768px) {
+@media @mediaMdAndUp {
.g-recaptcha,
.h-captcha {
margin: 0 auto !important;
}
}
-@media screen and (max-height: 575px) {
+@media (max-height: 575px) {
#rc-imageselect,
.g-recaptcha,
.h-captcha {
.inline.field > label,
input {
- @media only screen and (max-width: 768px) {
+ @media @mediaSm {
width: 100% !important;
}
}
width: 50% !important;
}
- @media only screen and (max-width: 768px) {
+ @media @mediaSm {
label,
input,
.selection.dropdown {
&.new.repo {
.ui.form {
- @media only screen and (min-width: 768px) {
+ @media @mediaMdAndUp {
#auto-init {
margin-left: @create-page-form-input-padding+15px;
}
.selection.dropdown:not(.owner) {
width: 50% !important;
- @media only screen and (max-width: 768px) {
+ @media @mediaSm {
width: 100% !important;
}
}
}
.new.org .ui.form {
- @media only screen and (max-width: 768px) {
+ @media @mediaSm {
.field button,
.field a {
margin-bottom: 1em;
}
.hero {
- @media only screen and (max-width: 767px) {
+ @media @mediaSm {
h1 {
font-size: 3.5em;
}
}
}
- @media only screen and (min-width: 768px) {
+ @media @mediaMdAndUp {
h1 {
font-size: 5.5em;
}
footer {
.ui.container .left,
.ui.container .right {
- @media only screen and (max-width: 880px) {
+ @media (max-width: 880px) {
display: block;
text-align: center;
float: none;
text-overflow: ellipsis;
}
- @media (max-width: 1200px) {
+ @media @mediaLgAndDown {
.title {
max-width: 150px;
}
#clone-panel {
width: 350px;
- @media only screen and (max-width: 768px) {
+ @media @mediaSm {
width: 100%;
}
}
.ui.tiny.blue.buttons {
- @media only screen and (max-width: 768px) {
+ @media @mediaSm {
width: 100%;
}
}
width: 100%;
}
- @media only screen and (max-width: 768px) {
+ @media @mediaSm {
flex-direction: column;
h1 {
}
}
- @media only screen and (max-width: 767px) {
+ @media @mediaSm {
.form .button {
width: 100%;
background: #ffffff;
line-height: 30px;
- @media only screen and (max-width: 992px) {
+ @media @mediaMdAndDown {
flex-direction: column;
align-items: flex-start;
}
button,
input {
- @media only screen and (max-width: 438px) {
+ @media (max-width: 438px) {
width: 100%;
}
}
button {
- @media only screen and (max-width: 768px) {
+ @media @mediaSm {
margin-bottom: 1em;
}
}
}
}
- @media only screen and (max-width: 767px) {
+ @media @mediaSm {
.dividing.header .stackable.grid .button {
margin-top: 2px;
margin-bottom: 2px;
vertical-align: middle;
}
-@media only screen and (max-width: 767.98px) {
+@media @mediaSm {
tr.commit-list {
width: 100%;
}
}
}
-@media only screen and (min-width: 768px) and (max-width: 991.98px) {
+@media @mediaMd {
tr.commit-list {
width: 723px;
}
}
}
-@media only screen and (min-width: 992px) and (max-width: 1199.98px) {
+@media @mediaLg {
tr.commit-list {
width: 933px;
}
}
}
-@media only screen and (min-width: 1200px) {
+@media @mediaXl {
tr.commit-list {
width: 1127px;
}
}
}
-@media only screen and (max-width: 767px) {
+@media @mediaSm {
.ui.stackable.menu {
&.mobile--margin-between-items > .item {
margin-top: 5px;
.repository .ui.menu.new-menu {
background: none !important;
- @media only screen and (max-width: 1200px) {
+ @media @mediaLgAndDown {
&::after {
background: none !important;
}
+@import "variables.less";
+
.ui.button.add-code-comment {
padding: 2px;
position: absolute;
margin-left: .5rem;
}
-@media only screen and (max-width: 768px) {
+@media @mediaSm {
#review-box > .menu {
> .ui.segment {
width: 94vw;
}
}
-@media only screen and (min-width: 768px) and (max-width: 992px) {
+@media @mediaMd {
#review-box .CodeMirror-scroll {
max-width: 700px;
}
}
-@media only screen and (min-width: 992px) and (max-width: 1200px) {
+@media @mediaLg {
#review-box .CodeMirror-scroll {
max-width: 800px;
}
}
-@media only screen and (min-width: 1200px) {
+@media @mediaXl {
#review-box .CodeMirror-scroll {
max-width: 900px;
}
+@import "variables.less";
+
.user {
&:not(.icon) {
padding-top: 15px;
img {
width: 100%;
}
- @media only screen and (max-width: 768px) {
+ @media @mediaSm {
height: 250px;
overflow: hidden;
img {
- max-height: 768px;
- max-width: 768px;
+ max-height: 767px;
+ max-width: 767px;
}
}
}
- @media only screen and (max-width: 768px) {
+ @media @mediaSm {
width: 100%;
}
}
padding: 0 !important;
}
- @media (max-width: 1200px) {
+ @media @mediaLgAndDown {
& {
display: none;
}
left: 25px;
}
-@media (max-width: 1200px) {
+@media @mediaLgAndDown {
.heatmap-container .total-contributions {
left: 21px;
}
@import "~font-awesome/css/font-awesome.css";
+@import "./variables.less";
@import "./features/gitgraph.less";
@import "./features/animations.less";
@import "./features/heatmap.less";
+@import "../variables.less";
+
:root {
--color-primary: #87ab63;
--color-primary-dark-1: #93b373;
background: #2a2e3a;
border-color: transparent !important;
- @media only screen and (max-width: 1200px) {
+ @media @mediaLgAndDown {
&::after {
background: linear-gradient(to right, transparent 0%, #2a2e3a 100%);
}
--- /dev/null
+// here a standard set of media queries is defined, that is compatible with the
+// responsive grid used in fomantic css. As there only is a precompiled build
+// of fomantic checked in (since 946bbbe), we can't use their less variables
+// here, but these breakpoints shouldn't change in the foreseeable future.
+
+@mediaMdAndUp: ~"(min-width: 768px)";
+@mediaMdAndDown: ~"(max-width: 991px)";
+@mediaLgAndUp: ~"(min-width: 992px)";
+@mediaLgAndDown: ~"(max-width: 1200px)";
+
+@mediaSm: ~"(max-width: 767px)";
+@mediaMd: @mediaMdAndUp and @mediaMdAndDown;
+@mediaLg: @mediaLgAndUp and @mediaLgAndDown;
+@mediaXl: ~"(min-width: 1201px)";