mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
Indent CSS with 2 spaces.
git-svn-id: http://svn.redmine.org/redmine/trunk@14955 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
8b17507423
commit
19499bb43d
@ -2,9 +2,7 @@
|
||||
RESPONSIVE CSS
|
||||
\*----------------------------------------*/
|
||||
|
||||
|
||||
/*
|
||||
|
||||
CONTENTS
|
||||
|
||||
A) BASIC MOBILE RESETS
|
||||
@ -14,14 +12,11 @@
|
||||
E) UX ELEMENTS
|
||||
F) PAGE SPECIFIC STYLES
|
||||
G) FORMS
|
||||
|
||||
*/
|
||||
|
||||
|
||||
/* Hide new elements (toggle button and flyout menu) above 900px */
|
||||
.mobile-toggle-button,
|
||||
.flyout-menu
|
||||
{
|
||||
.flyout-menu {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@ -42,62 +37,48 @@
|
||||
*/
|
||||
*,
|
||||
*:before,
|
||||
*:after
|
||||
{
|
||||
*:after {
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body,
|
||||
html
|
||||
{
|
||||
html {
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
html
|
||||
{
|
||||
html {
|
||||
overflow-y: auto; /* avoid 2nd scrollbar on desktop */
|
||||
}
|
||||
|
||||
body
|
||||
{
|
||||
body {
|
||||
min-width: 0; /* reset the min-width of 900px */
|
||||
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
|
||||
body,
|
||||
input,
|
||||
select,
|
||||
textarea,
|
||||
button
|
||||
{
|
||||
button {
|
||||
font-size: 14px; /* Set font-size for standard elements to 14px */
|
||||
}
|
||||
|
||||
|
||||
select
|
||||
{
|
||||
select {
|
||||
max-width: 100%; /* prevent long names within select menues from breaking content */
|
||||
}
|
||||
|
||||
|
||||
#wrapper
|
||||
{
|
||||
#wrapper {
|
||||
position: relative;
|
||||
|
||||
overflow-x: hidden; /* hide horizontal overflow */
|
||||
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
#wrapper,
|
||||
#wrapper2
|
||||
{
|
||||
#wrapper2 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
@ -105,53 +86,44 @@
|
||||
B) HEADER & TOP MENUS
|
||||
\*----------------------------------------*/
|
||||
|
||||
#header
|
||||
{
|
||||
#header {
|
||||
width: 100%;
|
||||
height: 64px; /* the height of our header on mobile */
|
||||
min-height: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
border: none;
|
||||
background-color: #628db6;
|
||||
}
|
||||
|
||||
/* Hide project name on mobile (project name is still visible in select menu) */
|
||||
#header h1
|
||||
{
|
||||
#header h1 {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* reset #header a color for mobile toggle button */
|
||||
#header a.mobile-toggle-button
|
||||
{
|
||||
#header a.mobile-toggle-button {
|
||||
color: #f8f8f8;
|
||||
}
|
||||
|
||||
|
||||
/* Hide top-menu and main-menu on mobile, because it's placed in our flyout menu */
|
||||
#top-menu,
|
||||
#header #main-menu
|
||||
{
|
||||
#header #main-menu {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* the quick search within header holding search form and #project_quick_jump_box box*/
|
||||
#header #quick-search
|
||||
{
|
||||
#header #quick-search {
|
||||
float: none;
|
||||
clear: none; /* there are themes which set clear property, this resets it */
|
||||
|
||||
max-width: 100%; /* reset max-width */
|
||||
margin: 0;
|
||||
|
||||
background: inherit;
|
||||
}
|
||||
|
||||
/* this represents the dropdown arrow to left of the mobile project menu */
|
||||
#header .jump-box-arrow:before
|
||||
{
|
||||
#header .jump-box-arrow:before {
|
||||
/* set a font-size in order to achive same result in different themes */
|
||||
font-family: Verdana, sans-serif;
|
||||
font-size: 2em;
|
||||
@ -163,7 +135,6 @@
|
||||
width: 2em;
|
||||
padding: 0 .5em;
|
||||
/* achieve dropdwon arrow by scaling a caret character */
|
||||
|
||||
content: '^';
|
||||
-webkit-transform: scale(1,-.8);
|
||||
-ms-transform: scale(1,-.8);
|
||||
@ -175,8 +146,7 @@
|
||||
}
|
||||
|
||||
/* styles for combobox within quick-search (#project_quick_jump_box) */
|
||||
#header #quick-search select
|
||||
{
|
||||
#header #quick-search select {
|
||||
font-size: 1.5em;
|
||||
font-weight: bold;
|
||||
line-height: 1.2;
|
||||
@ -205,13 +175,11 @@
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
/* hide default browser arrow */
|
||||
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
}
|
||||
|
||||
#header #quick-search form
|
||||
{
|
||||
#header #quick-search form {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@ -219,45 +187,36 @@
|
||||
C) MAIN CONTENT & SIDEBAR
|
||||
\*----------------------------------------*/
|
||||
|
||||
#main
|
||||
{
|
||||
#main {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#main.nosidebar #content,
|
||||
div#content
|
||||
{
|
||||
div#content {
|
||||
width: 100%;
|
||||
min-height: 0; /* reset min-height of #content */
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
|
||||
/* hide sidebar and sidebar switch panel, since it's placed in mobile flyout menu */
|
||||
#sidebar,
|
||||
#sidebar-switch-panel
|
||||
{
|
||||
#sidebar-switch-panel {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.splitcontentleft
|
||||
{
|
||||
width: 100%; /* use full width */
|
||||
.splitcontentleft {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.splitcontentright
|
||||
{
|
||||
width: 100%; /* use full width */
|
||||
.splitcontentright {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/*----------------------------------------*\
|
||||
D) TOGGLE BUTTON & FLYOUT MENU
|
||||
\*----------------------------------------*/
|
||||
|
||||
/* Mobile toggle button */
|
||||
|
||||
.mobile-toggle-button
|
||||
{
|
||||
.mobile-toggle-button {
|
||||
font-size: 42px;
|
||||
line-height: 64px;
|
||||
|
||||
@ -277,37 +236,29 @@
|
||||
}
|
||||
|
||||
.mobile-toggle-button:hover,
|
||||
.mobile-toggle-button:active
|
||||
{
|
||||
.mobile-toggle-button:active {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.mobile-toggle-button:after
|
||||
{
|
||||
.mobile-toggle-button:after {
|
||||
font-family: Verdana, sans-serif;
|
||||
|
||||
display: block;
|
||||
|
||||
margin-top: -3px;
|
||||
|
||||
content: '\2261';
|
||||
}
|
||||
|
||||
/* search magnifier icon */
|
||||
.search-magnifier
|
||||
{
|
||||
.search-magnifier {
|
||||
font-family: Verdana;
|
||||
color: #bbb;
|
||||
|
||||
cursor: pointer;
|
||||
-webkit-transform: rotate(-45deg);
|
||||
-moz-transform: rotate(45deg);
|
||||
-o-transform: rotate(45deg);
|
||||
|
||||
color: #bbb;
|
||||
}
|
||||
|
||||
.search-magnifier--flyout
|
||||
{
|
||||
.search-magnifier--flyout {
|
||||
font-size: 25px;
|
||||
line-height: 54px;
|
||||
|
||||
@ -316,11 +267,9 @@
|
||||
left: 12px;
|
||||
}
|
||||
|
||||
|
||||
/* Flyout Menu */
|
||||
|
||||
.flyout-menu
|
||||
{
|
||||
.flyout-menu {
|
||||
position: absolute;
|
||||
right: -250px;
|
||||
|
||||
@ -336,15 +285,12 @@
|
||||
background-color: #3e5b76;
|
||||
}
|
||||
|
||||
|
||||
/* avoid zoom on search input focus for ios devices */
|
||||
.flyout-menu input[type='text']
|
||||
{
|
||||
.flyout-menu input[type='text'] {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.flyout-menu h3
|
||||
{
|
||||
.flyout-menu h3 {
|
||||
font-size: 11px;
|
||||
line-height: 19px;
|
||||
|
||||
@ -361,8 +307,7 @@
|
||||
background-color: #628db6;
|
||||
}
|
||||
|
||||
.flyout-menu h4
|
||||
{
|
||||
.flyout-menu h4 {
|
||||
color: white;
|
||||
}
|
||||
|
||||
@ -377,88 +322,67 @@
|
||||
.flyout-menu__sidebar > a,
|
||||
.flyout-menu__sidebar > form,
|
||||
.flyout-menu > div,
|
||||
.flyout-menu > form
|
||||
{
|
||||
.flyout-menu > form {
|
||||
padding-left: 8px;
|
||||
}
|
||||
|
||||
.flyout-menu .flyout-menu__avatar
|
||||
{
|
||||
.flyout-menu .flyout-menu__avatar {
|
||||
margin-top: -1px; /* move avatar up 1px */
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.flyout-menu__sidebar > form
|
||||
{
|
||||
.flyout-menu__sidebar > form {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.flyout-menu__sidebar > form h3
|
||||
{
|
||||
.flyout-menu__sidebar > form h3 {
|
||||
margin-left: -8px;
|
||||
}
|
||||
|
||||
.flyout-menu__sidebar > form label
|
||||
{
|
||||
.flyout-menu__sidebar > form label {
|
||||
display: inline-block;
|
||||
|
||||
margin: 8px 0;
|
||||
}
|
||||
|
||||
.flyout-menu__sidebar > form br br
|
||||
{
|
||||
.flyout-menu__sidebar > form br br {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Targets list containing checkboxes (e.g. activities sidebar) in flyout menu */
|
||||
.flyout-menu__sidebar form > ul
|
||||
{
|
||||
.flyout-menu__sidebar form > ul {
|
||||
margin-left: -8px;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.flyout-menu__sidebar form > ul li
|
||||
{
|
||||
.flyout-menu__sidebar form > ul li {
|
||||
line-height: 39px;
|
||||
|
||||
display: block;
|
||||
|
||||
padding-left: 8px;
|
||||
|
||||
border-top: 1px solid rgba(255,255,255,.1);
|
||||
}
|
||||
|
||||
.flyout-menu__sidebar form > ul li:first-child
|
||||
{
|
||||
.flyout-menu__sidebar form > ul li:first-child {
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
.flyout-menu__sidebar form > ul li label
|
||||
{
|
||||
.flyout-menu__sidebar form > ul li label {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.flyout-menu__sidebar form > ul li label a
|
||||
{
|
||||
.flyout-menu__sidebar form > ul li label a {
|
||||
line-height: 1;
|
||||
|
||||
display: inline;
|
||||
|
||||
padding-left: 0;
|
||||
|
||||
border: none;
|
||||
}
|
||||
|
||||
.flyout-menu ul
|
||||
{
|
||||
.flyout-menu ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.flyout-menu #watchers
|
||||
{
|
||||
.flyout-menu #watchers {
|
||||
display: -webkit-flex;
|
||||
display: -ms-flexbox;
|
||||
display: -webkit-box;
|
||||
@ -471,21 +395,18 @@
|
||||
-webkit-box-direction: normal;
|
||||
}
|
||||
|
||||
.flyout-menu #watchers .contextual
|
||||
{
|
||||
.flyout-menu #watchers .contextual {
|
||||
-webkit-box-ordinal-group: 4;
|
||||
-webkit-order: 3;
|
||||
-ms-flex-order: 3;
|
||||
order: 3;
|
||||
}
|
||||
|
||||
.flyout-menu #watchers h3
|
||||
{
|
||||
.flyout-menu #watchers h3 {
|
||||
margin-left: -8px;
|
||||
}
|
||||
|
||||
.flyout-menu #watchers ul li
|
||||
{
|
||||
.flyout-menu #watchers ul li {
|
||||
display: -webkit-flex;
|
||||
display: -ms-flexbox;
|
||||
display: -webkit-box;
|
||||
@ -502,58 +423,44 @@
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.flyout-menu ul li a
|
||||
{
|
||||
.flyout-menu ul li a {
|
||||
line-height: 40px;
|
||||
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
|
||||
height: 40px;
|
||||
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
border-top: 1px solid rgba(255,255,255,.1);
|
||||
}
|
||||
|
||||
.flyout-menu ul li:first-child a
|
||||
{
|
||||
.flyout-menu ul li:first-child a {
|
||||
line-height: 39px;
|
||||
|
||||
height: 39px;
|
||||
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
.flyout-menu a
|
||||
{
|
||||
.flyout-menu a {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.flyout-menu ul li a:hover
|
||||
{
|
||||
.flyout-menu ul li a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.flyout-menu ul li a.new-object,
|
||||
.new-object ~ .menu-children
|
||||
{
|
||||
.new-object ~ .menu-children {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Left flyout search container */
|
||||
.flyout-menu__search
|
||||
{
|
||||
.flyout-menu__search {
|
||||
line-height: 54px;
|
||||
|
||||
height: 64px;
|
||||
padding-top: 3px;
|
||||
padding-right: 8px;
|
||||
}
|
||||
|
||||
.flyout-menu__search input[type='text']
|
||||
{
|
||||
.flyout-menu__search input[type='text'] {
|
||||
line-height: 2;
|
||||
|
||||
width: 100%;
|
||||
@ -568,93 +475,67 @@
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.flyout-menu__avatar
|
||||
{
|
||||
.flyout-menu__avatar {
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
|
||||
width: 100%;
|
||||
|
||||
border-top: 1px solid rgba(255,255,255,.1);
|
||||
}
|
||||
|
||||
|
||||
.flyout-menu__avatar img.gravatar
|
||||
{
|
||||
.flyout-menu__avatar img.gravatar {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
padding: 0;
|
||||
|
||||
vertical-align: top;
|
||||
|
||||
border-width: 0;
|
||||
}
|
||||
|
||||
.flyout-menu__avatar a
|
||||
{
|
||||
.flyout-menu__avatar a {
|
||||
line-height: 40px;
|
||||
|
||||
height: auto;
|
||||
height: 40px;
|
||||
|
||||
text-decoration: none;
|
||||
|
||||
color: white;
|
||||
}
|
||||
|
||||
/* avatar */
|
||||
.flyout-menu__avatar a:first-child
|
||||
{
|
||||
.flyout-menu__avatar a:first-child {
|
||||
line-height: 0;
|
||||
|
||||
width: 40px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.flyout-menu__avatar .user
|
||||
{
|
||||
.flyout-menu__avatar .user {
|
||||
padding-left: 15px;
|
||||
}
|
||||
|
||||
/* user link when no avatar is present */
|
||||
.flyout-menu__avatar--no-avatar a.user
|
||||
{
|
||||
.flyout-menu__avatar--no-avatar a.user {
|
||||
line-height: 40px;
|
||||
|
||||
padding-left: 8px;
|
||||
}
|
||||
|
||||
|
||||
.flyout-is-active body
|
||||
{
|
||||
.flyout-is-active body {
|
||||
overflow: hidden; /* for body not to have scrollbars when left flyout menu is active */
|
||||
}
|
||||
|
||||
html.flyout-is-active
|
||||
{
|
||||
html.flyout-is-active {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
|
||||
.flyout-is-active #wrapper
|
||||
{
|
||||
.flyout-is-active #wrapper {
|
||||
right: 250px; /* when left flyout is active, move body to the right (same amount like flyout-menu's width) */
|
||||
|
||||
overflow: visible;
|
||||
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.flyout-is-active .mobile-toggle-button:after
|
||||
{
|
||||
.flyout-is-active .mobile-toggle-button:after {
|
||||
content: '\00D7'; /* close glyph */
|
||||
}
|
||||
|
||||
.flyout-is-active #wrapper2
|
||||
{
|
||||
|
||||
.flyout-is-active #wrapper2 {
|
||||
/*
|
||||
* only relevant for devices with cursor when flyout it active, in order to show,
|
||||
* that whole wrapper content is clickable and closes flyout menu
|
||||
@ -662,25 +543,19 @@
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
||||
#admin-menu
|
||||
{
|
||||
#admin-menu {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
#admin-menu li
|
||||
{
|
||||
#admin-menu li {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
#admin-menu a,
|
||||
#admin-menu a.selected
|
||||
{
|
||||
#admin-menu a.selected {
|
||||
line-height: 40px;
|
||||
|
||||
padding: 0;
|
||||
padding-left: 32px !important;
|
||||
|
||||
background-position: 8px 50%;
|
||||
}
|
||||
|
||||
@ -693,20 +568,16 @@
|
||||
|
||||
/* Contextual Buttons */
|
||||
|
||||
#content>.contextual
|
||||
{
|
||||
#content>.contextual {
|
||||
width: 100%;
|
||||
margin-bottom: .5em;
|
||||
padding-left: 0; /* reset left padding in order to use whole space */
|
||||
|
||||
white-space: normal;
|
||||
|
||||
color: transparent;
|
||||
}
|
||||
|
||||
#content>.contextual a,
|
||||
p.buttons a
|
||||
{
|
||||
p.buttons a {
|
||||
font-weight: bold;
|
||||
|
||||
display: inline-block;
|
||||
@ -723,13 +594,11 @@
|
||||
}
|
||||
|
||||
#content>.contextual a.icon,
|
||||
p.buttons a.icon
|
||||
{
|
||||
p.buttons a.icon {
|
||||
padding-left: 25px;
|
||||
}
|
||||
|
||||
.flyout-menu .contextual
|
||||
{
|
||||
.flyout-menu .contextual {
|
||||
float: none;
|
||||
}
|
||||
|
||||
@ -740,14 +609,12 @@
|
||||
}
|
||||
|
||||
/* jquery ui dialogs */
|
||||
.ui-dialog
|
||||
{
|
||||
.ui-dialog {
|
||||
max-width: 98%;
|
||||
margin: 1%;
|
||||
}
|
||||
|
||||
.ui-dialog .ui-dialog-content
|
||||
{
|
||||
.ui-dialog .ui-dialog-content {
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
@ -761,26 +628,23 @@
|
||||
|
||||
/* page /login */
|
||||
|
||||
#login-form table
|
||||
{
|
||||
#login-form table {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#login-form input#username,
|
||||
#login-form input#password,
|
||||
#login-form input#openid_url
|
||||
{
|
||||
#login-form input#openid_url {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/* some themes add a margin to login page, remove it on mobile */
|
||||
.action-login #main
|
||||
{
|
||||
.action-login #main {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
div#activity dl, #search-results { margin-left: 0; }
|
||||
div#activity dl, #search-results {margin-left: 0;}
|
||||
|
||||
.version-overview table.progress {width:75%;}
|
||||
div#version-summary {float:none; width:100%; margin-left:0;}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user