Compare commits

...

144 Commits

Author SHA1 Message Date
mrliptontea
9147b61324 Update readme for release v1.9.0 2019-03-01 18:47:46 +00:00
mrliptontea
f5805c2ad3 Merge branch 'taqueci-redmine-4.0' 2019-02-24 17:33:00 +00:00
mrliptontea
30e88ca836 Update dependencies 2019-02-24 15:33:20 +00:00
mrliptontea
ddabd865d7 Add note about fixing editor tabs layout 2019-02-24 15:16:09 +00:00
mrliptontea
d8dee5ccb2 Improve new Edit/Preview tab layout 2019-02-24 15:14:01 +00:00
mrliptontea
73d1210a00 Unify text contextual action icon's appearance 2019-02-24 13:42:12 +00:00
Takeshi Nakamura
e1563a6f9c Update application.css 2018-12-15 22:30:13 +09:00
Takeshi Nakamura
73a1f06136 Wiki toolbar implemented by issue 27758 2018-12-11 23:15:37 +09:00
Takeshi Nakamura
6f0d97fa6e Journal action links implemented by r16900 2018-12-11 23:08:17 +09:00
Takeshi Nakamura
230383dd2a Syntax highlighter Rouge implemented by issue 24681 2018-12-11 23:05:05 +09:00
Grzegorz Rajchman
bc6e2fefb1 Merge pull request #82 from mrliptontea/81-checkboxes-missing-on-firefox
Fix checkboxes missing on firefox
2018-09-29 17:10:25 +01:00
mrliptontea
3e80d292f4 Add some space below search form 2018-09-29 17:06:37 +01:00
mrliptontea
6d1346064e Fix #81 missing top checkboxes on Firefox
- Use position: absolute on inputs instead of float
- Unify mixins to check for checkboxes and radioes
- Improve checkbox layout in few places
2018-09-29 17:04:44 +01:00
Grzegorz Rajchman
0ae6e4bb59 Merge pull request #79 from mrliptontea/issue-78-files-not-visible-on-wiki
Fix attachments form layout and extend collapsible
2018-06-14 21:48:40 +01:00
mrliptontea
da33ec44f3 Fix attachments form layout and extend collapsible 2018-06-14 21:40:10 +01:00
Grzegorz Rajchman
3e84cfd613 Merge pull request #77 from mrliptontea/update-packages
Update dependencies
2018-05-14 22:05:19 +01:00
mrliptontea
2d77cba782 Update dependencies 2018-05-14 21:02:53 +01:00
Grzegorz Rajchman
077b0e3ac1 Merge pull request #76 from mrliptontea/add-romanian-and-french-translations
Add Romanian & French translation support.

Cherry-picked from #72
2018-05-14 20:46:00 +01:00
Mihai Kelemen
e8687dfc7f Add Romanian & French translation support 2018-05-14 20:41:46 +01:00
Grzegorz Rajchman
aec8502225 Merge pull request #75 from mrliptontea/update-screenshots
Update screenshots
2018-05-12 00:19:45 +01:00
mrliptontea
75b8ab6143 Update screenshots 2018-05-12 00:17:49 +01:00
Grzegorz Rajchman
b0842d06d1 Merge pull request #74 from mrliptontea/update-packages
Spring cleaning
2018-05-11 22:41:55 +01:00
mrliptontea
7859024c18 Update screenshots 2018-05-11 22:38:23 +01:00
mrliptontea
b81b76a306 Up the node version in travis 2018-05-11 22:04:35 +01:00
mrliptontea
e0211daf24 Update dependencies 2018-05-11 22:02:47 +01:00
Grzegorz Rajchman
8a1ca0915d Merge pull request #70 from mrliptontea/issue-69/remember-me-checkbox-layout
Fix "remember me" checkbox layout on login page, fixes #69
2017-09-14 21:41:29 +01:00
mrliptontea
d65d26f26f Fix "remember me" checkbox layout on login page, fixes #69 2017-09-14 21:38:08 +01:00
Grzegorz Rajchman
5c34a08c7f Merge pull request #68 from mrliptontea/issue-51-narrow-dropdown-in-top-menu
Disallow wrapping text in the top menu, fixes #51
2017-09-05 23:03:53 +01:00
mrliptontea
37d408cdb6 Disallow wrapping text in the top menu, fixes #51 2017-09-05 23:00:12 +01:00
mrliptontea
442596d0d0 Quick fix for regression introduced in #67 2017-09-05 22:49:03 +01:00
Grzegorz Rajchman
564d0bf3ba Merge pull request #67 from mrliptontea/issue-52-invisible-icon-only-button
Avoid applying styles for icon-only links in sidebar, fixes #52
2017-09-05 22:42:31 +01:00
mrliptontea
3231825dc0 Update readme 2017-09-05 22:42:04 +01:00
mrliptontea
252d28c4cb Avoid applying styles for icon-only links in sidebar, fixes #52 2017-09-05 22:37:22 +01:00
Grzegorz Rajchman
a44432e1ab Merge pull request #66 from mrliptontea/issue-50-invisible-printed-content-in-firefox
Improve print styles
2017-09-05 22:35:05 +01:00
mrliptontea
dbdcbce6a4 Fix issue with printed content in Firefox, fixes #50 2017-09-05 22:23:51 +01:00
mrliptontea
e4821cf03e Enforce correct padding for modal window's content 2017-09-05 21:47:33 +01:00
mrliptontea
9204d2263b Indent table cells with icons 2017-09-05 21:40:40 +01:00
mrliptontea
b4eb58bc77 Make 'Add filter' button wrap correctly on smaller screens 2017-09-05 21:37:04 +01:00
mrliptontea
4a5ec23be5 Fix layout of .query-columns in the latest Redmine 2017-09-05 21:34:02 +01:00
Grzegorz Rajchman
db2ae70ba1 Merge pull request #65 from mrliptontea/issue-54-max-height-for-list-field
Make list fields scrollable, fixes #54
2017-09-05 21:21:57 +01:00
mrliptontea
356e70ece0 Update readme 2017-09-05 21:21:25 +01:00
mrliptontea
493bed0468 Fix layout of checkbox list in administration forms 2017-09-05 21:15:11 +01:00
mrliptontea
7dbbaab953 Unify styles for checkbox/radio lists 2017-09-05 21:01:05 +01:00
mrliptontea
8e5378b65b Display custom list field as scrollable list, fixes #54 2017-09-03 22:55:03 +01:00
Grzegorz Rajchman
1abd5d2c59 Merge pull request #64 from mrliptontea/issue-62-anchors-wont-scroll-the-page
Remove styles for empty anchors in wiki, fixes #62
2017-09-03 13:27:24 +01:00
mrliptontea
c595f5b66f Remove styles for empty anchors in wiki, fixes #62 2017-09-03 13:20:38 +01:00
mrliptontea
f572a55b7c Add package-lock.json 2017-09-03 13:11:52 +01:00
Grzegorz Rajchman
b890e3f487 Merge pull request #63 from mrliptontea/ci-linting
Merge CI linting
2017-07-12 22:46:44 +01:00
mrliptontea
87ce84718d Unflatten some badges 2017-07-12 22:44:27 +01:00
mrliptontea
e1defa3677 Add build status badge 2017-07-12 22:41:47 +01:00
mrliptontea
2103d1e3b3 Fix linter errors 2017-07-12 22:32:24 +01:00
mrliptontea
93f4c4e6fb Add travis-ci config 2017-07-12 22:05:33 +01:00
mrliptontea
ea57a72909 Remove jshint config 2017-07-12 22:05:20 +01:00
Grzegorz Rajchman
13db2d80bd Merge pull request #61 from taqueci/redmine-3.4
Redmine 3.4
2017-07-12 21:14:01 +01:00
Takeshi Nakamura
ebcbd49e18 Update application.css and theme.js 2017-07-09 12:48:07 +09:00
Takeshi Nakamura
81e59e52ca Fix download icon 2017-07-09 12:39:22 +09:00
Takeshi Nakamura
1200c42714 Add padding of description and last comment in the issue list 2017-07-02 11:13:40 +09:00
Takeshi Nakamura
d03e35edc6 Last updated by colum in issue list (Redmine issue 6375) 2017-07-02 11:13:40 +09:00
Takeshi Nakamura
fb4c70319a Use css pseudo-classes instead of cycle("odd", "even") (Redmine issue 15361) 2017-07-02 11:13:40 +09:00
Takeshi Nakamura
588b2fe358 View attachments on the issue list (Redmine issue 25515) 2017-07-02 11:13:40 +09:00
Takeshi Nakamura
2c93df1543 Show last comment/notes in the issue list (Redmine issue 1474) 2017-07-02 11:13:40 +09:00
Takeshi Nakamura
e6a238fbd9 Fix misalignment of context menu 2017-07-02 11:13:40 +09:00
Takeshi Nakamura
19d2a2dfa3 View repository content by default (instead of the history) (Redmine issue 25999) 2017-07-02 11:13:40 +09:00
Takeshi Nakamura
97ecaf66c2 In place editing of "My page" layout (Redmine issue 25297) 2017-07-02 11:13:40 +09:00
Takeshi Nakamura
6b6c0cc565 Use css pseudo-classes instead of cycle("odd", "even") (Redmine issue 15361) 2017-07-02 11:13:40 +09:00
Takeshi Nakamura
02703bfefd Show assignee's icon in addition to author's icon (Redmine issue 25775) 2017-07-02 11:13:40 +09:00
Takeshi Nakamura
194a114684 Add .icon-email-add 2017-07-02 11:13:40 +09:00
Grzegorz Rajchman
399b5abeb9 Merge pull request #59 from taqueci/bugfix
Wrong jQuery ui-icons path
2017-05-26 16:39:30 +01:00
Grzegorz Rajchman
562da0a2ca Merge pull request #58 from taqueci/feature-ja
Japanese translation
2017-05-26 16:39:18 +01:00
Takeshi Nakamura
aba098b4cd Fix jQuery ui-icons path 2017-05-26 23:57:44 +09:00
Takeshi Nakamura
cc2e245b62 Fix jQuery ui-icons path 2017-05-26 23:54:29 +09:00
Takeshi Nakamura
35c4fce150 Merge commit 'd19768c' into bugfix 2017-05-26 23:51:53 +09:00
Takeshi Nakamura
51435b6d5e Add Japanese translation 2017-05-26 21:34:51 +09:00
taqueci
d19768cfcc Wrong h4 heading in issue note (#57)
* Fix h4 heading in issue note
2017-05-25 15:48:53 +01:00
Takeshi Nakamura
6423b32ce3 Fix h4 heading in issue note 2017-05-25 23:09:52 +09:00
Takeshi Nakamura
2464deb302 Fix jQuery ui-icon path 2017-05-25 22:14:39 +09:00
Takeshi Nakamura
9aefe05b3c Fix h4 heading in issue note 2017-05-24 21:46:45 +09:00
mrliptontea
61f9ee4af7 Build German translations and update changelog 2017-03-19 14:26:39 +00:00
Grzegorz Rajchman
12bbf11fde Merge pull request #49 from TumTum/translate-german
Add german translations
2017-03-19 14:25:04 +00:00
Tobias Matthaiou
5fe948f289 Translate in german. 2017-03-14 21:12:24 +01:00
mrliptontea
707c5409df Adjust width of the label column on the login form, fixes #44 2017-02-26 14:34:03 +00:00
mrliptontea
994410fd89 Add styles for project tile layout 2017-02-12 21:10:37 +00:00
mrliptontea
cb78f07e84 Improve styles for custom flash messages 2017-02-12 20:46:28 +00:00
mrliptontea
3d8889b28c Add support for responsive styles and new project selector 2017-02-12 19:50:11 +00:00
Grzegorz Rajchman
22fea49006 Merge pull request #43 from milouse/master
Fixes for version 3.3.2
2017-02-12 19:40:23 +00:00
Étienne Deparis
5265818398 New compiled version 2017-02-11 01:01:48 +01:00
Étienne Deparis
edec47580e Fix new jump to project block 2017-02-11 00:52:49 +01:00
Étienne Deparis
ea428cbc36 Fix login form 2017-02-11 00:52:49 +01:00
Étienne Deparis
809bb8cc4a Fix icons in #admin-menu 2017-02-11 00:39:15 +01:00
mrliptontea
43da9dc45c Force icon-only and tabs styles with higher specificity, fix #42 2017-01-19 20:57:32 +00:00
mrliptontea
4e1ebf53fb Update readme for release v1.8.0 2016-11-20 23:39:56 +00:00
mrliptontea
06638406f0 Use standardjs 2016-11-20 23:31:10 +00:00
mrliptontea
af40d823bd Small correction for changeset lists 2016-11-20 23:27:58 +00:00
mrliptontea
beeff247a4 Extend scss linter settings
- Enable DeclarationOrder rule
- Change declaration order in scss
- Enable VendorPrefix rule
- Add Autoprefixer via Postcss to css task
- Move scss-lint comments in-line
2016-11-20 23:04:32 +00:00
mrliptontea
abb16c53f3 Change indentation to 2 spaces
To comply with Redmine's coding style.
2016-11-20 21:07:06 +00:00
mrliptontea
d0e6246e99 Linting
- Update scss_lint rules
- Fix linter errors
- Add .editorconfig file
2016-11-20 20:19:51 +00:00
mrliptontea
53d1c6dcec Update readme 2016-11-19 21:12:19 +00:00
mrliptontea
6dcbf4e150 Comply to the latest features of Redmine, fix #37
- Support drag-and-drop sorting
- Introduce new icons
- Add styles for .table-list
2016-11-19 21:12:10 +00:00
mrliptontea
c9f897e3b1 Correct layout for redmine backlogs 2016-11-19 19:18:41 +00:00
mrliptontea
d390c5a4d6 Fix some issues with top bar 2016-11-19 19:18:10 +00:00
mrliptontea
928b88dbaf Improve layout of user form 2016-11-19 17:28:35 +00:00
Grzegorz Rajchman
40450468f2 Merge pull request #39 from wbstr/fix/mainMenuZIndex
Fixed #38: Main menu children (new issue, etc.) and backlogs plugin
2016-11-19 17:26:39 +00:00
Tamas Futo
7e9939f5ed Fixed #38: Main menu children (new issue, etc.) and backlogs plugin compatibility issue 2016-11-03 14:52:24 +01:00
mrliptontea
a72cf5a9ee wrap project breadcrumbs in the header, fixes #34 2016-08-11 21:24:01 +01:00
mrliptontea
c88c05f159 hide text for .icon-only and fix some icon positions, fixes #35 2016-08-11 21:11:41 +01:00
mrliptontea
aac8a88bfe update README 2016-08-10 19:37:57 +01:00
mrliptontea
defabec1ed update node dependencies and move them to production, fixes #36 2016-08-10 19:35:35 +01:00
mrliptontea
4181c09b02 mention latest visual changes in changelog 2016-07-02 23:59:44 +01:00
mrliptontea
1c620b3b4e icon for PNG export format 2016-07-02 23:59:00 +01:00
mrliptontea
a8355d5c64 make links in p.buttons look like buttons 2016-07-02 23:56:15 +01:00
mrliptontea
1da7710cea improve styling for totals 2016-07-02 22:06:40 +01:00
mrliptontea
2b537786d9 improve inline checkbox styles 2016-07-02 22:04:31 +01:00
mrliptontea
2e7d9a1308 override margin-bottom for box headers to improve vertical rhythm 2016-07-02 21:19:41 +01:00
mrliptontea
9a4c33153e improved styles for news 2016-07-02 21:14:36 +01:00
mrliptontea
00fed09d8e add styles for inactive pagination elements 2016-07-02 20:58:28 +01:00
mrliptontea
f560febce2 unify method of removing bottom margin from the last-child 2016-07-02 20:52:51 +01:00
mrliptontea
7612e8b004 small improvements for box panels styling 2016-07-02 20:46:44 +01:00
mrliptontea
02dd1f43a0 fix styling for 'Private' checkbox in Redmine 3.1+ 2016-07-02 20:33:20 +01:00
mrliptontea
60cd90a36a unlock custom styling for all HTML5 input types 2016-07-02 20:15:01 +01:00
mrliptontea
77d07307b1 align help editor button to the right only on screen sizes md and up 2016-07-02 20:14:04 +01:00
mrliptontea
80cd0c620f support native editor 'highlighted code' button in Redmine 3.3 2016-07-02 20:02:22 +01:00
mrliptontea
8b3339f629 fix duplicated toggle-multiselect styles in Redmine 3.3 2016-06-24 00:09:55 +01:00
mrliptontea
6b6b12842c update changelog 2016-06-24 00:03:25 +01:00
mrliptontea
c160914448 display correct icon in journal actions for users that cannot edit notes, fixes #28 2016-06-24 00:02:23 +01:00
mrliptontea
b5f351f135 improve pagination styling, fixes #25 2016-06-23 23:49:43 +01:00
mrliptontea
97476e3bda fix few issues with icons
- apply FA to .icon-only class
- use check instead of check-square
- make ticks green
- wrap context menu styles in FA condition
2016-06-23 23:47:50 +01:00
mrliptontea
38ee17c8a8 properly set widths for progress bars, fixes #23 2016-06-23 23:32:44 +01:00
mrliptontea
7b95f93194 improve styles for the main menu in Redmine 3.3, fixes #32, refs #33 2016-06-23 23:30:08 +01:00
mrliptontea
324a236a02 remove trailing whitespaces 2016-06-23 21:46:45 +01:00
mrliptontea
b9035527ea move font-awesome import outside of if statement, fixes #30 2016-06-23 21:43:01 +01:00
Grzegorz Rajchman
428be4db9a Merge pull request #33 from shawndibble/master
Updated to work with Redmine 3.3
2016-06-23 07:08:24 +01:00
shawndibble
c6a20766c6 Update _top.scss 2016-06-22 16:56:22 -05:00
shawndibble
7430f1d844 Updated to work with Redmine 3.3
Redmine 3.3 adjusted their main-menu and added a drop down. These changes correct this issue.
2016-06-22 16:39:41 -05:00
mrliptontea
a931c63ed4 compatibility with Redmine 3.2.0 layout, fixes #21 2015-12-14 23:06:08 +00:00
mrliptontea
3b95b931f8 correct attributes order in _plugins.scss 2015-12-07 23:33:51 +00:00
mrliptontea
e247564c3e fix duplicated pencil icon for Description in issue form in Redmine 3.1.2+ 2015-12-07 23:28:47 +00:00
mrliptontea
76fc0f4b7c apply Font Awesome font-family for icons in Time Tracker overview 2015-12-07 22:21:40 +00:00
mrliptontea
61b6475e9e add wrapping and set alignment for long text custom fields, fixes #19 2015-12-03 23:49:44 +00:00
mrliptontea
f3a617baf0 release v1.7.2 2015-10-12 10:14:50 +02:00
mrliptontea
db39c6cb54 align cells in lists to center by default 2015-10-12 10:13:56 +02:00
mrliptontea
c45de83791 fix .pagination float in project members settings 2015-10-12 09:48:47 +02:00
mrliptontea
6f508ba87a add badges to README (badges are in, right?) 2015-10-10 22:38:09 +02:00
mrliptontea
49ed887fce argh, update links in README after transfering repo 2015-10-10 21:57:41 +02:00
mrliptontea
bba68972d8 improve styling for stuff_to_do 2015-10-10 21:45:58 +02:00
83 changed files with 13636 additions and 8953 deletions

9
.editorconfig Normal file
View File

@@ -0,0 +1,9 @@
root = true
[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2

View File

@@ -1,23 +0,0 @@
{
"camelcase" : true,
"curly" : true,
"eqeqeq" : true,
"forin" : true,
"indent" : 4,
"latedef" : true,
"newcap" : true,
"nonew" : false,
"quotmark" : "double",
"undef" : true,
"unused" : true,
"strict" : true,
"maxparams" : 3,
"maxdepth" : 3,
"maxstatements": 16,
"maxlen" : 80,
"shadow" : false,
"browser" : true,
"jquery" : true,
"globals" : {
}
}

View File

@@ -18,20 +18,21 @@ linters:
enabled: false
Comment:
enabled: false
enabled: true
DebugStatement:
enabled: true
DeclarationOrder:
enabled: false
enabled: true
DuplicateProperty:
enabled: true
ignore_consecutive:
- word-break
ElsePlacement:
enabled: false
style: same_line
enabled: true
EmptyLineBetweenBlocks:
enabled: true
@@ -67,9 +68,9 @@ linters:
filename_extension: false
Indentation:
enabled: false
enabled: true
character: space
width: 4
width: 2
LeadingZero:
enabled: true
@@ -94,6 +95,9 @@ linters:
enabled: true
extra_properties: []
PseudoElement:
enabled: true
QualifyingElement:
enabled: false
@@ -124,6 +128,12 @@ linters:
SpaceAfterPropertyName:
enabled: true
SpaceAfterVariableName:
enabled: true
SpaceAroundOperator:
enabled: true
SpaceBeforeBrace:
enabled: true
style: space
@@ -140,8 +150,14 @@ linters:
TrailingSemicolon:
enabled: true
TrailingWhitespace:
enabled: true
TrailingZero:
enabled: false
enabled: true
TransitionAll:
enabled: true
UnnecessaryMantissa:
enabled: true
@@ -154,3 +170,9 @@ linters:
UrlQuotes:
enabled: true
VendorPrefix:
enabled: true
ZeroUnit:
enabled: true

15
.travis.yml Normal file
View File

@@ -0,0 +1,15 @@
dist: trusty
language: node_js
node_js:
- 8
cache:
directories:
- node_modules
before_install:
- rvm install 2.2
- rvm use 2.2 --fuzzy
install:
- gem install scss_lint
- npm install
script:
- npm run lint --silent

View File

@@ -1,66 +1,79 @@
module.exports = function(grunt) {
grunt.initConfig({
src: "src/",
sass: {
options: {
sourceMap: false,
outputStyle: 'compressed'
},
dist: {
files: {
'stylesheets/application.css': '<%= src %>sass/application.scss'
}
},
redmine_backlogs: {
files: {
'plugins/redmine_backlogs/global.css':
'<%= src %>sass/plugins/redmine_backlogs/global.scss',
'plugins/redmine_backlogs/master_backlog.css':
'<%= src %>sass/plugins/redmine_backlogs/master_backlog.scss',
'plugins/redmine_backlogs/statistics.css':
'<%= src %>sass/plugins/redmine_backlogs/statistics.scss',
'plugins/redmine_backlogs/taskboard.css':
'<%= src %>sass/plugins/redmine_backlogs/taskboard.scss',
'plugins/redmine_backlogs/jquery/jquery-ui.css':
'<%= src %>sass/plugins/redmine_backlogs/jquery/jquery-ui.scss',
'plugins/redmine_backlogs/jquery/jquery.multiselect.css':
'<%= src %>sass/plugins/redmine_backlogs/jquery/jquery.multiselect.scss',
'plugins/redmine_backlogs/jquery/jquery.qtip.css':
'<%= src %>sass/plugins/redmine_backlogs/jquery/jquery.qtip.scss'
}
}
},
uglify: {
build: {
src: [
'<%= src %>javascripts/modules/*.js',
'<%= src %>javascripts/theme.js'
],
dest: 'javascripts/theme.js'
}
},
watch: {
css: {
files: ['<%= src %>sass/**/*.scss'],
tasks: ['css']
},
js: {
files: ['<%= src %>javascripts/**/*.js'],
tasks: ['js']
}
}
});
grunt.loadNpmTasks('grunt-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks("grunt-contrib-uglify");
grunt.registerTask('css', ['sass']);
grunt.registerTask('js', ['uglify']);
grunt.registerTask('default', ['css', 'js']);
};
module.exports = function (grunt) {
grunt.initConfig({
src: 'src/',
sass: {
options: {
implementation: require('node-sass'),
sourceMap: false,
outputStyle: 'compressed'
},
theme: {
files: {
'stylesheets/application.css': '<%= src %>sass/application.scss'
}
},
plugins: {
files: [
{
expand: true,
cwd: '<%= src %>sass/plugins/',
src: '**/*.scss',
dest: 'plugins/',
ext: '.css',
extDot: 'last'
}
]
}
},
postcss: {
options: {
processors: [
require('autoprefixer')({ browsers: 'last 2 versions' })
]
},
all: {
src: [
'stylesheets/*.css',
'plugins/**/*.css'
]
}
},
uglify: {
theme: {
src: [
'<%= src %>javascripts/modules/*.js',
'<%= src %>javascripts/theme.js'
],
dest: 'javascripts/theme.js'
}
},
watch: {
css: {
files: ['<%= src %>sass/**/*.scss'],
tasks: ['css']
},
js: {
files: ['<%= src %>javascripts/**/*.js'],
tasks: ['js']
}
}
})
grunt.loadNpmTasks('grunt-sass')
grunt.loadNpmTasks('grunt-postcss')
grunt.loadNpmTasks('grunt-contrib-watch')
grunt.loadNpmTasks('grunt-contrib-uglify')
grunt.registerTask('css', ['sass', 'postcss'])
grunt.registerTask('js', ['uglify'])
grunt.registerTask('default', ['css', 'js'])
}

View File

@@ -2,9 +2,13 @@
A free Redmine theme for modern browsers.
![Screenshot](https://github.com/HolonGlobe/PurpleMine2/raw/master/screenshots/issues-list.png)
![The MIT License](https://img.shields.io/badge/license-MIT-584492.svg) [![Build Status](https://travis-ci.org/mrliptontea/PurpleMine2.svg?branch=master)](https://travis-ci.org/mrliptontea/PurpleMine2) [![Issues](https://img.shields.io/github/issues/mrliptontea/PurpleMine2.svg)](https://github.com/mrliptontea/PurpleMine2/issues) [![JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)
Compatible with Redmine 2.5+ and browsers: IE10+/Edge, latest Firefox and Google Chrome (others were not tested).
---
![Screenshot](https://github.com/mrliptontea/PurpleMine2/raw/master/screenshots/issues.png)
Compatible with Redmine 2.6+ and browsers: IE10+/Edge, latest Firefox and Google Chrome (others were not tested).
It's written in [SCSS]. It uses [normalize.css] and benefits from some parts of [Bootstrap][bootstrap-sass] like mixins, structure, and stuff.
@@ -20,7 +24,7 @@ It's written in [SCSS]. It uses [normalize.css] and benefits from some parts of
## How install it
To install PurpleMine, just download [.zip](https://github.com/HolonGlobe/PurpleMine2/archive/master.zip) and unpack it to your Redmine's `public/themes` folder.
To install PurpleMine, just download [.zip](https://github.com/mrliptontea/PurpleMine2/archive/master.zip) and unpack it to your Redmine's `public/themes` folder.
Then go to Redmine > Administration > Settings > Display and select PurpleMine2 from the list and save the changes.
@@ -34,21 +38,17 @@ Also, [Redmine Time Tracker][redmine_time_tracker] and [Redmine People][redmine_
If you want to customize PurpleMine to your needs, first, make sure that you have installed [node.js](http://nodejs.org/) and `npm` is available in your terminal.
If haven't yet, you need to install grunt:
npm install grunt-cli -g
Then, from the directory that contains PurpleMine run:
npm install
Now all the dependencies should be ready to use. Run one more command:
grunt watch
npm run watch
And now the grunt is watching for changes in files placed in `src/` folder. Just change what you need, and it'll run SASS preprocessor automatically.
And now the grunt is watching for changes in files placed in `src/` folder. Just change what you need, and it'll run Sass preprocessor automatically.
Regrettably, optional file include is not possible in SASS, so I would recommend creating a new file, e.g. `src/sass/_custom-variables.scss` and importing it a the beginning of the `application.scss` file. That way all the variables with the `!default` flag could be overridden.
Regrettably, optional file include is not possible in Sass, so I would recommend creating a new file, e.g. `src/sass/_custom-variables.scss` and importing it a the beginning of the `application.scss` file. That way all the variables with the `!default` flag could be overridden.
The path `src/sass/_custom-variables.scss` is added to `.gitignore` so it should make upgrading PurpleMine with keeping your changes rather painless, given that the only thing you changed in PurpleMine's source was adding this one line with `@import "custom-variables";`.
@@ -56,6 +56,58 @@ If you need to customize styles for [Redmine Backlogs][redmine_backlogs] remembe
## Changelog
v1.9.0 (2019-03-01):
* Fixed #42: override some styles from [RM+](http://rmplus.pro) plugins
* Merged #43: fixes for Redmine 3.3.2.devel
* Support for responsive menu and further changes for Redmine 3.3.2.devel (fixes #26)
* Improved styles for custom flash messages in wiki content (e.g. for [WikiNG](http://www.redmine.org/plugins/wiking) plugin)
* Introduce project tiles on projects list page (enabled by default, can be switched off by setting `$use-project-tiles` to `false`)
* Fixed #44: adjust width of the label column on the login form
* Merged #49: German translations
* Fixed #50: printed content on second page onwards was missing in Firefox
* Fixed #51: a plugin dropdown in top menu could be too narrow
* Fixed #52: delete watcher icon in the sidebar was missing
* Fixed #54: long checkbox lists will be scrollable
* Fixed #62: anchors won't scroll the page
* Fixed #69: fixed "remember me" checkbox layout on login page
* Fixed #78: files not visible on list in wiki when there is a lot of them
* Updated dependencies
* Fixed #81: top watchers checkboxes were not visible on Firefox
* Removed `checkbox` and `radio` mixins in favour of `check`
* Fixed #83: editor tabs layout in Redmine 4.0
v1.8.0 (2016-11-20):
* Fixed #19: missing text wrapping for long text custom fields
* Fixed #20: applied Font Awesome font-family for icons in Time Tracker overview
* Fixed duplicated pencil icon for Description in issue form in Redmine 3.1.2+
* Fixed #21: added styling for compatibility with layout changes in Redmine 3.2.0
* Fixed #23: set width for progress bars
* Fixed #25: proper styles for pagination
* Fixed #28: correct icon will be displayed for users that cannot edit notes in journal
* Fixed #30: styles will now compile with latest Sass
* Fixed #32, #33: improve @shawndibble's styles for new main menu styles in Redmine 3.3
* Various small visual tweaks
* Fixed #34: project breadcrumbs in the header should wrap nicely
* Fixed #35: `.icon-only` class should now display only icons, buttons with icons should de displayed correctly with Font-Awesome disabled
* Fixed #36: npm dependencies can be installed on production environments + update grunt to its latest version
* Fixed #37: added support for drag'n'drop re-ordering in issue statuses, roles, and trackers settings
* Fixed #38: corrected z-index for dropdown new item menu on backlogs page (thanks to @futaz, see PR #39)
* Changed indentation to 2 spaces (to match with Redmine's coding style)
* Introduced [autoprefixer](https://github.com/postcss/autoprefixer) via [PostCSS](http://postcss.org)
* Updated [scss-lint](https://github.com/brigade/scss-lint) rules
* Added [JavaScript Standard Style](http://standardjs.com)
v1.7.2 (2015-10-12):
* Fixed `.pagination` float in project members settings
* Lists' cells are aligned to center by default (as in Redmine's default theme)
v1.7.1 (2015-10-10):
+ Improved styling for [Stuff To Do][stuff_to_do] plugin
v1.7.0 (2015-09-25):
* Added styles for optgroup (Firefox only)
@@ -105,7 +157,7 @@ v1.4.0 (2015-04-10):
* Fixed #2: Make sure that `.sort` with Font Awesome icons won't have background image
* Fixed attachments div's layout for wiki pages
For more details, see [release v1.4.0](https://github.com/HolonGlobe/PurpleMine2/releases/tag/v1.4.0)
For more details, see [release v1.4.0](https://github.com/mrliptontea/PurpleMine2/releases/tag/v1.4.0)
v1.3.0 (2015-04-01):
@@ -162,4 +214,5 @@ Initial version
[bootstrap-sass]: https://github.com/twbs/bootstrap-sass
[redmine_backlogs]: https://github.com/backlogs/redmine_backlogs
[redmine_time_tracker]: https://github.com/hicknhack-software/redmine_time_tracker
[redmine_crm_people]: http://www.redminecrm.com/projects/people/
[redmine_crm_people]: http://www.redminecrm.com/projects/people/
[stuff_to_do]: https://github.com/raafael911/stuff_to_do_plugin

File diff suppressed because one or more lines are too long

3314
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{
"name": "PurpleMine2",
"description": "A free Redmine 2.5+ theme written in SCSS",
"description": "A free Redmine 2.6+ theme written in SCSS",
"keywords": [
"redmine",
"theme",
@@ -17,10 +17,30 @@
"url": "https://github.com/mrliptontea/PurpleMine2/issues"
},
"homepage": "https://github.com/mrliptontea/PurpleMine2",
"scripts": {
"build": "grunt",
"watch": "grunt watch",
"lint": "standard && scss-lint"
},
"dependencies": {
"autoprefixer": "^9.4.8",
"grunt": "^1.0.3",
"grunt-contrib-uglify": "^4.0.0",
"grunt-contrib-watch": "^1.1.0",
"grunt-postcss": "^0.9.0",
"grunt-sass": "^3.0.2",
"node-sass": "^4.11.0"
},
"devDependencies": {
"grunt": "^0.4.5",
"grunt-contrib-uglify": "^0.9.1",
"grunt-contrib-watch": "^0.6.1",
"grunt-sass": "^1.0.0"
"standard": "^12.0.1"
},
"standard": {
"globals": [
"$",
"localStorage"
],
"ignore": [
"/javascripts"
]
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
.ui-multiselect{padding:2px 0 2px 4px;text-align:left}.ui-multiselect span.ui-icon{float:right}.ui-multiselect-single .ui-multiselect-checkboxes input{position:absolute !important;top:auto !important;left:-9999px}.ui-multiselect-single .ui-multiselect-checkboxes label{padding:5px !important}.ui-multiselect-header{margin-bottom:3px;padding:3px}.ui-multiselect-header ul{font-size:0.92em}.ui-multiselect-header ul li{padding:0 10px 0 0;float:left}.ui-multiselect-header a{text-decoration:none}.ui-multiselect-header a:hover{text-decoration:underline}.ui-multiselect-header span.ui-icon{float:left}.ui-multiselect-header li.ui-multiselect-close{padding-right:0;float:right;text-align:right}.ui-multiselect-menu{display:none;position:absolute;padding:3px;text-align:left;z-index:10000;box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23)}.ui-multiselect-checkboxes{position:relative;padding-right:2px;overflow-y:scroll}.ui-multiselect-checkboxes input[type="checkbox"]{top:0;margin:3px 0 0 -20px;float:left}.ui-multiselect-checkboxes input[type="checkbox"]:focus{outline:none}.ui-multiselect-checkboxes label{display:block;padding:3px 1px;padding-left:26px;border:1px solid transparent;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ui-multiselect-checkboxes label input{position:relative;top:1px}.ui-multiselect-checkboxes li{clear:both;font-size:0.92em}.ui-multiselect-checkboxes li.ui-multiselect-optgroup-label{margin-bottom:2px;border-bottom:1px solid #ccc;font-weight:bold;text-align:center}.ui-multiselect-checkboxes li.ui-multiselect-optgroup-label a{display:block;margin:1px 0;padding:3px;text-decoration:none}* html .ui-multiselect-checkboxes label{border:0 none}
.ui-multiselect{padding:2px 0 2px 4px;text-align:left}.ui-multiselect span.ui-icon{float:right}.ui-multiselect-single .ui-multiselect-checkboxes input{position:absolute !important;top:auto !important;left:-9999px}.ui-multiselect-single .ui-multiselect-checkboxes label{padding:5px !important}.ui-multiselect-header{margin-bottom:3px;padding:3px}.ui-multiselect-header ul{font-size:.92em}.ui-multiselect-header ul li{padding:0 10px 0 0;float:left}.ui-multiselect-header a{text-decoration:none}.ui-multiselect-header a:hover{text-decoration:underline}.ui-multiselect-header span.ui-icon{float:left}.ui-multiselect-header li.ui-multiselect-close{padding-right:0;float:right;text-align:right}.ui-multiselect-menu{-webkit-box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);display:none;position:absolute;z-index:10000;padding:3px;text-align:left}.ui-multiselect-checkboxes{position:relative;padding-right:2px;overflow-y:scroll}.ui-multiselect-checkboxes input[type="checkbox"]{top:0;margin:3px 0 0 -20px;float:left}.ui-multiselect-checkboxes input[type="checkbox"]:focus{outline:none}.ui-multiselect-checkboxes label{display:block;padding:3px 1px;padding-left:26px;border:1px solid transparent;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ui-multiselect-checkboxes label input{position:relative;top:1px}.ui-multiselect-checkboxes li{clear:both;font-size:.92em}.ui-multiselect-checkboxes li.ui-multiselect-optgroup-label{margin-bottom:2px;border-bottom:1px solid #ccc;font-weight:bold;text-align:center}.ui-multiselect-checkboxes li.ui-multiselect-optgroup-label a{display:block;margin:1px 0;padding:3px;text-decoration:none}* html .ui-multiselect-checkboxes label{border:0 none}

View File

@@ -1 +1 @@
.qtip{position:absolute;top:-31000px;left:-31000px;width:auto;max-width:500px;outline:none}.ui-tooltip-content{position:relative;padding:10px;border:1px solid #ccc;background-color:#fff;color:#555;font-size:0.92em;text-align:left;word-wrap:break-word;box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);overflow:hidden}.ui-tooltip-tip{border-color:#ccc;background-color:#fff}.ui-tooltip-tip{position:absolute;margin:0 auto;border:0 none;background:transparent;overflow:hidden;z-index:10}
.qtip{position:absolute;top:-31000px;left:-31000px;width:auto;max-width:500px;outline:none}.ui-tooltip-content{-webkit-box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);position:relative;padding:10px;overflow:hidden;border:1px solid #ccc;background-color:#fff;color:#555;font-size:.92em;text-align:left;word-wrap:break-word}.ui-tooltip-tip{border-color:#ccc;background-color:#fff}.ui-tooltip-tip{position:absolute;z-index:10;margin:0 auto;overflow:hidden;border:0 none;background:transparent}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 178 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 200 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

BIN
screenshots/issues.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

View File

@@ -1,98 +1,107 @@
var PurpleMine = PurpleMine || {};
var PurpleMine = PurpleMine || {} // eslint-disable-line no-use-before-define
PurpleMine.HistoryTabs = (function()
{
"use strict";
PurpleMine.HistoryTabs = (function () {
'use strict'
var self;
var translations = {
en: {
all : "All",
notes : "Notes",
details: "Changes"
},
pl: {
all : "Wszystko",
notes : "Notatki",
details: "Zmiany"
}
};
var instance
var translations = {
en: {
all: 'All',
notes: 'Notes',
details: 'Changes'
},
ro: {
all: 'Toate',
notes: 'Note',
details: 'Schimbări'
},
fr: {
all: 'Tout',
notes: 'Remarques',
details: 'Changements'
},
pl: {
all: 'Wszystko',
notes: 'Notatki',
details: 'Zmiany'
},
de: {
all: 'Alles',
notes: 'Kommentare',
details: 'Änderungen'
},
ja: {
all: 'すべて',
notes: '注記',
details: '変更'
}
}
function HistoryTabs()
{
if (self)
{
return self;
}
self = this;
this.$tabsContainer = null;
this.$tabs = null;
this.$history = $("#history");
this.lang = document.documentElement.lang;
if (typeof translations[this.lang] === "undefined")
{
this.lang = "en";
}
this._ = translations[this.lang];
if (this.$history.length > 0)
{
buildTabs();
markFirstOfTypes();
}
function HistoryTabs () {
if (instance) {
return instance
}
function buildTabs()
{
var html = "",
liStart = "<li><a href=\"javascript:;\" class=\"",
liMid = "history-tab\" data-tab=\"",
liEnd = "</a></li>";
instance = this
html += "<div class=\"tabs\"><ul>";
html += liStart + "selected " + liMid + "all\">" + self._.all + liEnd;
html += liStart + liMid + "notes\">" + self._.notes + liEnd;
html += liStart + liMid + "details\">" + self._.details + liEnd;
html += "</ul></div>";
this.$tabsContainer = null
this.$tabs = null
this.$history = $('#history')
this.lang = document.documentElement.lang
self.$tabsContainer = $(html);
$("#history > h3").after(self.$tabsContainer);
self.$tabs = self.$tabsContainer.find(".history-tab");
self.$tabs.on("click", tabClick);
if (typeof translations[this.lang] === 'undefined') {
this.lang = 'en'
}
function markFirstOfTypes()
{
self.$history.find(".has-notes:first").addClass("first-of-notes");
self.$history.find(".has-details:first").addClass("first-of-details");
this._ = translations[this.lang]
if (this.$history.length > 0) {
buildTabs()
markFirstOfTypes()
}
}
var tabClick = function()
{
var $this = $(this),
tab = $this.attr("data-tab");
function buildTabs () {
var html = ''
var liStart = '<li><a href="javascript:;" class="'
var liMid = 'history-tab" data-tab="'
var liEnd = '</a></li>'
self.$tabs.removeClass("selected");
$this.addClass("selected");
html += '<div class="tabs"><ul>'
html += liStart + 'selected ' + liMid + 'all">' + instance._.all + liEnd
html += liStart + liMid + 'notes">' + instance._.notes + liEnd
html += liStart + liMid + 'details">' + instance._.details + liEnd
html += '</ul></div>'
self.$history
.removeClass("hide-details")
.removeClass("hide-notes");
instance.$tabsContainer = $(html)
$('#history > h3').after(instance.$tabsContainer)
if ("notes" === tab)
{
self.$history.addClass("hide-details");
}
else if ("details" === tab)
{
self.$history.addClass("hide-notes");
}
};
instance.$tabs = instance.$tabsContainer.find('.history-tab')
instance.$tabs.on('click', tabClick)
}
return HistoryTabs;
}());
function markFirstOfTypes () {
instance.$history.find('.has-notes:first').addClass('first-of-notes')
instance.$history.find('.has-details:first').addClass('first-of-details')
}
var tabClick = function () {
var $this = $(this)
var tab = $this.attr('data-tab')
instance.$tabs.removeClass('selected')
$this.addClass('selected')
instance.$history
.removeClass('hide-details')
.removeClass('hide-notes')
if (tab === 'notes') {
instance.$history.addClass('hide-details')
} else if (tab === 'details') {
instance.$history.addClass('hide-notes')
}
}
return HistoryTabs
}())

View File

@@ -1,142 +1,128 @@
var PurpleMine = PurpleMine || {};
var PurpleMine = PurpleMine || {} // eslint-disable-line no-use-before-define
PurpleMine.MenuCollapse = (function()
{
"use strict";
PurpleMine.MenuCollapse = (function () {
'use strict'
var self;
var translations = {
en: {
topMenuToggler : "Expand/collapse top menu",
mainMenuToggler: "Expand/collapse main menu"
},
pl: {
topMenuToggler : "Zwiń/rozwiń górne menu",
mainMenuToggler: "Zwiń/rozwiń główne menu"
}
};
var instance
var translations = {
en: {
topMenuToggler: 'Expand/collapse top menu'
},
ro: {
topMenuToggler: 'Deschide/închide meniul de sus'
},
fr: {
topMenuToggler: 'Développer/réduire le menu principal'
},
pl: {
topMenuToggler: 'Zwiń/rozwiń górne menu'
},
de: {
topMenuToggler: 'Ein-/Ausklappen Hauptmenu'
},
ja: {
topMenuToggler: 'トップメニューの展開/折りたたみ'
}
}
function MenuCollapse()
{
if (self)
{
return self;
}
self = this;
this.lang = document.documentElement.lang;
if (typeof translations[this.lang] === "undefined")
{
this.lang = "en";
}
this._ = translations[this.lang];
this.menus = {
top: {
$el: $("#top-menu")
},
main: {
$el: $("#main-menu")
}
};
for (var menu in this.menus)
{
if (this.menus.hasOwnProperty(menu) &&
this.menus[menu].$el.length > 0)
{
handleMenu(menu);
}
}
function MenuCollapse () {
if (instance) {
return instance
}
function handleMenu(menu)
{
if ("none" === self.menus[menu].$el.css("maxHeight"))
{
return false;
}
instance = this
self.menus[menu].collapsed = true;
this.lang = document.documentElement.lang
if (window.localStorage)
{
self.menus[menu].collapsed =
null === localStorage.getItem(getMenuStorageKey(menu));
}
buildToggleButton(menu);
if (false === self.isCollapsed(menu))
{
self.expandMenu(menu);
}
if (typeof translations[this.lang] === 'undefined') {
this.lang = 'en'
}
function getMenuStorageKey(menu)
{
return "PurpleMine:" + menu + "MenuExpanded";
this._ = translations[this.lang]
this.menus = {
top: {
$el: $('#top-menu')
}
}
function buildToggleButton(menu)
{
var togglerClass = menu + "-menu-toggler",
togglerLabel = self._[menu + "MenuToggler"],
togglerHtml;
for (var menu in this.menus) {
if (this.menus.hasOwnProperty(menu) && this.menus[menu].$el.length > 0) {
handleMenu(menu)
}
}
}
togglerHtml = "<a href=\"javascript:;\" class=\"" + togglerClass +
"\" title=\"" + togglerLabel + "\"></a>";
self.menus[menu].$toggler = $(togglerHtml);
self.menus[menu].$el.prepend(self.menus[menu].$toggler);
self.menus[menu].$toggler.on("click", { menu: menu }, self.toggleMenu);
function handleMenu (menu) {
if (instance.menus[menu].$el.css('maxHeight') === 'none') {
return false
}
MenuCollapse.prototype.toggleMenu = function(event)
{
var menu = event.data.menu || "";
instance.menus[menu].collapsed = true
if (self.isCollapsed(menu))
{
self.expandMenu(menu);
}
else
{
self.collapseMenu(menu);
}
};
if (window.localStorage) {
instance.menus[menu].collapsed =
localStorage.getItem(getMenuStorageKey(menu)) === null
}
MenuCollapse.prototype.isCollapsed = function(menu)
{
return this.menus[menu].collapsed;
};
buildToggleButton(menu)
MenuCollapse.prototype.expandMenu = function(menu)
{
this.menus[menu].$el.addClass("expanded");
this.menus[menu].$toggler.addClass("expanded");
this.menus[menu].collapsed = false;
if (instance.isCollapsed(menu) === false) {
instance.expandMenu(menu)
}
}
if (window.localStorage)
{
localStorage.setItem(getMenuStorageKey(menu), "x");
}
};
function getMenuStorageKey (menu) {
return 'PurpleMine:' + menu + 'MenuExpanded'
}
MenuCollapse.prototype.collapseMenu = function(menu)
{
this.menus[menu].$el.removeClass("expanded");
this.menus[menu].$toggler.removeClass("expanded");
this.menus[menu].collapsed = true;
function buildToggleButton (menu) {
var togglerClass = menu + '-menu-toggler'
var togglerLabel = instance._[menu + 'MenuToggler']
var togglerHtml = '<a href="javascript:;" class="' +
togglerClass +
'" title="' +
togglerLabel +
'"></a>'
instance.menus[menu].$toggler = $(togglerHtml)
if (window.localStorage)
{
localStorage.removeItem(getMenuStorageKey(menu));
}
};
instance.menus[menu].$el.prepend(instance.menus[menu].$toggler)
instance.menus[menu].$toggler.on('click', { menu: menu }, instance.toggleMenu)
}
return MenuCollapse;
}());
MenuCollapse.prototype.toggleMenu = function (event) {
var menu = event.data.menu || ''
if (instance.isCollapsed(menu)) {
instance.expandMenu(menu)
} else {
instance.collapseMenu(menu)
}
}
MenuCollapse.prototype.isCollapsed = function (menu) {
return this.menus[menu].collapsed
}
MenuCollapse.prototype.expandMenu = function (menu) {
this.menus[menu].$el.addClass('expanded')
this.menus[menu].$toggler.addClass('expanded')
this.menus[menu].collapsed = false
if (window.localStorage) {
localStorage.setItem(getMenuStorageKey(menu), 'x')
}
}
MenuCollapse.prototype.collapseMenu = function (menu) {
this.menus[menu].$el.removeClass('expanded')
this.menus[menu].$toggler.removeClass('expanded')
this.menus[menu].collapsed = true
if (window.localStorage) {
localStorage.removeItem(getMenuStorageKey(menu))
}
}
return MenuCollapse
}())

View File

@@ -1,157 +1,141 @@
var PurpleMine = PurpleMine || {};
var PurpleMine = PurpleMine || {} // eslint-disable-line no-use-before-define
/* global Raphael: false, revisionGraph: true */
/* jshint camelcase: false */
/* jshint maxstatements: false */
/* jshint maxlen: 160 */
PurpleMine.RevisionGraph = function(holder, commits_hash, graph_space)
{
"use strict";
PurpleMine.RevisionGraph = function (holder, commitsHash, graphSpace) {
'use strict'
var XSTEP = 20,
CIRCLE_INROW_OFFSET = 17;
var commits_by_scmid = commits_hash,
commits = $.map(commits_by_scmid, function(val){return val;});
var max_rdmid = commits.length - 1;
var commit_table_rows = $("table.changesets tr.changeset");
var XSTEP = 20
var CIRCLE_INROW_OFFSET = 17
var commitsByScmid = commitsHash
var commits = $.map(commitsByScmid, function (val) { return val })
var maxRdmid = commits.length - 1
var commitTableRows = $('table.changesets tr.changeset')
// create graph
if (revisionGraph !== null)
{
revisionGraph.clear();
// create graph
if (revisionGraph !== null) {
revisionGraph.clear()
} else {
revisionGraph = new Raphael(holder)
}
var top = revisionGraph.set()
// init dimensions
var graphXOffset = commitTableRows.first().find('td').first().position().left - $(holder).position().left
var graphYOffset = $(holder).position().top
var graphRightSide = graphXOffset + (graphSpace + 1) * XSTEP
var graphBottom = commitTableRows.last().position().top + commitTableRows.last().height() - graphYOffset
revisionGraph.setSize(graphRightSide, graphBottom)
// init colors
var colors = [
'#e74c3c',
'#584492',
'#019851',
'#ed820c',
'#4183c4'
]
// get more colors if needed
if (graphSpace >= colors.length) {
Raphael.getColor.reset()
for (var k = 0; k <= graphSpace; k++) {
colors.push(Raphael.getColor(0.9))
}
else
{
revisionGraph = new Raphael(holder);
}
var parentCommit
var x, y, parentX, parentY
var path, title
var revisionDotOverlay
$.each(commits, function (index, commit) {
if (!commit.hasOwnProperty('space')) {
commit.space = 0
}
var top = revisionGraph.set();
y = commitTableRows.eq(maxRdmid - commit.rdmid).position().top - graphYOffset + CIRCLE_INROW_OFFSET
x = graphXOffset + XSTEP / 2 + XSTEP * commit.space
// init dimensions
var graph_x_offset = commit_table_rows.first().find("td").first().position().left - $(holder).position().left,
graph_y_offset = $(holder).position().top,
graph_right_side = graph_x_offset + (graph_space + 1) * XSTEP,
graph_bottom = commit_table_rows.last().position().top + commit_table_rows.last().height() - graph_y_offset;
revisionGraph
.circle(x, y, 3.5)
.attr({
fill: colors[commit.space],
stroke: 'none'
})
.toFront()
revisionGraph.setSize(graph_right_side, graph_bottom);
// paths to parents
$.each(commit.parent_scmids, function (index, parentScmid) {
parentCommit = commitsByScmid[parentScmid]
// init colors
var colors = [
"#e74c3c",
"#584492",
"#019851",
"#ed820c",
"#4183c4"
];
// get more colors if needed
if (graph_space >= colors.length)
{
Raphael.getColor.reset();
for (var k = 0; k <= graph_space; k++)
{
colors.push(Raphael.getColor(0.9));
}
}
var parent_commit;
var x, y, parent_x, parent_y;
var path, title;
var revision_dot_overlay;
$.each(commits, function(index, commit)
{
if (!commit.hasOwnProperty("space"))
{
commit.space = 0;
if (parentCommit) {
if (!parentCommit.hasOwnProperty('space')) {
parentCommit.space = 0
}
y = commit_table_rows.eq(max_rdmid - commit.rdmid).position().top - graph_y_offset + CIRCLE_INROW_OFFSET;
x = graph_x_offset + XSTEP / 2 + XSTEP * commit.space;
parentY = commitTableRows.eq(maxRdmid - parentCommit.rdmid).position().top - graphYOffset + CIRCLE_INROW_OFFSET
parentX = graphXOffset + XSTEP / 2 + XSTEP * parentCommit.space
revisionGraph.circle(x, y, 3.5)
.attr({
fill: colors[commit.space],
stroke: "none"
}).toFront();
// paths to parents
$.each(commit.parent_scmids, function(index, parent_scmid)
{
parent_commit = commits_by_scmid[parent_scmid];
if (parent_commit)
{
if (!parent_commit.hasOwnProperty("space"))
{
parent_commit.space = 0;
}
parent_y = commit_table_rows.eq(max_rdmid - parent_commit.rdmid).position().top - graph_y_offset + CIRCLE_INROW_OFFSET;
parent_x = graph_x_offset + XSTEP / 2 + XSTEP * parent_commit.space;
if (parent_commit.space === commit.space)
{
// vertical path
path = revisionGraph.path([
"M", x, y,
"V", parent_y]);
}
else
{
// path to a commit in a different branch (Bezier curve)
path = revisionGraph.path([
"M", x, y,
"C", x, y, x, y + (parent_y - y) / 2, x + (parent_x - x) / 2, y + (parent_y - y) / 2,
"C", x + (parent_x - x) / 2, y + (parent_y - y) / 2, parent_x, parent_y-(parent_y-y)/2, parent_x, parent_y
]);
}
}
else
{
// vertical path ending at the bottom of the revisionGraph
path = revisionGraph.path([
"M", x, y,
"V", graph_bottom
]);
}
path.attr({stroke: colors[commit.space], "stroke-width": 1.5}).toBack();
});
revision_dot_overlay = revisionGraph.circle(x, y, 10);
revision_dot_overlay
.attr({
fill : "#000",
opacity: 0,
cursor : "pointer",
href : commit.href
});
if (commit.refs !== null && commit.refs.length > 0)
{
title = document.createElementNS(revisionGraph.canvas.namespaceURI, "title");
title.appendChild(document.createTextNode(commit.refs));
revision_dot_overlay.node.appendChild(title);
if (parentCommit.space === commit.space) {
// vertical path
path = revisionGraph.path([
'M', x, y,
'V', parentY])
} else {
// path to a commit in a different branch (Bezier curve)
path = revisionGraph.path([
'M', x, y,
'C', x, y, x, y + (parentY - y) / 2, x + (parentX - x) / 2, y + (parentY - y) / 2,
'C', x + (parentX - x) / 2, y + (parentY - y) / 2, parentX, parentY - (parentY - y) / 2, parentX, parentY
])
}
} else {
// vertical path ending at the bottom of the revisionGraph
path = revisionGraph.path([
'M', x, y,
'V', graphBottom
])
}
top.push(revision_dot_overlay);
});
path
.attr({
stroke: colors[commit.space],
'stroke-width': 1.5
})
.toBack()
})
top.toFront();
};
revisionDotOverlay = revisionGraph.circle(x, y, 10)
revisionDotOverlay
.attr({
fill: '#000',
opacity: 0,
cursor: 'pointer',
href: commit.href
})
$(function()
{
"use strict";
if (window.drawRevisionGraph)
{
// override Redmine's function
window.drawRevisionGraph = PurpleMine.RevisionGraph;
// make graph redraw itself
$(window).resize();
if (commit.refs !== null && commit.refs.length > 0) {
title = document.createElementNS(revisionGraph.canvas.namespaceURI, 'title')
title.appendChild(document.createTextNode(commit.refs))
revisionDotOverlay.node.appendChild(title)
}
});
top.push(revisionDotOverlay)
})
top.toFront()
}
$(function () {
'use strict'
if (window.drawRevisionGraph) {
// override Redmine's function
window.drawRevisionGraph = PurpleMine.RevisionGraph
// make graph redraw itself
$(window).resize()
}
})

View File

@@ -1,154 +1,146 @@
var PurpleMine = PurpleMine || {};
var PurpleMine = PurpleMine || {} // eslint-disable-line no-use-before-define
PurpleMine.SidebarToggler = (function()
{
"use strict";
PurpleMine.SidebarToggler = (function () {
'use strict'
var self;
var translations = {
en: {
toggler: "Toggle sidebar"
},
pl: {
toggler: "Pokaż/ukryj panel boczny"
}
};
var instance
var translations = {
en: {
toggler: 'Toggle sidebar'
},
ro: {
toggler: 'Deschide/închide bara laterală'
},
fr: {
toggler: 'Basculer la barre latérale'
},
pl: {
toggler: 'Pokaż/ukryj panel boczny'
},
ja: {
toggler: 'サイドバーの切り替え'
}
}
function SidebarToggler()
{
if (self)
{
return self;
}
self = this;
this.sidebarVisible = true;
this.sidebarHiding = null;
this.$toggler = null;
this.$main = $("#main");
this.$sidebar = $("#sidebar");
this.lang = document.documentElement.lang;
if (typeof translations[this.lang] === "undefined")
{
this.lang = "en";
}
this._ = translations[this.lang];
// Fix issue with context menu position
if ("relative" === this.$main.css("position"))
{
$("#context-menu").appendTo("#wrapper3");
}
handleSidebar();
function SidebarToggler () {
if (instance) {
return instance
}
function handleSidebar()
{
if (window.localStorage)
{
self.sidebarVisible =
null === localStorage.getItem("PurpleMine:sidebarHidden");
}
instance = this
if (self.$sidebar.length > 0 &&
false === self.$main.hasClass("nosidebar"))
{
buildButton();
bindKeyHandler();
this.sidebarVisible = true
this.sidebarHiding = null
this.$toggler = null
this.$main = $('#main')
this.$sidebar = $('#sidebar')
this.lang = document.documentElement.lang
if (false === self.sidebarVisible)
{
self.hideSidebar(true);
}
}
if (typeof translations[this.lang] === 'undefined') {
this.lang = 'en'
}
function bindKeyHandler()
{
var body = document.getElementsByTagName("body")[0];
this._ = translations[this.lang]
window.onkeydown = function(event)
{
if (body === event.target && 83 === event.keyCode && // "s"
false === event.ctrlKey && false === event.altKey &&
false === event.shiftKey)
{
self.toggleSidebar();
}
};
// Fix issue with context menu position
if (this.$main.css('position') === 'relative') {
$(window).load(function () {
$('#context-menu').appendTo('#wrapper3')
})
}
function buildButton()
{
var togglerClass = "sidebar-toggler",
togglerHtml;
handleSidebar()
}
togglerHtml = "<a href=\"javascript:;\" class=\"" + togglerClass +
"\" title=\"" + self._.toggler + "\"></a>";
self.$toggler = $(togglerHtml);
self.$main.append(self.$toggler);
self.$toggler.on("click", self.toggleSidebar);
function handleSidebar () {
if (window.localStorage) {
instance.sidebarVisible =
localStorage.getItem('PurpleMine:sidebarHidden') === null
}
SidebarToggler.prototype.toggleSidebar = function()
{
if (self.sidebarVisible)
{
self.hideSidebar();
}
else
{
self.showSidebar();
}
};
if (
instance.$sidebar.length > 0 &&
instance.$main.hasClass('nosidebar') === false
) {
buildButton()
bindKeyHandler()
SidebarToggler.prototype.hideSidebar = function(immediate)
{
if (true === immediate)
{
this.$sidebar.addClass("sidebar-hiding sidebar-hidden");
}
else
{
this.$sidebar.addClass("sidebar-hiding");
this.sidebarHiding = setTimeout(function sidebarTimeout()
{
self.$sidebar.addClass("sidebar-hidden");
}, 500);
}
if (instance.sidebarVisible === false) {
instance.hideSidebar(true)
}
}
}
this.$toggler.addClass("sidebar-hidden");
this.sidebarVisible = false;
function bindKeyHandler () {
var body = document.getElementsByTagName('body')[0]
if (window.localStorage)
{
localStorage.setItem("PurpleMine:sidebarHidden", "x");
}
};
window.onkeydown = function (event) {
if (
body === event.target &&
event.keyCode === 83 && // "s"
event.ctrlKey === false &&
event.altKey === false &&
event.shiftKey === false
) {
instance.toggleSidebar()
}
}
}
SidebarToggler.prototype.showSidebar = function()
{
clearTimeout(this.sidebarHiding);
function buildButton () {
var togglerClass = 'sidebar-toggler'
var togglerHtml = '<a href="javascript:;" class="' +
togglerClass +
'" title="' +
instance._.toggler +
'"></a>'
instance.$toggler = $(togglerHtml)
self.$sidebar.removeClass("sidebar-hidden");
setTimeout(function sidebarTimeout()
{
self.$sidebar.removeClass("sidebar-hiding");
}, 50);
instance.$main.append(instance.$toggler)
instance.$toggler.on('click', instance.toggleSidebar)
}
this.$toggler.removeClass("sidebar-hidden");
this.sidebarVisible = true;
SidebarToggler.prototype.toggleSidebar = function () {
if (instance.sidebarVisible) {
instance.hideSidebar()
} else {
instance.showSidebar()
}
}
if (window.localStorage)
{
localStorage.removeItem("PurpleMine:sidebarHidden");
}
};
SidebarToggler.prototype.hideSidebar = function (immediate) {
if (immediate === true) {
this.$sidebar.addClass('sidebar-hiding sidebar-hidden')
} else {
this.$sidebar.addClass('sidebar-hiding')
this.sidebarHiding = setTimeout(function sidebarTimeout () {
instance.$sidebar.addClass('sidebar-hidden')
}, 500)
}
return SidebarToggler;
}());
this.$toggler.addClass('sidebar-hidden')
this.sidebarVisible = false
if (window.localStorage) {
localStorage.setItem('PurpleMine:sidebarHidden', 'x')
}
}
SidebarToggler.prototype.showSidebar = function () {
clearTimeout(this.sidebarHiding)
instance.$sidebar.removeClass('sidebar-hidden')
setTimeout(function sidebarTimeout () {
instance.$sidebar.removeClass('sidebar-hiding')
}, 50)
this.$toggler.removeClass('sidebar-hidden')
this.sidebarVisible = true
if (window.localStorage) {
localStorage.removeItem('PurpleMine:sidebarHidden')
}
}
return SidebarToggler
}())

View File

@@ -1,9 +1,9 @@
$(function()
{
/* global PurpleMine */
"use strict";
$(function () {
/* global PurpleMine */
'use strict'
new PurpleMine.SidebarToggler();
new PurpleMine.HistoryTabs();
new PurpleMine.MenuCollapse();
});
/* eslint-disable no-new */
new PurpleMine.SidebarToggler()
new PurpleMine.HistoryTabs()
new PurpleMine.MenuCollapse()
})

View File

@@ -5,11 +5,8 @@
@import "mixins/center-block";
@import "mixins/clearfix";
@import "mixins/forms";
@import "mixins/gradients";
@import "mixins/image";
@import "mixins/opacity";
@import "mixins/text-overflow";
@import "mixins/vendor-prefixes";
@import "mixins/issues";
@import "mixins/link-variant";

View File

@@ -17,11 +17,11 @@ $use-gravatars: true !default;
$use-font-awesome: true !default;
$use-logo: false !default;
$use-retina-logo: false !default;
$use-project-tiles: true !default;
$issue-subject-large: true !default;
$enable-sidebar-toggler: true !default;
$wiki-page-more-vertical-space: true !default;
$top-menu-collapse: false !default;
$main-menu-collapse: false !default;
//== Colors
@@ -106,6 +106,7 @@ $headings-anchor-color-active: $gray-light !default;
$wiki-text: #333 !default;
$wiki-font-size: 16px !default;
$wiki-line-height: 1.6 !default;
$wiki-preview-bg: #fcfcfc !default;
$toc-active-link: darken($link-color, 10%) !default;
$toc-active-link-hover: darken($toc-active-link, 10%) !default;
@@ -144,6 +145,7 @@ $component-active-border: $brand-primary !default;
$font-size-list: .92em !default;
$collapsible-animation-time: .3s !default;
$collapsible-max-height: 10000px !default;
//== Tables
@@ -202,34 +204,34 @@ $tracker-default-bg: #668 !default;
$tracker-default-text: $brand-text !default;
$tracker-default-colors-map: (
1: (
background: $brand-danger,
color: $brand-text
),
2: (
background: $brand-info,
color: $brand-text
),
3: (
background: $brand-success,
color: $brand-text
),
4: (
background: $brand-primary,
color: $brand-text
),
5: (
background: $brand-warning,
color: $brand-text
),
6: (
background: mix($brand-success, $brand-info, 50%),
color: $brand-text
),
7: (
background: mix($brand-primary, $brand-warning, 50%),
color: $brand-text
)
1: (
background: $brand-danger,
color: $brand-text
),
2: (
background: $brand-info,
color: $brand-text
),
3: (
background: $brand-success,
color: $brand-text
),
4: (
background: $brand-primary,
color: $brand-text
),
5: (
background: $brand-warning,
color: $brand-text
),
6: (
background: mix($brand-success, $brand-info, 50%),
color: $brand-text
),
7: (
background: mix($brand-primary, $brand-warning, 50%),
color: $brand-text
)
) !default;
$tracker-custom-colors-map: () !default;
$tracker-colors-map: map-merge($tracker-default-colors-map, $tracker-custom-colors-map);
@@ -249,6 +251,7 @@ $diff-in-bg-light: rgba($diff-in-bg, .3) !default;
//== Journal changes
//
$journal-old-value-color: #430 !default;
$journal-old-value-bg: rgba(#ffeaaa, .3) !default;
$journal-new-value-color: #350 !default;
@@ -271,6 +274,7 @@ $changeset-deleted-color: $brand-danger !default;
$btn-font-weight: normal !default;
$btn-padding-vertical: 3px !default;
$btn-padding-horizontal: 12px !default;
$btn-padding-horizontal-small: 8px !default;
$btn-link-color: $link-color !default;
$btn-link-bg: $body-bg !default;
@@ -310,7 +314,9 @@ $input-border: #ccc !default;
$input-border-radius: $border-radius-small !default;
$input-border-radius-large: $border-radius-large !default;
$input-border-focus: #51a7e8 !default;
$input-border-focus: $brand-primary !default;
$input-border-focus-alpha: .6 !default;
$input-shadow-focus-alpha: .2 !default;
$input-color-placeholder: #999 !default;
$input-padding-vertical: $btn-padding-vertical !default;
@@ -325,6 +331,12 @@ $label-space: 10px !default;
$legend-color: $gray-dark !default;
$legend-border-color: #e5e5e5 !default;
$check-input-gutter: 20px !default;
$check-input-margin-vertical: 3px !default;
$check-input-margin-horizontal: 8px !default;
$check-list-max-height: 20 * $line-height-computed;
$check-list-offset-top: $input-padding-vertical + 1px;
//== Top
//
@@ -343,6 +355,24 @@ $header-padding-horizontal: $padding-side !default;
$header-title-size: $font-size-h3 !default;
$header-title-line-height: $line-height-computed * 1.5 !default;
$responsive-header-height: 54px !default;
$flyout-menu-bg: darken($header-bg, 15%) !default;
$flyout-menu-text: #fff !default;
$flyout-menu-link: #fff !default;
$flyout-menu-link-active-bg: $header-bg !default;
$flyout-menu-link-active: #fff !default;
$flyout-menu-header-bg: darken($header-bg, 25%) !default;
$flyout-menu-header-border: darken($header-bg, 25%) !default;
$flyout-menu-header-text: #fff !default;
$quick-search-width: 200px !default;
$quick-search-border: darken($header-bg, 15%) !default;
$quick-search-border-focus: lighten($header-bg, 25%) !default;
$quick-search-box-width: 300px !default;
$quick-search-dropdown-bg: $body-bg !default;
$quick-search-dropdown-border: $gray-lighter !default;
$logo-image-width: 60px !default;
$logo-image-height: 40px !default;
$logo-position-horizontal: $header-padding-vertical !default;
@@ -350,6 +380,7 @@ $logo-position-vertical: center !default;
$logo-space: floor($header-padding-vertical / 2) !default;
$main-menu-bg: $gray-lightest !default;
$main-menu-bg-hover: $gray-lightest !default;
$main-menu-link: $gray-darker !default;
$main-menu-link-active: #000 !default;
$main-menu-border: $gray-lighter !default;
@@ -358,6 +389,7 @@ $main-menu-shadow-width: 3px !default;
$main-menu-shadow-active: $brand-primary !default;
$main-menu-padding-vertical: $padding-large-vertical !default;
$main-menu-padding-horizontal: 5px !default;
$main-menu-dropdown-bg: lighten($main-menu-bg, 3%);
//== Pagination
@@ -367,17 +399,21 @@ $pagination-padding-vertical: $btn-padding-vertical !default;
$pagination-padding-horizontal: 10px !default;
$pagination-color: $link-color !default;
$pagination-bg: #fff !default;
$pagination-bg: #fafafa !default;
$pagination-border: #ddd !default;
$pagination-hover-color: $link-hover-color !default;
$pagination-hover-bg: $gray-lightest !default;
$pagination-hover-border: #ddd !default;
$pagination-hover-border: #bbb !default;
$pagination-active-color: #fff !default;
$pagination-active-bg: $brand-primary !default;
$pagination-active-border: $brand-primary !default;
$pagination-inactive-color: #ccc !default;
$pagination-inactive-bg: #fff !default;
$pagination-inactive-border: #eee !default;
//== Tabs
//
@@ -438,9 +474,11 @@ $progress-bar-info-bg: lighten($brand-info, 20%) !default;
//== Panels
//
$panel-body-padding: 15px !default;
$panel-body-padding-vertical: 15px !default;
$panel-body-padding-horizontal: 15px !default;
$panel-body-padding: $panel-body-padding-vertical $panel-body-padding-horizontal !default;
$panel-color: #555 !default;
$panel-bg: #f5f5f5 !default;
$panel-bg: #f9f9f9 !default;
$panel-border: #ccc !default;
$panel-border-radius: $border-radius-base !default;
$panel-shadow: 0 1px 2px rgba(#000, .1),
@@ -474,6 +512,7 @@ $issue-attribute-padding-h: 5px !default;
//== Speech "bubbles"
//
$bubble-gravatar-size: 24px !default;
$bubble-gravatar-space: 12px !default;
$bubble-padding-vertical: 8px !default;
@@ -484,6 +523,7 @@ $bubble-padding-horizontal: 15px !default;
//
$screen-xs: 480px !default;
$screen-xs-min: $screen-xs !default;
$screen-sm: 768px !default;
$screen-sm-min: $screen-sm !default;
@@ -498,8 +538,23 @@ $screen-xs-max: ($screen-sm-min - 1) !default;
$screen-sm-max: ($screen-md-min - 1) !default;
$screen-md-max: ($screen-lg-min - 1) !default;
$redmine-responsive-max: 899px !default;
$redmine-responsive-min: 900px !default;
$top-menu-collapse-breakpoint: $screen-lg-min !default;
$main-menu-collapse-breakpoint: $screen-lg-min !default;
//== Login form
//
$login-form-width: 24em !default;
$login-form-label-width: 8em !default;
$login-form-box-breakpoint: $screen-xs-min !default;
$login-form-adjustments-map: (
-2: da en en-GB ko pl tr uk,
1: fr hr nl sr-YU sv,
2: el eu lt pt sk sr th
) !default;
//== Content widths

View File

@@ -2,6 +2,8 @@
@import "mixins";
@import "lib/normalize";
@import "lib/font-awesome";
//== Redmine's core elements
//
@@ -19,6 +21,7 @@
@import "components/login";
@import "components/admin";
@import "components/coderay";
@import "components/rouge";
@import "components/gantt";
@import "components/calendar";
@import "components/progress";
@@ -26,10 +29,12 @@
@import "components/elements";
@import "components/jquery-ui";
@import "components/icons";
@import "components/dropdown";
@import "components/top";
@import "components/jstoolbar";
@import "components/flash";
@import "components/image-base64";
@import "components/responsive";
@import "components/print";

View File

@@ -3,139 +3,115 @@
// --------------------------------------------------
#admin-menu {
#admin-index > & {
ul {
margin: 0;
padding: 0;
}
li {
padding: ($sidebar-padding-vertical + 1px) ($sidebar-padding-horizontal + 3px);
}
a {
display: inline-block;
padding-left: 5px + 20px;
background-position: 0 center;
}
#admin-index > & {
ul {
margin: 0;
padding: 0;
}
li {
list-style-type: none;
> a {
padding-left: $sidebar-padding-horizontal + 5px + 20px;
background-repeat: no-repeat;
background-position: $sidebar-padding-horizontal center;
}
padding: ($sidebar-padding-vertical + 1px) ($sidebar-padding-horizontal + 3px);
}
a {
display: inline-block;
padding-left: 5px + 20px;
background-position: 0 center;
}
}
li {
list-style-type: none;
> a:not(.icon-only) {
padding-left: $sidebar-padding-horizontal + 5px + 20px;
background-repeat: no-repeat;
background-position: $sidebar-padding-horizontal center;
}
}
}
/**
* Groups
*/
//== Groups
//
table.members,
table.memberships {
td.roles {
width: 45%;
}
td.roles {
width: 45%;
}
}
/**
* Permissions
*/
//== Permissions
//
table.permissions {
td.role {
color: $gray;
font-weight: normal;
text-align: center;
vertical-align: bottom;
}
td.role {
color: $gray;
font-weight: normal;
text-align: center;
vertical-align: bottom;
}
}
/**
* Workflows
*/
//== Workflows
//
table.transitions {
td.enabled {
background: $state-success;
}
td.enabled {
background: $state-success;
}
}
#workflow_copy_form select {
width: 200px;
width: 200px;
}
#workflow_form table select {
width: 90%;
min-width: 60px;
width: 90%;
min-width: 60px;
}
table.fields_permissions {
td.readonly {
background: $gray-light;
}
td.readonly {
background: $gray-light;
}
td.required {
background: $state-danger;
}
td.required {
background: $state-danger;
}
}
/**
* Enumerations
*/
.controller-enumerations.action-index {
#content {
> h3,
> .list {
margin-bottom: $line-height-computed / 2;
}
> p {
margin-bottom: $line-height-computed * 2;
}
}
}
/**
* Settings labels
*/
//== Settings labels
//
fieldset.settings label {
display: block;
display: block;
}
/**
* Settings -> Notifications
*/
//== Settings -> Notifications
//
fieldset#notified_events {
.parent {
padding-left: 20px;
}
.parent {
padding-left: 20px;
}
}
/**
* Settings -> Repositories
*/
//== Settings -> Repositories
//
.settings.enabled_scm {
table {
width: 100%;
}
table {
width: 100%;
}
td.scm_name {
font-weight: $font-weight-bold;
}
td.scm_name {
font-weight: $font-weight-bold;
}
}

View File

@@ -3,151 +3,151 @@
// --------------------------------------------------
html {
overflow-y: scroll;
overflow-y: scroll;
}
body {
margin: 0;
padding: 0;
background-color: $body-bg;
color: $text-color;
font-family: $font-family-base;
font-size: $font-size-base;
font-weight: $font-weight-normal;
line-height: $line-height-base;
margin: 0;
padding: 0;
background-color: $body-bg;
color: $text-color;
font-family: $font-family-base;
font-size: $font-size-base;
font-weight: $font-weight-normal;
line-height: $line-height-base;
}
a {
color: $link-color;
text-decoration: none;
color: $link-color;
text-decoration: none;
&:hover,
&:focus {
color: $link-hover-color;
text-decoration: $link-hover-decoration;
}
&:hover,
&:focus {
color: $link-hover-color;
text-decoration: $link-hover-decoration;
}
&.issue.closed {
color: $link-color-issue-closed;
text-decoration: $link-closed-decoration;
}
&.issue.closed {
color: $link-color-issue-closed;
text-decoration: $link-closed-decoration;
}
&.project.closed {
color: $link-color-project-closed;
}
&.project.closed {
color: $link-color-project-closed;
}
&.user.locked {
color: $link-color-user-locked;
}
&.user.locked {
color: $link-color-user-locked;
}
}
h1 {
margin: 0;
font-size: 2em; // ~28px
line-height: 30px;
margin: 0;
font-size: 2em; // ~28px
line-height: 30px;
}
h2 {
margin-top: 0;
margin-bottom: $line-height-computed;
font-size: 1.43em; // ~20px
font-weight: 500;
line-height: $line-height-computed;
margin-top: 0;
margin-bottom: $line-height-computed;
font-size: 1.43em; // ~20px
font-weight: 500;
line-height: $line-height-computed;
img {
vertical-align: middle;
}
img {
vertical-align: middle;
}
}
h3 {
margin-top: 0;
margin-bottom: $line-height-computed;
font-size: 1.14em; // ~16px
font-weight: 500;
line-height: $line-height-computed;
margin-top: 0;
margin-bottom: $line-height-computed;
font-size: 1.14em; // ~16px
font-weight: 500;
line-height: $line-height-computed;
}
h4 {
margin-top: 0;
font-size: 1em;
font-weight: 500;
margin-top: 0;
font-size: 1em;
font-weight: 500;
}
p {
margin: 0 0 ($line-height-computed / 2);
margin: 0 0 ($line-height-computed / 2);
}
small {
font-size: $font-size-small;
font-size: $font-size-small;
}
table {
th,
td {
padding: $table-condensed-cell-padding $table-cell-padding;
}
th,
td {
padding: $table-condensed-cell-padding $table-cell-padding;
}
}
ul,
ol {
margin-top: 0;
margin-bottom: ($line-height-computed / 2);
margin-top: 0;
margin-bottom: ($line-height-computed / 2);
ul,
ol {
margin-bottom: 0;
}
ul,
ol {
margin-bottom: 0;
}
}
dl {
margin-top: 0;
margin-bottom: $line-height-computed;
margin-top: 0;
margin-bottom: $line-height-computed;
}
dt {
margin-top: $line-height-computed;
font-weight: $font-weight-bold;
margin-top: $line-height-computed;
font-weight: $font-weight-bold;
}
dd {
margin-bottom: $line-height-computed;
margin-left: $line-height-computed;
margin-bottom: $line-height-computed;
margin-left: $line-height-computed;
}
code,
kbd,
pre,
samp {
font-family: $font-family-monospace;
font-size: 1em;
font-family: $font-family-monospace;
font-size: 1em;
}
hr {
margin-top: $line-height-computed;
margin-bottom: $line-height-computed;
border: 0;
border-top: 1px solid $hr-border;
margin-top: $line-height-computed;
margin-bottom: $line-height-computed;
border: 0;
border-top: 1px solid $hr-border;
}
abbr[title] {
border-bottom: 1px dotted $abbr-border-color;
cursor: help;
border-bottom: 1px dotted $abbr-border-color;
cursor: help;
}
blockquote {
margin: 0 0 $line-height-computed;
padding: floor($line-height-computed / 4) $padding-large-horizontal;
border-left: 4px solid $blockquote-border-color;
margin: 0 0 $line-height-computed;
padding: floor($line-height-computed / 4) $padding-large-horizontal;
border-left: 4px solid $blockquote-border-color;
>:first-child {
margin-top: 0;
}
>:first-child {
margin-top: 0;
}
>:last-child {
margin-bottom: 0;
}
>:last-child {
margin-bottom: 0;
}
}
.clear {
@extend %clearfix;
@extend %clearfix;
}

View File

@@ -5,133 +5,219 @@
input[type="button"],
input[type="submit"],
button {
display: inline-block;
margin-bottom: 0;
border: 1px solid;
font-weight: $btn-font-weight;
text-align: center;
white-space: nowrap;
cursor: pointer;
@include button-size($btn-padding-vertical, $btn-padding-horizontal, $font-size-base, $line-height-base, $border-radius-base);
@include user-select(none);
@include transition(background-color ease-in-out .07s, border-color ease-in-out .07s, box-shadow ease-in-out .07s);
@include button-variant($btn-primary-color, $btn-primary-bg, $btn-primary-border);
@include button-size($btn-padding-vertical, $btn-padding-horizontal, $font-size-base, $line-height-base, $border-radius-base);
display: inline-block;
margin-bottom: 0;
transition: background-color ease-in-out .07s,
border-color ease-in-out .07s,
box-shadow ease-in-out .07s;
border: 1px solid;
font-weight: $btn-font-weight;
text-align: center;
white-space: nowrap;
cursor: pointer;
user-select: none;
@include button-variant($btn-primary-color, $btn-primary-bg, $btn-primary-border); // scss-lint:disable DeclarationOrder
&:hover,
&:focus {
text-decoration: none;
}
&:hover,
&:focus {
outline: 0;
text-decoration: none;
}
&:active {
outline: 0;
}
&:active {
outline: 0;
}
&.disabled,
&[disabled],
fieldset[disabled] & {
pointer-events: none; // Future-proof disabling of clicks
box-shadow: none;
@include opacity(.65);
}
&.disabled,
&[disabled],
fieldset[disabled] & {
opacity: .65;
box-shadow: none;
pointer-events: none; // Future-proof disabling of clicks
}
}
/**
* Form buttons layout
*/
//== Form buttons layout
//
form {
input[type="submit"] {
margin-right: 5px;
input[type="submit"] {
margin-right: 5px;
+ input {
@include button-variant($btn-success-color, $btn-success-bg, $btn-success-border);
}
+ a {
margin-right: 5px;
}
+ a + a {
margin-left: 5px;
}
+ input {
@include button-variant($btn-success-color, $btn-success-bg, $btn-success-border);
}
+ a {
margin-right: 5px;
+ a {
margin-left: 5px;
}
}
}
}
/**
* Repository's 'View differences' button
*/
//== Repository's 'View differences' button
//
form[action*="repository/diff"] {
margin-bottom: $line-height-computed / 2;
margin-bottom: $line-height-computed / 2;
}
/**
* Forum and news message form buttons layout
*/
//== Forum and news message form buttons layout
//
#message-form,
#news-form {
#message_sticky,
#message_locked {
position: relative;
top: 1px;
margin-left: 5px;
}
#message_sticky,
#message_locked {
position: relative;
top: 1px;
margin-left: 5px;
}
}
/**
* Query builder buttons
*/
//== Button links
//
p.buttons,
.other-formats > span,
#wiki_add_attachment > p {
> a {
display: inline-block;
padding: $btn-padding-vertical $btn-padding-horizontal-small;
border: 1px solid $pagination-border;
border-radius: $border-radius-base;
background-color: $pagination-bg;
&:hover,
&:focus {
border-color: $pagination-hover-border;
outline: 0;
background-color: $pagination-hover-bg;
text-decoration: none;
}
&:active {
outline: 0;
box-shadow: inset 0 3px 4px -2px rgba(#000, .1);
}
&.icon {
padding-left: 20px + $btn-padding-horizontal-small;
background-position: $btn-padding-horizontal-small 50%;
}
@if $use-font-awesome == false {
&.atom {
padding-left: 20px + $btn-padding-horizontal-small;
background-position: $btn-padding-horizontal-small 50%;
}
}
}
}
//== Action buttons group
//
p.buttons {
margin-bottom: $line-height-computed;
}
//== Export actions
//
.other-formats {
margin: $line-height-computed 0 0;
text-align: right;
.pagination + &,
#wiki_add_attachment + & {
margin-top: 0;
float: right;
}
}
//== Query builder buttons
//
.query-columns {
select {
// scss-lint:disable ImportantRule
width: auto !important;
select {
width: auto !important; // scss-lint:disable ImportantRule
min-width: 130px;
}
@at-root span#{&} {
> span {
display: inline-block;
height: 100%;
vertical-align: middle;
}
.buttons {
vertical-align: middle;
input[type="button"] {
width: 32px;
margin-bottom: 4px;
padding-right: 1px;
padding-left: 1px;
@include button-variant($btn-default-color, $btn-default-bg, $btn-default-border);
}
label {
display: block;
margin-bottom: $line-height-computed / 2;
}
}
.buttons {
vertical-align: middle;
br {
display: none;
}
input[type="button"] {
display: block;
width: 32px;
margin-bottom: 4px;
padding-right: 1px;
padding-left: 1px;
@include button-variant($btn-default-color, $btn-default-bg, $btn-default-border); // scss-lint:disable DeclarationOrder
}
}
}
/**
* Button for toggling multiselect (in filters)
*/
//== Button for toggling multiselect (in filters)
//
a[data-expands],
.toggle-multiselect {
position: relative;
top: 3px;
padding: 2px 8px;
border: 1px solid;
border-radius: $border-radius-base;
@extend %image-toggle-plus;
background-repeat: no-repeat;
background-position: 2px 2px;
cursor: pointer;
vertical-align: top;
@include user-select(none);
@include button-variant($btn-default-color, $btn-default-bg, $btn-default-border);
@extend %image-toggle-plus;
position: relative;
top: 3px;
padding: 2px 8px;
border: 1px solid;
border-radius: $border-radius-base;
background-repeat: no-repeat;
background-position: 2px 2px;
vertical-align: top;
cursor: pointer;
user-select: none;
@include button-variant($btn-default-color, $btn-default-bg, $btn-default-border); // scss-lint:disable DeclarationOrder
}
a[data-expands] {
display: inline-block;
margin-right: 10px;
padding: 10px;
display: inline-block;
margin-right: 10px;
padding: 10px;
img {
display: none;
}
> .toggle-multiselect {
padding: 0;
border: 0 none;
background: transparent;
}
img {
display: none;
}
}

View File

@@ -4,81 +4,81 @@
table.cal {
width: 100%;
margin-bottom: $line-height-computed;
width: 100%;
margin-bottom: $line-height-computed;
border: 1px solid $table-border-color;
thead th {
width: 14%;
padding: $table-condensed-cell-padding;
background-color: $table-bg-hover;
&.week-number {
width: auto;
}
}
tbody tr {
height: 100px;
}
td {
padding: $table-condensed-cell-padding;
border: 1px solid $table-border-color;
font-size: $font-size-small;
vertical-align: top;
thead th {
width: 14%;
padding: $table-condensed-cell-padding;
background-color: $table-bg-hover;
&.week-number {
width: auto;
}
&.week-number {
border: 0 none;
background-color: $table-bg-hover;
font-size: 1em;
text-align: right;
}
tbody tr {
height: 100px;
p.day-num {
float: right;
font-size: $font-size-large;
text-align: right;
}
td {
padding: $table-condensed-cell-padding;
border: 1px solid $table-border-color;
font-size: $font-size-small;
vertical-align: top;
&.week-number {
border: 0 none;
background-color: $table-bg-hover;
font-size: 1em;
text-align: right;
}
p.day-num {
float: right;
font-size: $font-size-large;
text-align: right;
}
&.odd p.day-num {
color: $gray-light;
}
&.today {
background: $highlight-bg;
p.day-num {
font-weight: $font-weight-bold;
}
}
&.odd p.day-num {
color: $gray-light;
}
&.today {
background: $highlight-bg;
p.day-num {
font-weight: $font-weight-bold;
}
}
}
}
table.cal .starting a,
p.cal.legend .starting,
table.cal .ending a,
p.cal.legend .ending {
padding-left: 20px;
background-image: url("../../../images/bullet_go.png");
background-repeat: no-repeat;
background-position: 0 center;
padding-left: 20px;
background-image: url("../../../images/bullet_go.png");
background-repeat: no-repeat;
background-position: 0 center;
}
table.cal .ending a,
p.cal.legend .ending {
padding-left: 20px;
background-image: url("../../../images/bullet_end.png");
padding-left: 20px;
background-image: url("../../../images/bullet_end.png");
}
table.cal .starting.ending a,
p.cal.legend .starting.ending {
padding-left: 20px;
background-image: url("../../../images/bullet_diamond.png");
padding-left: 20px;
background-image: url("../../../images/bullet_diamond.png");
}
p.cal.legend {
span {
display: block;
}
span {
display: block;
}
}

View File

@@ -3,362 +3,360 @@
// --------------------------------------------------
.syntaxhl {
div {
display: inline;
}
div {
display: inline;
}
.line-numbers {
margin: 0 5px 0 0;
padding: 2px 4px;
background-color: #eee;
}
.line-numbers {
margin: 0 5px 0 0;
padding: 2px 4px;
background-color: #eee;
}
.code pre {
overflow: auto;
}
.code pre {
overflow: auto;
}
.debug {
// scss-lint:disable ImportantRule
background: #00f !important;
color: #fff !important;
}
.debug {
// scss-lint:disable ImportantRule
background: #00f !important;
color: #fff !important;
}
.annotation {
color: #007;
}
.annotation {
color: #007;
}
.attribute-name {
color: #b48;
}
.attribute-name {
color: #b48;
}
.attribute-value {
color: #700;
}
.attribute-value {
color: #700;
}
.binary {
color: #509;
}
.binary {
color: #509;
}
.char {
color: #d20;
.char {
color: #d20;
.content {
color: #d20;
}
.delimiter {
color: #710;
}
}
.class {
color: #795da3;
font-weight: $font-weight-bold;
}
.class-variable {
color: #369;
}
.color {
color: #0a0;
}
.comment {
color: #969896;
.char,
.delimiter {
color: #969896;
}
}
.complex {
color: #a08;
}
.constant {
color: #795da3;
}
.decorator {
color: #b0b;
}
.definition {
color: #099;
font-weight: $font-weight-bold;
.content {
color: #d20;
}
.delimiter {
color: #000;
color: #710;
}
}
.class {
color: #795da3;
font-weight: $font-weight-bold;
}
.class-variable {
color: #369;
}
.color {
color: #0a0;
}
.comment {
color: #969896;
.char,
.delimiter {
color: #969896;
}
}
.complex {
color: #a08;
}
.constant {
color: #795da3;
}
.decorator {
color: #b0b;
}
.definition {
color: #099;
font-weight: $font-weight-bold;
}
.delimiter {
color: #000;
}
.directive {
color: #088;
font-weight: $font-weight-bold;
}
.doc {
color: #970;
}
.doc-string {
color: #d42;
font-weight: $font-weight-bold;
}
.doctype {
color: #34b;
}
.entity {
color: #800;
font-weight: $font-weight-bold;
}
.error {
background-color: #faa;
color: #f00;
}
.escape {
color: #666;
}
.exception {
color: #c00;
font-weight: $font-weight-bold;
}
.float {
color: #06d;
}
.function {
color: #06b;
font-weight: $font-weight-bold;
}
.global-variable {
color: #d70;
}
.hex {
color: #02b;
}
.imaginary {
color: #f00;
}
.include {
color: #b44;
font-weight: $font-weight-bold;
}
.inline {
background-color: rgba(#000, .05);
color: #000;
}
.inline-delimiter {
color: #666;
font-weight: $font-weight-bold;
}
.instance-variable {
color: #33b;
}
.integer {
color: #0086b3;
}
.key {
color: #606;
.char {
color: #60f;
}
.directive {
color: #088;
font-weight: $font-weight-bold;
.delimiter {
color: #404;
}
}
.keyword {
color: #b3113e;
font-weight: $font-weight-bold;
}
.label {
color: #970;
font-weight: $font-weight-bold;
}
.local-variable {
color: #369;
}
.namespace {
color: #707;
font-weight: $font-weight-bold;
}
.octal {
color: #40e;
}
.predefined {
color: #b21;
}
.predefined-constant {
color: #009595;
}
.predefined-type {
color: #0a5;
font-weight: $font-weight-bold;
}
.preprocessor {
color: #579;
}
.pseudo-class {
color: #00c;
font-weight: $font-weight-bold;
}
.regexp {
background-color: hsla(300, 100%, 50%, .06);
.content {
color: #808;
}
.doc {
color: #970;
.delimiter {
color: #404;
}
.doc-string {
color: #d42;
font-weight: $font-weight-bold;
.modifier {
color: #c2c;
}
}
.reserved {
color: #080;
font-weight: $font-weight-bold;
}
.shell {
background-color: hsla(120, 100%, 50%, .06);
.content {
color: #2b2;
}
.doctype {
color: #34b;
.delimiter {
color: #161;
}
}
.entity {
color: #800;
font-weight: $font-weight-bold;
.string {
.char,
.content,
.delimiter,
.modifier {
color: #df5000;
}
}
.error {
background-color: #faa;
color: #f00;
.symbol {
color: #d33;
.content,
.delimiter {
color: #d33;
}
}
.escape {
color: #666;
}
.tag {
color: #070;
}
.exception {
color: #c00;
font-weight: $font-weight-bold;
}
.type {
color: #339;
font-weight: $font-weight-bold;
}
.float {
color: #06d;
}
.value {
color: #088;
}
.function {
color: #06b;
font-weight: $font-weight-bold;
}
.variable {
color: #037;
}
.global-variable {
color: #d70;
}
.hex {
color: #02b;
}
.imaginary {
color: #f00;
}
.include {
color: #b44;
font-weight: $font-weight-bold;
}
.inline {
background-color: rgba(#000, .05);
color: #000;
}
.inline-delimiter {
color: #666;
font-weight: $font-weight-bold;
}
.instance-variable {
color: #33b;
}
.integer {
color: #0086b3;
}
.key {
color: #606;
.char {
color: #60f;
}
.delimiter {
color: #404;
}
}
.keyword {
color: #b3113e;
font-weight: $font-weight-bold;
}
.label {
color: #970;
font-weight: $font-weight-bold;
}
.local-variable {
color: #369;
}
.namespace {
color: #707;
font-weight: $font-weight-bold;
}
.octal {
color: #40e;
}
.predefined {
color: #b21;
}
.predefined-constant {
color: #009595;
}
.predefined-type {
color: #0a5;
font-weight: $font-weight-bold;
}
.preprocessor {
color: #579;
}
.pseudo-class {
color: #00c;
font-weight: $font-weight-bold;
}
.regexp {
background-color: hsla(300, 100%, 50%, .06);
.content {
color: #808;
}
.delimiter {
color: #404;
}
.modifier {
color: #c2c;
}
}
.reserved {
color: #080;
font-weight: $font-weight-bold;
}
.shell {
background-color: hsla(120, 100%, 50%, .06);
.content {
color: #2b2;
}
.delimiter {
color: #161;
}
}
.string {
.char,
.content,
.delimiter,
.modifier {
color: #df5000;
}
}
.symbol {
color: #d33;
.content,
.delimiter {
color: #d33;
}
}
.tag {
color: #070;
}
.type {
color: #339;
font-weight: $font-weight-bold;
}
.value {
color: #088;
}
.variable {
color: #037;
}
.insert {
background: hsla(120, 100%, 50%, .12);
.insert {
background: hsla(120, 100%, 50%, .12);
background: transparent;
color: #0c0;
font-weight: $font-weight-bold;
}
.eyecatcher {
margin: -1px;
border: 1px solid hsla(120, 100%, 25%, .5);
border-top: 0 none;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
background-color: hsla(120, 100%, 50%, .2);
}
}
.delete {
background: hsla(0, 100%, 50%, .12);
.delete {
background: hsla(0, 100%, 50%, .12);
background: transparent;
color: #c00;
font-weight: $font-weight-bold;
}
.eyecatcher {
margin: -1px;
border: 1px solid hsla(0, 100%, 45%, .5);
border-bottom: 0 none;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
background-color: hsla(0, 100%, 50%, .2);
}
}
.change {
background: #007;
color: #bbf;
.change {
background: #007;
color: #bbf;
color: #88f;
}
}
.head {
background: #505;
color: #f8f;
.head {
background: #505;
color: #f8f;
.filename {
color: #fff;
}
color: #f4f;
}
.delete .eyecatcher {
margin: -1px;
border: 1px solid hsla(0, 100%, 45%, .5);
border-bottom: 0 none;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
background-color: hsla(0, 100%, 50%, .2);
}
.insert {
.eyecatcher {
margin: -1px;
border: 1px solid hsla(120, 100%, 25%, .5);
border-top: 0 none;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
background-color: hsla(120, 100%, 50%, .2);
}
.insert {
background: transparent;
color: #0c0;
font-weight: $font-weight-bold;
}
}
.delete .delete {
background: transparent;
color: #c00;
font-weight: $font-weight-bold;
}
.change .change {
color: #88f;
}
.head .head {
color: #f4f;
.filename {
color: #fff;
}
}
}

View File

@@ -1,12 +1,9 @@
#main {
@if $flexbox-layout {
// scss-lint:disable VendorPrefix
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
} @else {
@extend %clearfix;
}
@if $flexbox-layout {
display: flex;
} @else {
@extend %clearfix;
}
}
@@ -15,18 +12,15 @@
// --------------------------------------------------
#content {
padding: $padding-side;
padding: $padding-side;
@if $flexbox-layout {
// scss-lint:disable VendorPrefix
$side-space: $sidebar-width + $padding-side * 2;
width: calc(100% - #{$side-space});
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
} @else {
overflow: hidden;
}
@if $flexbox-layout {
$side-space: $sidebar-width + $padding-side * 2;
flex: 1 1 auto;
width: calc(100% - #{$side-space});
} @else {
overflow: hidden;
}
}
@@ -35,155 +29,145 @@
// --------------------------------------------------
#sidebar {
// scss-lint:disable VendorPrefix
padding: $padding-side $sidebar-padding-horizontal;
padding: $padding-side $sidebar-padding-horizontal;
@if $flexbox-layout {
flex: 0 0 $sidebar-width-computed;
@if $sidebar-position == "left" {
order: -1;
} @else {
order: 1;
}
} @else {
width: $sidebar-width-computed;
float: $sidebar-position;
}
@media screen and (min-width: 1px) {
@if not $flexbox-layout {
padding-bottom: $padding-side * 3;
}
@if $sidebar-position == "left" {
border-right: 1px solid $sidebar-link-active-border;
box-shadow: inset -9px 0 6px -6px rgba(0, 0, 0, .05);
} @else {
border-left: 1px solid $sidebar-link-active-border;
box-shadow: inset 9px 0 6px -6px rgba(0, 0, 0, .05);
}
}
.nosidebar & {
margin: 0;
padding: 0;
border: 0 none;
@if $flexbox-layout {
-webkit-flex: 0 0 $sidebar-width-computed;
-ms-flex: 0 0 $sidebar-width-computed;
flex: 0 0 $sidebar-width-computed;
@if $sidebar-position == "left" {
-webkit-order: -1;
-ms-flex-order: -1;
order: -1;
} @else {
-webkit-order: 1;
-ms-flex-order: 1;
order: 1;
}
flex: 0 0 auto;
} @else {
width: $sidebar-width-computed;
float: $sidebar-position;
width: 0;
float: none;
}
}
@media screen and (min-width: 1px) {
@if not $flexbox-layout {
padding-bottom: $padding-side * 3;
}
h3 {
margin-top: $line-height-computed * 1.5;
}
> h3:first-child,
> form:first-child > h3 {
margin-top: 0;
}
ul {
margin: 0 0 ($line-height-computed / 2);
padding: 0;
@if $sidebar-position == "left" {
margin-right: -($sidebar-padding-horizontal);
} @else {
margin-left: -($sidebar-padding-horizontal);
}
}
li {
margin: 0;
padding: 0;
list-style-type: none;
> a:not(.icon-only) {
display: block;
padding: $sidebar-padding-vertical $sidebar-padding-horizontal;
border: 1px solid transparent;
@if $sidebar-position == "left" {
border-left-width: 3px;
border-radius: $border-radius-large 0 0 $border-radius-large;
} @else {
border-right-width: 3px;
border-radius: 0 $border-radius-large $border-radius-large 0;
}
&:hover {
background-color: $sidebar-link-hover-bg;
text-decoration: none;
}
&.selected {
border-color: $sidebar-link-active-border;
background-color: $sidebar-link-active-bg;
color: $sidebar-link-active-text;
@if $sidebar-position == "left" {
border-right: 1px solid $sidebar-link-active-border;
box-shadow: inset -9px 0 6px -6px rgba(0, 0, 0, .05);
margin-right: -1px;
border-right-color: $body-bg;
border-left-color: $sidebar-link-active-side;
box-shadow: -3px 1px 2px rgba(0, 0, 0, .1);
} @else {
border-left: 1px solid $sidebar-link-active-border;
box-shadow: inset 9px 0 6px -6px rgba(0, 0, 0, .05);
}
}
.nosidebar & {
margin: 0;
padding: 0;
border: 0 none;
@if $flexbox-layout {
// scss-lint:disable VendorPrefix
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
} @else {
width: 0;
float: none;
}
}
h3 {
margin-top: $line-height-computed * 1.5;
}
> h3:first-child,
> form:first-child > h3 {
margin-top: 0;
}
ul {
margin: 0 0 ($line-height-computed / 2);
padding: 0;
@if $sidebar-position == "left" {
margin-right: -($sidebar-padding-horizontal);
} @else {
margin-left: -($sidebar-padding-horizontal);
}
}
li {
margin: 0;
padding: 0;
list-style-type: none;
> a {
display: block;
padding: $sidebar-padding-vertical $sidebar-padding-horizontal;
border: 1px solid transparent;
@if $sidebar-position == "left" {
border-left-width: 3px;
border-radius: $border-radius-large 0 0 $border-radius-large;
} @else {
border-right-width: 3px;
border-radius: 0 $border-radius-large $border-radius-large 0;
}
&:hover {
background-color: $sidebar-link-hover-bg;
text-decoration: none;
}
&.selected {
border-color: $sidebar-link-active-border;
background-color: $sidebar-link-active-bg;
color: $sidebar-link-active-text;
@if $sidebar-position == "left" {
margin-right: -1px;
border-right-color: $body-bg;
border-left-color: $sidebar-link-active-side;
box-shadow: -3px 1px 2px rgba(0, 0, 0, .1);
} @else {
margin-left: -1px;
border-right-color: $sidebar-link-active-side;
border-left-color: $body-bg;
box-shadow: 3px 1px 2px rgba(0, 0, 0, .1);
}
}
margin-left: -1px;
border-right-color: $sidebar-link-active-side;
border-left-color: $body-bg;
box-shadow: 3px 1px 2px rgba(0, 0, 0, .1);
}
}
}
}
}
#footer {
margin: 0 $padding-side $line-height-computed;
padding-top: $line-height-computed;
border-top: 1px solid $gray-lighter;
color: $gray-light;
font-size: $font-size-small;
margin: 0 $padding-side $line-height-computed;
padding-top: $line-height-computed;
border-top: 1px solid $gray-lighter;
color: $gray-light;
font-size: $font-size-small;
}
@if $fixed-layout {
@media screen and (min-width: $screen-sm-min) {
#main-menu ul,
#main {
width: $width-sm;
margin-right: auto;
margin-left: auto;
}
@media screen and (min-width: $screen-sm-min) {
#main-menu ul,
#main {
width: $width-sm;
margin-right: auto;
margin-left: auto;
}
}
@media screen and (min-width: $screen-md-min) {
#main-menu ul,
#main {
width: $width-md;
}
@media screen and (min-width: $screen-md-min) {
#main-menu ul,
#main {
width: $width-md;
}
}
@media screen and (min-width: $screen-lg-min) {
#main-menu ul,
#main {
width: $width-lg;
}
@media screen and (min-width: $screen-lg-min) {
#main-menu ul,
#main {
width: $width-lg;
}
}
#main-menu ul > li > a {
padding: $main-menu-padding-vertical 1px;
}
#main-menu ul > li > a {
padding: $main-menu-padding-vertical 1px;
}
}

View File

@@ -0,0 +1,98 @@
.drdn {
position: relative;
&.expanded {
> .drdn-content {
display: block;
}
> .drdn-trigger {
@if $use-font-awesome {
&::after {
content: $fa-var-caret-up;
}
} @else {
@extend %image-arrow-up;
}
}
}
&-trigger {
@extend %form-field;
display: inline-block;
position: relative;
box-sizing: border-box;
cursor: pointer;
user-select: none;
@if $use-font-awesome {
@extend %fa-icon-after;
&::after {
content: $fa-var-caret-down;
position: absolute;
top: ($font-size-base / 2);
right: $input-padding-horizontal;
}
} @else {
@extend %image-arrow-down;
background-repeat: no-repeat;
background-position: right ($input-padding-horizontal / 2) center;
}
}
&-content {
@include nice-shadow(2);
display: none;
position: absolute;
z-index: 1002;
top: $input-height-base + $btn-padding-vertical;
right: 0;
overflow: hidden;
border-radius: $border-radius-base;
background: $main-menu-dropdown-bg;
}
&-items {
max-height: 400px;
overflow: auto;
color: $gray-light;
&:empty {
border: 0;
}
&.selection {
> a,
> span {
&::before {
content: " ";
display: inline-block;
width: 1em;
font-weight: bold;
}
@if $use-font-awesome {
@extend %fa-icon;
}
}
> .selected::before {
@if $use-font-awesome {
content: $fa-var-check;
} @else {
content: "\2713 ";
}
}
}
> a,
> span {
display: block;
padding: $btn-padding-vertical $btn-padding-horizontal;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -8,85 +8,86 @@
.nodata,
.warning,
.conflict {
margin-bottom: $line-height-computed;
padding: $padding-large-vertical $padding-large-horizontal;
padding-left: $padding-large-horizontal + 8px + 16px;
border: 1px solid;
border-radius: $border-radius-large;
margin-bottom: $line-height-computed;
padding: $padding-large-vertical $padding-large-horizontal;
padding-left: $padding-large-horizontal + 8px + 16px;
border: 1px solid;
border-radius: $border-radius-large;
background-repeat: no-repeat;
background-position: $padding-large-horizontal 50%;
@if $use-font-awesome {
@extend %fa-icon;
@if $use-font-awesome {
@extend %fa-icon;
&:before {
margin-left: -(8px + 16px);
float: left;
line-height: $line-height-computed;
}
} @else {
background-repeat: no-repeat;
background-position: $padding-large-horizontal 50%;
&::before {
margin-left: -(8px + 16px);
float: left;
line-height: $line-height-computed;
}
}
p:last-child,
ol:last-child,
ul:last-child {
margin-bottom: 0;
}
>:last-child {
margin-bottom: 0;
}
}
@mixin flash($color, $background, $border, $link, $icon) {
color: $color;
background-color: $background;
border-color: $border;
color: $color;
background-color: $background;
border-color: $border;
@if $use-font-awesome {
@if $icon == "true" { $icon: $fa-var-check; }
@elseif $icon == "warning" { $icon: $fa-var-warning; }
@elseif $icon == "exclamation" { $icon: $fa-var-exclamation-circle; }
&:before {
content: $icon;
}
} @else {
background-image: url(../../../images/#{$icon}.png);
@if $use-font-awesome {
@if $icon == "true" {
$icon: $fa-var-check;
} @elseif $icon == "warning" {
$icon: $fa-var-warning;
} @elseif $icon == "exclamation" {
$icon: $fa-var-exclamation-circle;
}
a {
color: $link;
font-weight: $font-weight-bold;
&::before {
content: $icon;
}
} @else {
background-image: url(../../../images/#{$icon}.png);
}
a {
color: $link;
font-weight: $font-weight-bold;
}
}
.warning,
.conflict,
.nodata {
@include flash($flash-warning-text, $flash-warning-bg, $flash-warning-border, $flash-warning-link, "warning");
@include flash($flash-warning-text, $flash-warning-bg, $flash-warning-border, $flash-warning-link, "warning");
}
.flash.notice {
@include flash($flash-success-text, $flash-success-bg, $flash-success-border, $flash-success-link, "true");
@include flash($flash-success-text, $flash-success-bg, $flash-success-border, $flash-success-link, "true");
}
#errorExplanation,
.flash.error {
@include flash($flash-error-text, $flash-error-bg, $flash-error-border, $flash-error-link, "exclamation");
@include flash($flash-error-text, $flash-error-bg, $flash-error-border, $flash-error-link, "exclamation");
}
.nodata {
padding-left: $padding-large-horizontal;
text-align: center;
padding-left: $padding-large-horizontal;
text-align: center;
@if $use-font-awesome {
&:before {
margin-left: 0;
float: none;
}
@if $use-font-awesome {
&::before {
margin-left: 0;
float: none;
}
}
}
#errorExplanation {
h2,
p {
display: none;
}
h2,
p {
display: none;
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -3,75 +3,53 @@
// --------------------------------------------------
.gantt_hdr {
position: absolute;
top: 0;
height: 16px;
border: 1px solid $gray-lighter;
border-left-width: 0;
text-align: center;
overflow: hidden;
position: absolute;
top: 0;
height: 16px;
overflow: hidden;
border: 1px solid $gray-lighter;
border-left-width: 0;
text-align: center;
&.nwday {
background-color: $gray-lightest;
}
&.nwday {
background-color: $gray-lightest;
}
}
.gantt_subjects {
font-size: $font-size-small;
font-size: $font-size-small;
div {
height: 16px;
line-height: 16px;
@include text-overflow;
}
div {
@include text-overflow;
height: 16px;
line-height: 16px;
}
}
.task {
position: absolute;
height: 8px;
margin: 2px 0 0;
padding: 0;
font-size: 11px;
line-height: 16px;
white-space: nowrap;
position: absolute;
height: 8px;
margin: 2px 0 0;
padding: 0;
font-size: 11px;
line-height: 16px;
white-space: nowrap;
&.label {
width: 100%;
margin-top: 0;
&.label {
width: 100%;
margin-top: 0;
&.project,
&.version {
font-weight: $font-weight-bold;
}
&.project,
&.version {
font-weight: $font-weight-bold;
}
}
}
.task_late {
border: 1px solid darken($progress-bar-danger-bg, 10%);
background-color: $progress-bar-danger-bg;
}
.task_done {
border: 1px solid darken($progress-bar-success-bg, 10%);
background-color: $progress-bar-success-bg;
}
.task_todo {
border: 1px solid darken($progress-bg, 20%);
background-color: $progress-bg;
&.parent {
border: 1px solid darken($progress-bg, 30%);
background-color: darken($progress-bg, 10%);
}
}
.task.parent {
&.parent {
height: 3px;
}
.task.parent.marker {
&.starting {
&.marker {
&.starting {
position: absolute;
top: -1px;
left: 0;
@@ -79,9 +57,9 @@
height: 16px;
margin-left: -4px;
background: url("../../../images/task_parent_end.png") no-repeat 0 0;
}
}
&.ending {
&.ending {
position: absolute;
top: -1px;
right: 0;
@@ -89,82 +67,102 @@
height: 16px;
margin-left: -4px;
background: url("../../../images/task_parent_end.png") no-repeat 0 0;
}
}
}
}
.task_late {
border: 1px solid darken($progress-bar-danger-bg, 10%);
background-color: $progress-bar-danger-bg;
}
.task_done {
border: 1px solid darken($progress-bar-success-bg, 10%);
background-color: $progress-bar-success-bg;
}
.task_todo {
border: 1px solid darken($progress-bg, 20%);
background-color: $progress-bg;
&.parent {
border: 1px solid darken($progress-bg, 30%);
background-color: darken($progress-bg, 10%);
}
}
.project,
.version {
&.task_late,
&.task_done,
&.task_todo {
height: 2px;
margin-top: 3px;
}
&.task_late,
&.task_done,
&.task_todo {
height: 2px;
margin-top: 3px;
}
&.task_todo {
border: 1px solid darken($progress-bar-info-bg, 10%);
background-color: $progress-bar-info-bg;
}
&.task_todo {
border: 1px solid darken($progress-bar-info-bg, 10%);
background-color: $progress-bar-info-bg;
}
&.marker {
margin-top: 1px;
margin-left: -4px;
border: 0 none;
background-image: url("../../../images/version_marker.png");
background-repeat: no-repeat;
}
&.marker {
margin-top: 1px;
margin-left: -4px;
border: 0 none;
background-image: url("../../../images/version_marker.png");
background-repeat: no-repeat;
}
}
.version-behind-schedule,
.issue-behind-schedule {
color: $brand-warning;
color: $brand-warning;
}
.version-overdue,
.issue-overdue,
.project-overdue {
color: $brand-danger;
color: $brand-danger;
}
/**
* Tooltips
*/
//== Tooltips
//
.tooltip {
position: relative;
z-index: 24;
position: relative;
z-index: 24;
&:hover {
z-index: 25;
}
&:hover {
z-index: 25;
.tip {
display: none;
position: absolute;
top: 9px;
left: 24px;
width: 270px;
padding: $padding-base-vertical;
border: $tooltip-border-width solid $tooltip-border;
background-color: $tooltip-bg;
color: $tooltip-text;
font-size: $font-size-small;
text-align: left;
@include nice-shadow(3);
display: block;
}
}
@if $sidebar-position == "left" {
tr > td:last-child & {
.tip {
right: 2px;
left: auto;
}
}
}
.tip {
@include nice-shadow(3);
display: none;
position: absolute;
top: 9px;
left: 24px;
width: 270px;
padding: $padding-base-vertical;
border: $tooltip-border-width solid $tooltip-border;
background-color: $tooltip-bg;
color: $tooltip-text;
font-size: $font-size-small;
text-align: left;
}
&:hover {
.tip {
display: block;
}
@if $sidebar-position == "left" {
tr > td:last-child & {
.tip {
right: 2px;
left: auto;
}
}
}
}

View File

@@ -3,32 +3,35 @@
// --------------------------------------------------
img.gravatar {
border-radius: $border-radius-large;
line-height: 1;
overflow: hidden;
vertical-align: middle;
overflow: hidden;
border-radius: $border-radius-large;
line-height: 1;
vertical-align: middle;
h2 &,
h3 &,
h4 & {
position: relative;
top: -1px;
margin-right: 5px;
}
h2 &,
h3 &,
h4 & {
position: relative;
top: -1px;
margin-right: 5px;
}
}
// For Administration -> /users
//== Administration -> /users
//
.username img.gravatar {
position: relative;
top: 1px;
margin-right: .5em;
vertical-align: top;
position: relative;
top: 1px;
margin-right: .5em;
vertical-align: top;
}
/* Used on 12px Gravatar img tags without the icon background */
//== Gravatar
// Used on 12px Gravatar img tags without the icon background
.icon-gravatar {
margin-right: 5px;
float: left;
margin-right: 5px;
float: left;
}

File diff suppressed because it is too large Load Diff

View File

@@ -2,43 +2,43 @@
// Base64 encoded images
// --------------------------------------------------
/* ACI = AutoComplete Indicator */
// ACI = AutoComplete Indicator
%image-aci {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAKBAMAAAAnY0GXAAAAD1BMVEUAAACzs7Ozs7Ozs7Ozs7NJvZFvAAAABHRSTlMA5kpJG2qUMwAAABtJREFUCNdjIBMYCkMRDIg4QhBuAUUhKCIPAAAlaQNk5qF21gAAAABJRU5ErkJggg==);
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAKBAMAAAAnY0GXAAAAD1BMVEUAAACzs7Ozs7Ozs7Ozs7NJvZFvAAAABHRSTlMA5kpJG2qUMwAAABtJREFUCNdjIBMYCkMRDIg4QhBuAUUhKCIPAAAlaQNk5qF21gAAAABJRU5ErkJggg==);
}
%image-arrow-up {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAGFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABWNxwqAAAACHRSTlMAgFIFe2wwFmA2CKQAAAArSURBVAjXYyASGBlAGYoKEJpNUAzCKBEUKQDRzIGCgsEgBpOgoKAQA5kAAOOzAuqv1pGxAAAAAElFTkSuQmCC);
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAGFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABWNxwqAAAACHRSTlMAgFIFe2wwFmA2CKQAAAArSURBVAjXYyASGBlAGYoKEJpNUAzCKBEUKQDRzIGCgsEgBpOgoKAQA5kAAOOzAuqv1pGxAAAAAElFTkSuQmCC);
}
%image-arrow-right {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAG1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACUUeIgAAAACXRSTlMAgF1mUUUMBwa6cf6pAAAAIklEQVQI12PADwJgDBEYQ1ADxhBOgDIEFdBF1GG6EOYQCQC/wwKE7b2bNAAAAABJRU5ErkJggg==);
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAG1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACUUeIgAAAACXRSTlMAgF1mUUUMBwa6cf6pAAAAIklEQVQI12PADwJgDBEYQ1ADxhBOgDIEFdBF1GG6EOYQCQC/wwKE7b2bNAAAAABJRU5ErkJggg==);
}
%image-arrow-down {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAGFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABWNxwqAAAACHRSTlMAgFIFbDAWVn1ccuIAAAAsSURBVAjXYyANMAkKCgqBGMyOgoLOYKFEQcEEMINVUBSqSlEByjA3YCARAADFOwKnW3vw7AAAAABJRU5ErkJggg==);
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAGFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABWNxwqAAAACHRSTlMAgFIFbDAWVn1ccuIAAAAsSURBVAjXYyANMAkKCgqBGMyOgoLOYKFEQcEEMINVUBSqSlEByjA3YCARAADFOwKnW3vw7AAAAABJRU5ErkJggg==);
}
%image-arrow-left {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAGFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABWNxwqAAAACHRSTlMAgF1mUUUMBtml7EIAAAAjSURBVAjXYyAAWGEMRyhdJAih2QyhDCZBhAhcDVwXwhziAACuywJHmKAVPgAAAABJRU5ErkJggg==);
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAGFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABWNxwqAAAACHRSTlMAgF1mUUUMBtml7EIAAAAjSURBVAjXYyAAWGEMRyhdJAih2QyhDCZBhAhcDVwXwhziAACuywJHmKAVPgAAAABJRU5ErkJggg==);
}
%image-arrow-up-white {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAYUlEQVR4Xu2SMQqAMAxFVUxOID2FQ+9R3cRjesX4A5lCoaUFB2nhkeQPLxQyi8jU8xbwYwGBC1CrIIFda4sgKq6vFgS/1eZQI2BwZ/5NlnNJcIAtt8ny04ermx/l4zsYgheccgigTIfmMAAAAABJRU5ErkJggg==);
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAYUlEQVR4Xu2SMQqAMAxFVUxOID2FQ+9R3cRjesX4A5lCoaUFB2nhkeQPLxQyi8jU8xbwYwGBC1CrIIFda4sgKq6vFgS/1eZQI2BwZ/5NlnNJcIAtt8ny04ermx/l4zsYgheccgigTIfmMAAAAABJRU5ErkJggg==);
}
%image-arrow-down-white {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAG1BMVEUAAAD////////////////////////////////rTT7CAAAACXRSTlMAgFIFbBZWMTBl3YBFAAAALElEQVQI12MgDTAJCgoKgRjMjoKCzmChQEHBADCDQ1AcqkpRAcowM2AgEQAAvM4CiwrixCQAAAAASUVORK5CYII=);
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAG1BMVEUAAAD////////////////////////////////rTT7CAAAACXRSTlMAgFIFbBZWMTBl3YBFAAAALElEQVQI12MgDTAJCgoKgRjMjoKCzmChQEHBADCDQ1AcqkpRAcowM2AgEQAAvM4CiwrixCQAAAAASUVORK5CYII=);
}
%image-calendar {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOBAMAAADtZjDiAAAAIVBMVEUAAABVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUMftYpAAAACnRSTlMArIDn/dahwzIKIC4f+wAAADxJREFUCNdjYEhJACEGBk8HEGIQXrDYeMFiAYZVK1YB0QKGVSAApBcwMQgwMSDohaKChqKCxItXgc0pAADUBx5bh1ZBCgAAAABJRU5ErkJggg==);
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOBAMAAADtZjDiAAAAIVBMVEUAAABVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUMftYpAAAACnRSTlMArIDn/dahwzIKIC4f+wAAADxJREFUCNdjYEhJACEGBk8HEGIQXrDYeMFiAYZVK1YB0QKGVSAApBcwMQgwMSDohaKChqKCxItXgc0pAADUBx5bh1ZBCgAAAABJRU5ErkJggg==);
}
%image-toggle-minus {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlMAgJsrThgAAAAQSURBVAjXY8AK+D+AEDYAAC8fAf+FxiPoAAAAAElFTkSuQmCC);
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlMAgJsrThgAAAAQSURBVAjXY8AK+D+AEDYAAC8fAf+FxiPoAAAAAElFTkSuQmCC);
}
%image-toggle-plus {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlMAgJsrThgAAAAVSURBVAjXY0AGjA1QxP8BiBBcJAAAdjIFBZTfDZQAAAAASUVORK5CYII=);
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlMAgJsrThgAAAAVSURBVAjXY0AGjA1QxP8BiBBcJAAAdjIFBZTfDZQAAAAASUVORK5CYII=);
}

File diff suppressed because it is too large Load Diff

View File

@@ -3,86 +3,83 @@
// --------------------------------------------------
/**
* Component containers
*/
//== Component containers
//
.ui-widget {
&,
input,
select,
textarea,
button {
font-family: inherit;
font-size: inherit;
}
&,
input,
select,
textarea,
button {
font-family: inherit;
font-size: inherit;
}
}
/**
* Widgets
*/
//== Widgets
//
.ui-widget-content {
border: 1px solid $panel-border;
background: $body-bg;
color: $text-color;
border: 1px solid $panel-border;
background: $body-bg;
color: $text-color;
a {
color: $text-color;
}
a {
color: $text-color;
}
}
.ui-widget-header {
border: 0 none;
background: $header-bg;
border: 0 none;
background: $header-bg;
color: $header-text;
font-weight: $font-weight-bold;
a {
color: $header-text;
font-weight: $font-weight-bold;
}
a {
color: $header-text;
a,
button {
&.ui-state-default {
border-color: $header-bg;
background: $header-bg;
color: $header-text;
}
a,
button {
&.ui-state-default {
border-color: $header-bg;
background: $header-bg;
color: $header-text;
}
&.ui-state-hover,
&.ui-state-focus {
border-color: darken($header-bg, 12%);
background: darken($header-bg, 10%);
}
.ui-icon {
background-image: url("/stylesheets/jquery/images/ui-icons_ffffff_256x240.png");
}
&.ui-state-hover,
&.ui-state-focus {
border-color: darken($header-bg, 12%);
background: darken($header-bg, 10%);
}
.ui-icon {
background-image: url("../../../stylesheets/jquery/images/ui-icons_ffffff_256x240.png");
}
}
}
/**
* Interaction states
*/
//== Interaction states
//
.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default {
border: 1px solid $component-border;
background: $component-bg;
color: $component-color;
font-weight: normal;
box-shadow: none;
border: 1px solid $component-border;
background: $component-bg;
box-shadow: none;
color: $component-color;
font-weight: normal;
}
.ui-state-default a,
.ui-state-default a:link,
.ui-state-default a:visited {
color: $component-color;
text-decoration: none;
color: $component-color;
text-decoration: none;
}
.ui-state-hover,
@@ -91,10 +88,10 @@
.ui-state-focus,
.ui-widget-content .ui-state-focus,
.ui-widget-header .ui-state-focus {
border: 1px solid $component-active-border;
background: $component-active-bg;
color: $component-active-color;
font-weight: normal;
border: 1px solid $component-active-border;
background: $component-active-bg;
color: $component-active-color;
font-weight: normal;
}
.ui-state-hover a,
@@ -105,202 +102,199 @@
.ui-state-focus a:hover,
.ui-state-focus a:link,
.ui-state-focus a:visited {
color: $component-active-color;
text-decoration: none;
color: $component-active-color;
text-decoration: none;
}
.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active {
border: 1px solid $component-active-border;
background: $component-active-bg;
color: $component-active-color;
font-weight: normal;
border: 1px solid $component-active-border;
background: $component-active-bg;
color: $component-active-color;
font-weight: normal;
.ui-icon {
background-image: url("/stylesheets/jquery/images/ui-icons_ffffff_256x240.png");
}
.ui-icon {
background-image: url("../../../stylesheets/jquery/images/ui-icons_ffffff_256x240.png");
}
}
.ui-state-active a,
.ui-state-active a:link,
.ui-state-active a:visited {
color: $component-active-color;
text-decoration: none;
color: $component-active-color;
text-decoration: none;
}
.ui-sortable-helper {
@include nice-shadow(4);
@include nice-shadow(4);
}
/**
* Menu (e.g. autocomplete)
*/
//== Menu (e.g. autocomplete)
//
.ui-menu {
padding: 3px;
border-radius: $panel-border-radius;
@include nice-shadow(2);
@include nice-shadow(2);
padding: 3px;
border-radius: $panel-border-radius;
}
.ui-menu-item {
border-radius: $panel-border-radius;
border-radius: $panel-border-radius;
}
/**
* Dialogs
*/
//== Dialogs
//
.modal {
background: $body-bg;
z-index: 50;
z-index: 50;
background: $body-bg;
h3.title {
display: none;
}
h3.title {
display: none;
}
p.buttons {
margin-bottom: 0;
text-align: right;
}
p.buttons {
margin-bottom: 0;
text-align: right;
}
}
.ui-dialog {
&.ui-widget-content {
padding: 3px;
border: 0 none;
@include nice-shadow(5);
}
&.ui-widget-content {
@include nice-shadow(5);
padding: 3px;
border: 0 none;
.ui-dialog-content {
padding: 1em;
padding: 1em;
}
}
.ui-dialog-titlebar-close {
right: .5em;
}
.ui-dialog-titlebar-close {
right: .5em;
}
input[type="button"] {
@include button-variant($btn-link-color, $btn-link-bg, $btn-link-border);
}
input[type="button"] {
@include button-variant($btn-link-color, $btn-link-bg, $btn-link-border);
}
}
.ui-widget-overlay {
background: #000;
background: #000;
}
/**
* Datepicker
*/
//== Datepicker
//
img.ui-datepicker-trigger {
margin-left: 4px;
cursor: pointer;
vertical-align: middle;
margin-left: 4px;
vertical-align: middle;
cursor: pointer;
}
.ui-datepicker {
padding: .3em .6em .6em;
@include nice-shadow(3);
padding: .3em .6em .6em;
border: 0 none;
.ui-datepicker-header {
margin: 0 -.3em;
padding: .3em;
}
.ui-datepicker-prev {
left: .3em;
}
.ui-datepicker-next {
right: .3em;
}
.ui-datepicker-prev,
.ui-datepicker-next {
top: .3em;
border: 0 none;
@include nice-shadow(3);
background: transparent;
}
.ui-datepicker-header {
margin: 0 -.3em;
padding: .3em;
.ui-datepicker-title {
margin: 0 (1.8em + .3em);
}
select.ui-datepicker-month,
select.ui-datepicker-year {
width: 49%;
height: 1.8em;
margin: 0;
}
select.ui-datepicker-year {
margin-left: 1%;
}
.ui-datepicker-calendar {
margin: 0;
table-layout: fixed;
.ui-state-default {
border-color: $body-bg;
background: $body-bg;
}
.ui-datepicker-prev {
left: .3em;
.ui-state-focus,
.ui-state-hover {
border-color: $component-active-bg;
background: $component-active-bg;
color: $component-active-color;
}
.ui-datepicker-next {
right: .3em;
.ui-state-active {
border-color: $highlight-border;
background: $highlight-bg;
color: $highlight-text;
}
.ui-datepicker-prev,
.ui-datepicker-next {
top: .3em;
border: 0 none;
background: transparent;
.ui-datepicker-today {
.ui-state-highlight {
border-color: $component-active-border;
}
}
.ui-datepicker-title {
margin: 0 (1.8em + .3em);
.ui-datepicker-current-day {
.ui-state-active {
border-color: $highlight-border;
}
}
select.ui-datepicker-month,
select.ui-datepicker-year {
width: 49%;
height: 1.8em;
margin: 0;
td {
padding: 0 1px 1px 0;
text-align: right;
a {
padding-right: .4em;
padding-left: 0;
border-radius: $border-radius-base;
}
&.ui-datepicker-week-col {
padding-right: $table-condensed-cell-padding;
color: $gray-light;
}
}
}
select.ui-datepicker-year {
margin-left: 1%;
}
.ui-datepicker-calendar {
margin: 0;
table-layout: fixed;
.ui-state-default {
border-color: $body-bg;
background: $body-bg;
}
.ui-state-focus,
.ui-state-hover {
border-color: $component-active-bg;
background: $component-active-bg;
color: $component-active-color;
}
.ui-state-active {
border-color: $highlight-border;
background: $highlight-bg;
color: $highlight-text;
}
.ui-datepicker-today {
.ui-state-highlight {
border-color: $component-active-border;
}
}
.ui-datepicker-current-day {
.ui-state-active {
border-color: $highlight-border;
}
}
td {
padding: 0 1px 1px 0;
text-align: right;
a {
padding-right: .4em;
padding-left: 0;
border-radius: $border-radius-base;
}
&.ui-datepicker-week-col {
padding-right: $table-condensed-cell-padding;
color: $gray-light;
}
}
}
.ui-datepicker-buttonpane {
margin: .6em 0 0;
padding: .6em 0 0;
@include clearfix;
button {
margin: 0;
padding: $btn-padding-vertical $btn-padding-horizontal;
}
.ui-datepicker-buttonpane {
@include clearfix;
margin: .6em 0 0;
padding: .6em 0 0;
button {
margin: 0;
padding: $btn-padding-vertical $btn-padding-horizontal;
}
}
}

View File

@@ -2,174 +2,231 @@
// WYSIWYG icons
// --------------------------------------------------
.jstElements {
@extend %clearfix;
.box & {
padding: 0;
// For Redmine 4.0+
#content {
div.jstTabs.tabs {
height: auto;
@if $flexbox-layout {
@media screen and (max-width: $redmine-responsive-max) {
clear: both;
}
}
ul {
width: 100%;
height: auto;
li {
height: auto;
margin: 0;
&::before {
content: none;
}
&:not(.tab-elements) {
@if $flexbox-layout {
align-self: flex-end;
}
.selected {
border-color: $input-border $input-border $tab-active-bg;
}
}
&.tab-elements {
margin-left: 5px;
}
}
}
.jstElements {
height: auto;
}
}
.jstEditor {
.wiki-preview {
padding: $input-padding-vertical $input-padding-horizontal;
border: 1px solid $input-border;
border-radius: $input-border-radius;
background-color: $wiki-preview-bg;
p {
padding: 0;
}
}
}
}
.jstElements {
@extend %clearfix;
.box & {
padding: 0;
button {
margin-bottom: 5px;
box-shadow: none;
vertical-align: top;
margin-right: 2px;
}
.jstb_help {
.jstSpacer {
margin-right: 4px;
}
@media (min-width: $screen-md) {
.jstb_help {
margin-right: 0;
margin-left: -6px;
float: right;
}
}
.box & {
button {
margin-right: 2px;
}
@media (min-width: $screen-lg) {
button {
margin-right: 4px;
}
.jstSpacer {
margin-right: 4px;
}
@media (min-width: $screen-lg) {
button {
margin-right: 4px;
}
.jstSpacer {
margin-right: 6px;
}
}
.jstSpacer {
margin-right: 6px;
}
}
}
button {
margin-bottom: 5px;
box-shadow: none;
vertical-align: top;
}
}
@if $use-font-awesome
{
.jstElements {
%jstb-icon {
padding: 0;
background: $body-bg;
background-image: none;
color: $btn-default-color;
@include fa-icon();
@if $use-font-awesome {
.jstElements {
%jstb-icon {
@include fa-icon;
padding: 0;
background: $body-bg;
background-image: none;
color: $btn-default-color;
&:before {
text-align: center;
}
}
.jstb_strong {
@extend %jstb-icon;
&:before { content: $fa-var-bold; }
}
.jstb_em {
@extend %jstb-icon;
&:before { content: $fa-var-italic; }
}
.jstb_ins {
@extend %jstb-icon;
&:before { content: $fa-var-underline; }
}
.jstb_del {
@extend %jstb-icon;
&:before { content: $fa-var-strikethrough; }
}
.jstb_code {
@extend %jstb-icon;
&:before { content: $fa-var-code; }
}
.jstb_h1 {
@extend %jstb-icon;
&:before { content: $fa-var-header; }
}
.jstb_h2 {
@extend %jstb-icon;
&:before { font-size: .7857em; content: $fa-var-header; }
}
.jstb_h3 {
@extend %jstb-icon;
&:before { font-size: .6429em; content: $fa-var-header; }
}
.jstb_ul {
@extend %jstb-icon;
&:before { content: $fa-var-list-ul; }
}
.jstb_ol {
@extend %jstb-icon;
&:before { content: $fa-var-list-ol; }
}
.jstb_bq {
@extend %jstb-icon;
&:before { content: $fa-var-indent; }
}
.jstb_unbq {
@extend %jstb-icon;
&:before { content: $fa-var-outdent; }
}
.jstb_pre {
@extend %jstb-icon;
&:before { content: $fa-var-terminal; }
}
.jstb_link {
@extend %jstb-icon;
&:before { content: $fa-var-link; }
}
.jstb_img {
@extend %jstb-icon;
&:before { content: $fa-var-image; }
}
.jstb_cut {
@extend %jstb-icon;
&:before { content: $fa-var-scissors; }
}
// For plugin https://github.com/mediatainment/redmine_codebutton
.jstb_codehighlight {
@extend %jstb-icon;
color: $brand-danger;
&:before { content: $fa-var-code; }
}
button.jstb_help {
@extend %jstb-icon;
color: $link-color;
&:hover {
color: $link-hover-color;
}
&:before { content: $fa-var-question-circle; }
}
&::before {
text-align: center;
}
}
.jstb_strong {
@extend %jstb-icon;
&::before { content: $fa-var-bold; }
}
.jstb_em {
@extend %jstb-icon;
&::before { content: $fa-var-italic; }
}
.jstb_ins {
@extend %jstb-icon;
&::before { content: $fa-var-underline; }
}
.jstb_del {
@extend %jstb-icon;
&::before { content: $fa-var-strikethrough; }
}
.jstb_code {
@extend %jstb-icon;
&::before { content: $fa-var-code; }
}
.jstb_h1 {
@extend %jstb-icon;
&::before { content: $fa-var-header; }
}
.jstb_h2 {
@extend %jstb-icon;
&::before { content: $fa-var-header; font-size: .7857em; }
}
.jstb_h3 {
@extend %jstb-icon;
&::before { content: $fa-var-header; font-size: .6429em; }
}
.jstb_ul {
@extend %jstb-icon;
&::before { content: $fa-var-list-ul; }
}
.jstb_ol {
@extend %jstb-icon;
&::before { content: $fa-var-list-ol; }
}
.jstb_bq {
@extend %jstb-icon;
&::before { content: $fa-var-indent; }
}
.jstb_unbq {
@extend %jstb-icon;
&::before { content: $fa-var-outdent; }
}
.jstb_pre {
@extend %jstb-icon;
&::before { content: $fa-var-terminal; }
}
.jstb_link {
@extend %jstb-icon;
&::before { content: $fa-var-link; }
}
.jstb_img {
@extend %jstb-icon;
&::before { content: $fa-var-image; }
}
.jstb_cut {
@extend %jstb-icon;
&::before { content: $fa-var-scissors; }
}
.jstb_precode,
// For plugin https://github.com/mediatainment/redmine_codebutton
.jstb_codehighlight {
@extend %jstb-icon;
color: $brand-danger;
&::before { content: $fa-var-code; }
}
button.jstb_help {
@extend %jstb-icon;
color: $link-color;
&:hover {
color: $link-hover-color;
}
&::before { content: $fa-var-question-circle; }
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -2,46 +2,86 @@
// Login form
// --------------------------------------------------
$login-form-width: 350px;
$login-input-width: 200px;
#login-form {
margin: $line-height-computed * 2 auto;
box-sizing: border-box;
margin: $line-height-computed * 2 auto;
label,
input:not([type="checkbox"]) {
width: 100%;
}
label {
display: block;
margin-bottom: $padding-base-vertical;
font-weight: $font-weight-bold;
&[for="autologin"] {
@include check;
margin-bottom: $line-height-computed;
}
> a {
float: right;
font-weight: $font-weight-normal;
}
}
input[type="text"],
input[type="password"] {
margin-bottom: $panel-body-padding-vertical;
}
table {
margin: auto;
table-layout: fixed;
}
td {
padding: 0;
&:first-child {
width: $login-form-label-width;
padding-right: $table-cell-padding;
white-space: nowrap;
}
> label {
margin-bottom: $panel-body-padding-vertical;
}
> input[type="submit"] {
width: auto;
margin-right: 0;
}
}
@media screen and (min-width: $login-form-box-breakpoint) {
width: $login-form-width;
padding: $padding-side;
border: 1px solid $panel-border;
border-radius: $border-radius-base;
background-color: $panel-bg;
box-shadow: $panel-shadow;
color: $panel-color;
table {
margin: auto;
width: 100%;
}
}
@media screen and (min-width: $screen-sm-min) {
width: $login-form-width;
padding: $panel-body-padding;
border: 1px solid $panel-border;
border-radius: $border-radius-base;
background-color: $panel-bg;
color: $panel-color;
box-shadow: $panel-shadow;
table {
width: 100%;
}
td {
width: 90%; // make columns expand
padding: $table-cell-padding;
}
@each $adjustment, $languages in $login-form-adjustments-map {
@each $language in $languages {
html[lang="#{$language}"] & td:first-child {
width: $login-form-label-width + $adjustment * 1em;
}
}
}
#username,
#password,
#openid_url {
width: $login-input-width;
}
}
#openid_url {
padding-right: 8px + 24px;
background-image: url("../../../images/openid-bg.gif");
background-repeat: no-repeat;
background-position: ($login-input-width - 24px) center;
padding-right: $input-padding-horizontal + 24px;
background-image: url("../../../images/openid-bg.gif");
background-repeat: no-repeat;
background-position: right $input-padding-horizontal center;
}

View File

@@ -2,41 +2,82 @@
// Pagination (multiple pages)
// --------------------------------------------------
.pagination {
.previous,
.next,
.page {
display: inline-block;
padding: $pagination-padding-vertical $pagination-padding-horizontal;
border: 1px solid $pagination-border;
border-radius: $border-radius-base;
background-color: $pagination-bg;
color: $pagination-color;
text-decoration: none;
.pages {
display: inline-block;
margin: 0;
padding: 0;
}
&:hover,
&:focus {
border-color: $pagination-hover-border;
background-color: $pagination-hover-bg;
color: $pagination-hover-color;
}
}
li {
display: inline-block;
margin-right: .3em;
list-style: none;
}
.page.current {
border-color: $pagination-active-border;
background-color: $pagination-active-bg;
color: $pagination-active-color;
cursor: default;
z-index: 2;
}
li > a,
li > span,
> .previous,
> .next,
> .page {
display: inline-block;
padding: $pagination-padding-vertical $pagination-padding-horizontal;
border: 1px solid $pagination-border;
border-radius: $border-radius-base;
background-color: $pagination-bg;
color: $pagination-color;
text-decoration: none;
white-space: nowrap;
}
.items,
.per-page {
display: inline-block;
margin: ($pagination-padding-vertical + 1px) 0 ($pagination-padding-vertical + 1px) $pagination-padding-vertical;
li > span {
border-color: $pagination-inactive-border;
background-color: $pagination-inactive-bg;
color: $pagination-inactive-color;
cursor: default;
}
.spacer > span {
padding: 0;
border: 0 none;
background: transparent;
color: $text-color;
}
a {
&:hover,
&:focus {
border-color: $pagination-hover-border;
background-color: $pagination-hover-bg;
color: $pagination-hover-color;
}
}
.page.current,
.current > span {
z-index: 2;
border-color: $pagination-active-border;
background-color: $pagination-active-bg;
color: $pagination-active-color;
cursor: default;
}
.items,
.per-page {
display: inline-block;
margin: ($pagination-padding-vertical + 1px) 0 ($pagination-padding-vertical + 1px) $pagination-padding-vertical;
}
}
p.pagination {
margin-bottom: 0;
float: left;
margin-bottom: 0;
float: left;
+ h1,
+ h2,
+ h3,
+ h4,
+ h5,
+ h6 {
clear: both;
}
}

View File

@@ -5,34 +5,42 @@
// --------------------------------------------------
#backlogs_view_issues_sidebar {
> a {
display: block;
padding: $sidebar-padding-vertical $sidebar-padding-horizontal;
border: 1px solid transparent;
> a {
display: block;
padding: $sidebar-padding-vertical $sidebar-padding-horizontal;
border: 1px solid transparent;
@if $sidebar-position == "left" {
margin-right: -($sidebar-padding-horizontal);
border-left-width: 3px;
border-radius: $border-radius-large 0 0 $border-radius-large;
} @else {
margin-left: -($sidebar-padding-horizontal);
border-right-width: 3px;
border-radius: 0 $border-radius-large $border-radius-large 0;
}
&:hover {
background-color: $sidebar-link-hover-bg;
text-decoration: none;
}
+ br {
display: none;
}
@if $sidebar-position == "left" {
margin-right: -($sidebar-padding-horizontal);
border-left-width: 3px;
border-radius: $border-radius-large 0 0 $border-radius-large;
} @else {
margin-left: -($sidebar-padding-horizontal);
border-right-width: 3px;
border-radius: 0 $border-radius-large $border-radius-large 0;
}
.burndown_chart {
max-width: $sidebar-width-computed;
&:hover {
background-color: $sidebar-link-hover-bg;
text-decoration: none;
}
+ br {
display: none;
}
}
.flyout-menu & {
a {
&:hover {
background-color: transparent;
}
}
}
.burndown_chart {
max-width: $sidebar-width-computed;
}
}
@@ -42,40 +50,52 @@
// --------------------------------------------------
@if $use-font-awesome {
.icon.icon-start,
.icon.icon-stop {
background-image: none;
.tt_list_button {
@extend %fa-icon;
font-size: 14px;
}
.icon,
.tt_list_button {
&.icon-start,
&.icon-stop {
background-image: none;
}
.icon.icon-start {
&.icon-start {
color: $icon-success-color;
&:hover,
&:focus {
color: $icon-success-color;
}
&:hover,
&:focus {
color: $icon-success-color;
}
&:before {
content: $fa-var-clock-o;
}
&::before {
content: $fa-var-clock-o;
}
}
.icon.icon-stop {
&.icon-stop {
color: $icon-danger-color;
&:hover,
&:focus {
color: $icon-danger-color;
}
&:hover,
&:focus {
color: $icon-danger-color;
}
&:before {
content: $fa-var-history;
}
&::before {
content: $fa-var-history;
}
}
}
.time-tracker-quick-menu:empty {
display: none;
}
.time-tracker-quick-menu:empty {
display: none;
}
#user-time-bookings-list {
clear: both;
}
}
@@ -85,129 +105,129 @@
// --------------------------------------------------
#people_list {
table.index {
margin-bottom: $line-height-computed;
}
table.index {
margin-bottom: $line-height-computed;
}
}
#content {
.person.details {
margin-bottom: $line-height-computed;
padding: $issue-padding;
border: 1px solid $issue-border;
border-radius: $border-radius-base;
background-color: $issue-bg;
.person.details {
margin-bottom: $line-height-computed;
padding: $issue-padding;
border: 1px solid $issue-border;
border-radius: $border-radius-base;
background-color: $issue-bg;
.avatar {
width: 64px;
max-width: 64px;
overflow: hidden;
}
.name,
.subject_info {
padding: 0 0 0 $issue-padding;
}
.name {
> h1 {
margin-bottom: 5px;
}
> p {
margin-bottom: 0;
}
}
.subject_info {
border-left: 1px solid $issue-border;
> ul {
margin: 0;
}
}
@if $use-font-awesome {
.icon {
background-image: none;
}
}
.avatar {
width: 64px;
max-width: 64px;
overflow: hidden;
}
.department.issue.details {
> p {
clear: both;
}
> .author {
margin-bottom: 0;
clear: none;
}
.name,
.subject_info {
padding: 0 0 0 $issue-padding;
}
.name {
> h1 {
margin-bottom: 5px;
}
> p {
margin-bottom: 0;
}
}
.subject_info {
border-left: 1px solid $issue-border;
> ul {
margin: 0;
}
}
@if $use-font-awesome {
.icon {
background-image: none;
}
}
}
.department.issue.details {
> p {
clear: both;
}
> .author {
margin-bottom: 0;
clear: none;
}
}
}
#sidebar {
.person.attributes {
font-size: $font-size-list;
.person.attributes {
font-size: $font-size-list;
th,
td {
padding: $table-condensed-cell-padding;
text-align: left;
vertical-align: top;
}
.icon {
padding-left: $table-condensed-cell-padding + 20px;
background-position: $table-condensed-cell-padding $table-condensed-cell-padding;
}
@if $use-font-awesome {
.icon {
background-image: none;
> a {
@extend %fa-icon;
}
}
}
.email {
td a {
display: block;
max-width: floor($sidebar-width / 3);
text-overflow: ellipsis;
overflow: hidden;
&:hover {
position: absolute;
max-width: 100%;
margin: -$table-condensed-cell-padding;
padding: $table-condensed-cell-padding;
background: $body-bg;
box-shadow: $panel-shadow;
}
}
}
th,
td {
padding: $table-condensed-cell-padding;
text-align: left;
vertical-align: top;
}
.person_data {
td.avatar,
td.name {
padding: 0 0 $table-cell-padding;
}
td.avatar {
width: 40px;
}
td.name {
h4 {
margin: 0;
letter-spacing: 0;
}
}
.icon {
padding-left: $table-condensed-cell-padding + 20px;
background-position: $table-condensed-cell-padding $table-condensed-cell-padding;
}
@if $use-font-awesome {
.icon {
background-image: none;
> a {
@extend %fa-icon;
}
}
}
.email {
td a {
display: block;
max-width: floor($sidebar-width / 3);
overflow: hidden;
text-overflow: ellipsis;
&:hover {
position: absolute;
max-width: 100%;
margin: -$table-condensed-cell-padding;
padding: $table-condensed-cell-padding;
background: $body-bg;
box-shadow: $panel-shadow;
}
}
}
}
.person_data {
td.avatar,
td.name {
padding: 0 0 $table-cell-padding;
}
td.avatar {
width: 40px;
}
td.name {
h4 {
margin: 0;
letter-spacing: 0;
}
}
}
}
@@ -217,11 +237,129 @@
// --------------------------------------------------
#toolbar-code-options {
select {
width: 100%;
select {
width: 100%;
}
.buttons {
white-space: nowrap;
}
}
//
// Redmine Stuff To Do
// https://github.com/raafael911/stuff_to_do_plugin
// --------------------------------------------------
#stuff-to-do {
p {
@if $sidebar-position == "left" {
margin-right: -($sidebar-padding-horizontal);
} @else {
margin-left: -($sidebar-padding-horizontal);
}
.buttons {
white-space: nowrap;
> a {
display: block;
padding: $sidebar-padding-vertical $sidebar-padding-horizontal;
@if $sidebar-position == "left" {
border-radius: $border-radius-large 0 0 $border-radius-large;
} @else {
border-radius: 0 $border-radius-large $border-radius-large 0;
}
&:hover {
background-color: $sidebar-link-hover-bg;
text-decoration: none;
}
}
> br {
display: none;
}
}
}
// Note: the following applies to the latest version
// of Stuff To Do plugin from the master branch.
.controller-stuff_to_do {
.menu {
label,
select {
margin-bottom: 5px;
}
}
.stuff-to-do-item {
padding: $table-cell-padding;
border: 1px solid $table-border-color;
border-width: $table-list-item-border;
background-color: $body-bg;
}
.pane {
ol {
padding: 0;
}
.issue-details {
width: 80%;
margin: 0;
@if $use-font-awesome {
a {
img {
display: none;
}
}
}
}
.progress {
width: 20%;
margin: 0;
}
.estimate {
top: $table-cell-padding - 1px;
right: $table-cell-padding;
left: auto;
width: 20%;
font-size: $font-size-small;
text-align: right;
}
}
}
//
// Redmine WikiNG
// https://github.com/martin-denizet/wiking
// --------------------------------------------------
div.wiking {
&.flash {
@if $use-font-awesome {
&.warning,
&.notice,
&.tip {
background-image: none;
}
&.tip {
&::before {
content: $fa-var-lightbulb-o;
}
}
} @else {
&.warning,
&.notice,
&.tip {
background-position: $padding-large-horizontal 50%;
}
}
}
}

View File

@@ -3,40 +3,77 @@
// --------------------------------------------------
@media print {
#top-menu,
#header,
#main-menu,
#sidebar,
#footer,
#wiki_add_attachment,
.hide-when-print,
.contextual,
.other-formats {
display: none;
#top-menu,
#header,
#main-menu,
#sidebar,
#footer,
#wiki_add_attachment,
.hide-when-print,
.contextual,
.other-formats {
display: none;
}
.pagination {
.pages,
.per-page {
display: none;
}
}
#main {
display: block;
overflow: visible !important; // scss-lint:disable ImportantRule
background: #fff;
}
#content {
width: 100%;
margin: 0;
padding: 0;
overflow: visible !important; // scss-lint:disable ImportantRule
border: 0;
background: #fff;
}
.autoscroll {
overflow-x: visible;
}
a {
// scss-lint:disable ImportantRule
padding: 0 !important;
background-color: transparent !important;
color: #000 !important;
&::before,
&::after {
display: none !important;
}
#main {
background: #fff;
&.issue.closed {
text-decoration: line-through;
}
}
table.list {
tr {
background-color: transparent;
}
#content {
// scss-lint:disable ImportantRule
width: 100%;
margin: 0;
th,
td {
border: 1px solid #aaa;
background-color: transparent;
&.buttons {
padding: 0;
border: 0;
background: #fff;
overflow: visible !important;
}
.autoscroll {
overflow-x: visible;
}
table.list {
th,
td {
border: 1px solid #aaa;
a {
display: none;
}
}
}
}
}

View File

@@ -3,52 +3,57 @@
// --------------------------------------------------
table.progress {
margin-top: 1px;
margin-right: 5px;
float: left;
border: 1px solid rgba(#000, .1);
empty-cells: show;
width: 80px;
margin-top: 1px;
margin-right: 5px;
float: left;
empty-cells: show;
border: 1px solid rgba(#000, .1);
td.done_ratio & {
margin-right: auto;
margin-left: auto;
float: none;
.version-overview & {
width: 40em;
}
td.done_ratio & {
margin-right: auto;
margin-left: auto;
float: none;
}
td {
height: 12px;
padding: 0;
border: 0 none;
&.closed {
background-color: $progress-bar-success-bg;
}
td {
height: 12px;
padding: 0;
border: 0 none;
&.closed {
background-color: $progress-bar-success-bg;
}
&.done {
background-color: mix($progress-bar-success-bg, $progress-bg, 50%);
}
&.todo {
background-color: $progress-bg;
}
&.done {
background-color: mix($progress-bar-success-bg, $progress-bg, 50%);
}
.issue & td {
padding: 0;
&.todo {
background-color: $progress-bg;
}
}
.issue & td {
padding: 0;
}
}
p {
&.percent {
margin-bottom: 0;
font-size: $font-size-small;
}
&.percent {
margin-bottom: 0;
font-size: $font-size-small;
}
&.progress-info {
margin-top: -4px;
margin-bottom: 0;
clear: left;
color: #777;
font-size: 80%;
}
&.progress-info {
margin-top: -4px;
margin-bottom: 0;
clear: left;
color: #777;
font-size: 80%;
}
}

View File

@@ -0,0 +1,209 @@
.theme-Purplemine2 {
@media screen and (max-width: $redmine-responsive-max) {
.flyout-menu + div {
#header {
height: $responsive-header-height;
background-color: $header-bg;
.jump-box-arrow {
&::before {
line-height: $responsive-header-height;
}
}
#quick-search {
select {
top: 0;
height: $responsive-header-height;
box-shadow: none;
}
}
}
#main {
padding-top: $responsive-header-height;
}
}
#header {
#project-jump {
padding: 0 $responsive-header-height 0 0;
.drdn-trigger {
display: block;
height: $responsive-header-height;
padding: 0 0 0 ($padding-base-horizontal + 30px);
background-color: transparent;
box-shadow: none;
line-height: $responsive-header-height;
&::before {
padding-left: $padding-base-horizontal;
font-size: 1.2em;
font-weight: normal;
line-height: $responsive-header-height * .9;
}
@if $use-font-awesome {
&::after {
display: none;
}
}
}
.drdn-content {
top: $responsive-header-height;
}
}
}
.mobile-toggle-button {
width: $responsive-header-height;
height: $responsive-header-height;
line-height: $responsive-header-height;
&:focus {
text-decoration: none;
}
}
.flyout-menu {
background-color: $flyout-menu-bg;
color: $flyout-menu-text;
&__search {
height: $responsive-header-height;
padding: ($padding-side / 2);
line-height: normal;
input[type='text'] {
height: $responsive-header-height - $padding-side;
line-height: $responsive-header-height - $padding-side;
}
}
a {
&,
&:hover,
&:focus {
color: $flyout-menu-link;
}
}
h3 {
border-top: 1px solid $flyout-menu-header-border;
border-bottom: 1px solid $flyout-menu-header-border;
background-color: $flyout-menu-header-bg;
color: $flyout-menu-header-text;
}
#admin-menu {
a {
background-position: 8px center;
@if $use-font-awesome {
&,
&:hover,
&:focus {
&::before {
color: $flyout-menu-link;
}
}
}
&.selected {
background-color: $body-bg;
color: $text-color;
@if $use-font-awesome {
&::before {
color: $text-color;
}
}
}
}
}
}
#query_form_content {
fieldset {
margin-bottom: $line-height-computed;
}
}
.search-magnifier {
&--flyout {
line-height: normal;
}
}
.splitcontentleft {
padding-right: 0;
float: none;
}
.splitcontentright {
padding-left: 0;
float: none;
}
p.buttons,
.other-formats > span,
#wiki_add_attachment > p,
#content > .contextual {
margin-bottom: $line-height-computed - $padding-small-horizontal;
padding: 0;
float: none;
text-align: left;
a {
display: inline-block;
margin: 0 $padding-small-vertical $padding-small-horizontal 0;
padding: ($btn-padding-vertical * 2) $btn-padding-horizontal;
border: 1px solid $pagination-border;
border-radius: $border-radius-base;
background-color: $pagination-bg;
background-position: $btn-padding-horizontal center;
font-weight: $btn-font-weight;
&:active,
&:hover,
&:focus {
border-color: $pagination-hover-border;
outline: 0;
background-color: $pagination-hover-bg;
text-decoration: none;
}
&:last-child {
margin-right: 0;
}
&.icon {
padding-left: 20px + $btn-padding-horizontal;
}
@if $use-font-awesome == false {
&.atom {
padding-left: 20px + $btn-padding-horizontal;
}
}
}
}
// For Redmine 3.4+
#my-page {
#list-left {
width: 100%;
padding-right: 0;
float: none;
}
#list-right {
width: 100%;
padding-left: 0;
float: none;
}
}
}
}

View File

@@ -0,0 +1,380 @@
//
// Syntax highlight - Rouge
// --------------------------------------------------
.syntaxhl {
background: #fafafa;
.hll {
background-color: #ffc;
}
// Comment
.c {
color: #888;
}
// Error
.err {
background-color: #faa;
color: #f00;
}
// Keyword
.k {
color: #080;
font-weight: bold;
}
// Operator
.o {
color: #333;
}
// Comment.Hashbang
.ch {
color: #888;
}
// Comment.Multiline
.cm {
color: #888;
}
// Comment.Preproc
.cp {
color: #579;
}
// Comment.PreprocFile
.cpf {
color: #888;
}
// Comment.Single
.c1 {
color: #888;
}
// Comment.Special
.cs {
color: #c00;
font-weight: bold;
}
// Generic.Deleted
.gd {
color: #a00000;
}
// Generic.Emph
.ge {
font-style: italic;
}
// Generic.Error
.gr {
color: #f00;
}
// Generic.Heading
.gh {
color: #000080;
font-weight: bold;
}
// Generic.Inserted
.gi {
color: #00a000;
}
// Generic.Output
.go {
color: #888;
}
// Generic.Prompt
.gp {
color: #c65d09;
font-weight: bold;
}
// Generic.Strong
.gs {
font-weight: bold;
}
// Generic.Subheading
.gu {
color: #800080;
font-weight: bold;
}
// Generic.Traceback
.gt {
color: #04d;
}
// Keyword.Constant
.kc {
color: #080;
font-weight: bold;
}
// Keyword.Declaration
.kd {
color: #080;
font-weight: bold;
}
// Keyword.Namespace
.kn {
color: #080;
font-weight: bold;
}
// Keyword.Pseudo
.kp {
color: #038;
font-weight: bold;
}
// Keyword.Reserved
.kr {
color: #080;
font-weight: bold;
}
// Keyword.Type
.kt {
color: #339;
font-weight: bold;
}
// Literal.Number
.m {
color: #60e;
font-weight: bold;
}
// Literal.String
.s {
background-color: #fff0f0;
}
// Name.Attribute
.na {
color: #00c;
}
// Name.Builtin
.nb {
color: #007020;
}
// Name.Class
.nc {
color: #b06;
font-weight: bold;
}
// Name.Constant
.no {
color: #036;
font-weight: bold;
}
// Name.Decorator
.nd {
color: #555;
font-weight: bold;
}
// Name.Entity
.ni {
color: #800;
font-weight: bold;
}
// Name.Exception
.ne {
color: #f00;
font-weight: bold;
}
// Name.Function
.nf {
color: #06b;
font-weight: bold;
}
// Name.Label
.nl {
color: #970;
font-weight: bold;
}
// Name.Namespace
.nn {
color: #0e84b5;
font-weight: bold;
}
// Name.Tag
.nt {
color: #070;
}
// Name.Variable
.nv {
color: #963;
}
// Operator.Word
.ow {
color: #000;
font-weight: bold;
}
// Text.Whitespace
.w {
color: #bbb;
}
// Literal.Number.Bin
.mb {
color: #60e;
font-weight: bold;
}
// Literal.Number.Float
.mf {
color: #60e;
font-weight: bold;
}
// Literal.Number.Hex
.mh {
color: #058;
font-weight: bold;
}
// Literal.Number.Integer
.mi {
color: #00d;
font-weight: bold;
}
// Literal.Number.Oct
.mo {
color: #40e;
font-weight: bold;
}
// Literal.String.Affix
.sa {
background-color: #fff0f0;
}
// Literal.String.Backtick
.sb {
background-color: #fff0f0;
}
// Literal.String.Char
.sc {
color: #04d;
}
// Literal.String.Delimiter
.dl {
background-color: #fff0f0;
}
// Literal.String.Doc
.sd {
color: #d42;
}
// Literal.String.Double
.s2 {
background-color: #fff0f0;
}
// Literal.String.Escape
.se {
background-color: #fff0f0;
color: #666;
font-weight: bold;
}
// Literal.String.Heredoc
.sh {
background-color: #fff0f0;
}
// Literal.String.Interpol
.si {
background-color: #eee;
}
// Literal.String.Other
.sx {
background-color: #fff0f0;
color: #d20;
}
// Literal.String.Regex
.sr {
background-color: #fff0ff;
color: #000;
}
// Literal.String.Single
.s1 {
background-color: #fff0f0;
}
// Literal.String.Symbol
.ss {
color: #a60;
}
// Name.Builtin.Pseudo
.bp {
color: #007020;
}
// Name.Function.Magic
.fm {
color: #06b;
font-weight: bold;
}
// Name.Variable.Class
.vc {
color: #369;
}
// Name.Variable.Global
.vg {
color: #d70;
font-weight: bold;
}
// Name.Variable.Instance
.vi {
color: #33b;
}
// Name.Variable.Magic
.vm {
color: #963;
}
// Literal.Number.Integer.Long
.il {
color: #00d;
font-weight: bold;
}
}

View File

@@ -4,124 +4,124 @@
#activity dl,
#search-results {
margin-left: $padding-side;
margin-left: $padding-side;
}
#activity,
#search-results {
dd {
margin-bottom: $line-height-computed;
padding-top: .1em;
}
dd {
margin-bottom: $line-height-computed;
padding-top: .1em;
}
dt {
padding-left: $padding-side;
background-repeat: no-repeat;
background-position: 0 center;
}
dt {
padding-left: $padding-side;
background-repeat: no-repeat;
background-position: 0 center;
}
span.project:after {
content: " -";
}
span.project::after {
content: " -";
}
span.description {
display: block;
color: $gray;
font-style: italic;
}
span.description {
display: block;
color: $gray;
font-style: italic;
}
}
#activity {
$activity-avatar: 24px;
$activity-avatar-space: 5px;
$activity-indent: 20px;
$activity-avatar: 24px;
$activity-avatar-space: 5px;
$activity-indent: 20px;
@if $use-gravatars {
$activity-indent: $activity-indent + $activity-avatar + $activity-avatar-space;
}
h3,
h4 {
margin: 0 0 $line-height-computed;
padding-bottom: .2em;
border-bottom: 1px dotted $gray-light;
font-size: $font-size-h4;
font-weight: normal;
}
dt {
&.grouped {
margin-left: $activity-indent;
}
&.me .time {
border-bottom: 1px solid $gray-lighter;
}
.time {
color: $gray;
}
@if $use-gravatars {
$activity-indent: $activity-indent + $activity-avatar + $activity-avatar-space;
.gravatar {
margin-top: -2px;
margin-right: $activity-avatar-space;
float: left;
}
}
}
h3,
h4 {
margin: 0 0 $line-height-computed;
padding-bottom: .2em;
border-bottom: 1px dotted $gray-light;
font-size: $font-size-h4;
font-weight: normal;
}
dt {
&.grouped {
margin-left: $activity-indent;
}
&.me .time {
border-bottom: 1px solid $gray-lighter;
}
.time {
color: $gray;
}
@if $use-gravatars {
.gravatar {
margin-top: -2px;
margin-right: $activity-avatar-space;
float: left;
}
}
}
dd {
font-size: $font-size-small;
overflow: hidden;
&.grouped {
margin-left: $activity-indent;
}
dd {
overflow: hidden;
font-size: $font-size-small;
&.grouped {
margin-left: $activity-indent;
}
}
}
#search-results-counts {
float: right;
float: right;
ul {
@extend %clearfix;
}
ul {
@extend %clearfix;
}
li {
margin-left: 1em;
float: left;
list-style-type: none;
}
li {
margin-left: 1em;
float: left;
list-style-type: none;
}
}
// Search form
#search-form {
input,
select {
margin-right: 5px;
}
margin-bottom: $line-height-computed;
label {
display: inline-block;
margin-right: 5px;
@include checkbox;
}
input,
select {
margin-right: 5px;
}
p:last-child {
margin-bottom: 0;
}
label {
@include check-inline;
}
p:last-child {
margin-bottom: 0;
}
}
// Search results highlight
.highlight {
background-color: #fe8;
background-color: #fe8;
&.token-1 { background-color: #fba; }
&.token-2 { background-color: #afb; }
&.token-3 { background-color: #aef; }
&.token-1 { background-color: #fba; }
&.token-2 { background-color: #afb; }
&.token-3 { background-color: #aef; }
}

View File

@@ -2,167 +2,191 @@
// Tabs
// --------------------------------------------------
$tabs-height: $line-height-computed + $tab-padding-vertical * 2 + 1px + 1px;
.tabs {
$tabs-buttons-width: 40px;
$tabs-buttons-width: 40px;
position: relative;
margin-bottom: $line-height-computed;
overflow: hidden;
position: relative;
overflow: hidden;
@if not $flexbox-layout {
padding-right: $tabs-buttons-width;
@if not $flexbox-layout {
padding-right: $tabs-buttons-width;
}
> ul {
box-sizing: border-box;
margin: 0;
padding-left: 0;
list-style: none;
@if $flexbox-layout {
display: flex;
flex-wrap: nowrap;
height: $tabs-height;
} @else {
width: 2000px;
@extend %clearfix;
}
> ul {
// scss-lint:disable VendorPrefix
margin: 0;
padding-left: 0;
border-bottom: 1px solid $tab-border;
list-style: none;
> li {
@if $flexbox-layout {
flex: 0 1 auto;
} @else {
float: left;
}
@if $flexbox-layout {
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
height: $line-height-computed + $tab-padding-vertical * 2 + 1px;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
} @else {
width: 2000px;
@extend %clearfix;
}
> a {
display: block;
box-sizing: border-box;
min-width: 3em;
height: $tabs-height;
margin-right: 2px;
padding: $tab-padding-vertical $tab-padding-horizontal;
border: 1px solid transparent;
border-radius: $border-radius-base $border-radius-base 0 0;
text-align: center;
white-space: nowrap;
}
}
}
> li {
margin-bottom: -1px;
.tabs-buttons {
position: absolute;
top: 0;
right: 0;
width: $tabs-buttons-width;
background-color: $body-bg;
@if $flexbox-layout {
-webkit-flex: 0 1 auto;
-ms-flex: 0 1 auto;
flex: 0 1 auto;
} @else {
float: left;
}
> button {
width: 50%;
height: $tabs-height;
margin: 0;
padding: 0;
float: left;
transition: opacity .1s;
border: 0 none;
border-bottom: 1px solid $tab-border;
border-radius: 0;
opacity: .8;
background-color: $body-bg;
background-repeat: no-repeat;
background-position: center center;
box-shadow: none;
> a {
display: block;
min-width: 2em;
margin-right: 2px;
padding: $tab-padding-vertical $tab-padding-horizontal;
border: 1px solid transparent;
border-radius: $border-radius-base $border-radius-base 0 0;
text-align: center;
white-space: nowrap;
&:hover,
&:active {
opacity: 1;
}
&:hover,
&:focus {
border-color: $tab-hover-border $tab-hover-border $tab-border;
background-color: $tab-hover-bg;
text-decoration: none;
}
&.selected {
border-color: $tab-active-border $tab-active-border $tab-active-bg;
background: $tab-active-bg;
color: $tab-active-text;
}
}
}
&:active {
background-color: $tab-hover-bg;
}
}
.tabs-buttons {
position: absolute;
top: 0;
right: 0;
width: $tabs-buttons-width;
padding-left: 5px;
border-bottom: 1px solid $tab-border;
background-color: $body-bg;
> button {
width: 50%;
height: $tab-padding-vertical * 2 + $line-height-computed + 1px;
margin: 0;
padding: 0;
float: left;
border: 0 none;
background-color: $body-bg;
background-repeat: no-repeat;
background-position: center center;
box-shadow: none;
opacity: .8;
@include transition(opacity .1s);
&:hover,
&:active {
opacity: 1;
}
&:active {
background-color: $tab-hover-bg;
}
}
.tab-left {
@extend %image-arrow-left;
}
.tab-right {
@extend %image-arrow-right;
}
.tab-left {
@extend %image-arrow-left;
}
.tab-right {
@extend %image-arrow-right;
}
}
}
/**
* Specific tabs content layout
*/
div.tabs:not(#main-menu) {
height: $tabs-height;
margin-bottom: $line-height-computed;
> ul {
margin: 0;
padding: 0;
border-bottom: 1px solid $tab-border;
> li {
margin: 0 0 -1px;
background: transparent;
> a {
padding: $tab-padding-vertical $tab-padding-horizontal;
border-color: transparent;
background: transparent;
color: $link-color;
font: inherit;
&:hover,
&:focus {
border-color: $tab-hover-border $tab-hover-border $tab-border;
background-color: $tab-hover-bg;
color: $link-hover-color;
text-decoration: none;
}
&.selected {
border-color: $tab-active-border $tab-active-border $tab-active-bg;
background: $tab-active-bg;
color: $tab-active-text;
}
}
}
}
}
//== Specific tabs content layout
//
#tab-content-modules fieldset p {
margin: 3px 0 4px;
margin: 3px 0 4px;
}
#tab-content-members,
#tab-content-memberships,
#tab-content-users {
.splitcontentleft {
width: 65%;
.splitcontentleft {
width: 65%;
}
.splitcontentright {
width: 35%;
}
fieldset {
margin-bottom: $line-height-computed;
legend {
font-weight: $font-weight-bold;
}
.splitcontentright {
width: 35%;
label {
@include check;
display: block;
margin-bottom: 3px;
}
fieldset {
margin-bottom: $line-height-computed;
legend {
font-weight: $font-weight-bold;
}
label {
display: block;
margin-bottom: 3px;
@include checkbox;
}
label[for=principal_search] {
padding-left: 0;
}
label[for=principal_search] {
padding-left: 0;
}
}
.pagination .items {
margin-left: 0;
}
.pagination .items {
margin-left: 0;
}
}
#tab-content-members,
#tab-content-users {
#principals {
max-height: 400px;
overflow: auto;
}
#principals {
max-height: 400px;
overflow: auto;
}
}
#tab-content-memberships .splitcontentright select {
width: 100%;
width: 100%;
}
#principals_for_new_member {
.pagination {
float: none;
}
}

View File

@@ -3,131 +3,125 @@
// --------------------------------------------------
#top-menu {
position: relative;
padding: $padding-small-vertical $padding-side;
background: $top-menu-bg;
color: $top-menu-text;
font-size: $font-size-small;
@extend %clearfix;
@extend %clearfix;
position: relative;
padding: $padding-small-vertical $padding-side;
background: $top-menu-bg;
color: $top-menu-text;
font-size: $font-size-small;
@if $top-menu-collapse {
$toggler-position-v: $padding-small-vertical + 1px;
$toggler-position-h: 1px;
@if $top-menu-collapse {
$toggler-position-v: $padding-small-vertical + 1px;
$toggler-position-h: 1px;
max-height: floor($font-size-base * $font-size-small-unitless * $line-height-base) + $padding-small-vertical;
padding-bottom: 0;
overflow: hidden;
max-height: floor($font-size-base * $font-size-small-unitless * $line-height-base) + $padding-small-vertical;
padding-bottom: 0;
overflow: hidden;
&.expanded {
max-height: none;
}
a {
display: inline-block;
margin-bottom: $padding-small-vertical;
white-space: nowrap;
}
.top-menu-toggler {
display: block;
position: absolute;
top: $toggler-position-v;
@if $sidebar-position == "left" {
left: $toggler-position-h;
} @else {
right: $toggler-position-h;
}
@include user-select(none);
@if $use-font-awesome {
font-size: 14px;
&:before {
content: $fa-var-caret-square-o-down;
}
} @else {
@extend %image-arrow-down-white;
}
@if $use-font-awesome {
@extend %fa-icon;
color: mix($top-menu-link, $top-menu-bg, 33%);
line-height: 1;
&:before {
margin-right: 0;
}
&:hover,
&:focus,
&:active {
color: mix($top-menu-link-hover, $top-menu-bg, 50%);
}
} @else {
width: 15px;
height: 15px;
border-radius: $border-radius-base;
background-repeat: no-repeat;
background-position: center center;
&:hover,
&:focus,
&:active {
background-color: lighten($top-menu-bg, 15%);
}
}
&.expanded {
@if $use-font-awesome {
&:before {
content: $fa-var-caret-square-o-up;
}
} @else {
@extend %image-arrow-up-white;
}
}
@media screen and (min-width: $top-menu-collapse-breakpoint) {
display: none;
}
}
}
ul {
margin: 0;
padding: 0;
}
li {
display: inline;
margin: 0 .5em 0 0;
padding: 0;
list-style-type: none;
&.expanded {
max-height: none;
}
a {
color: $top-menu-link;
font-weight: $font-weight-bold;
display: inline-block;
margin-bottom: $padding-small-vertical;
white-space: nowrap;
}
&:hover {
color: $top-menu-link-hover;
text-decoration: none;
.top-menu-toggler {
display: block;
position: absolute;
top: $toggler-position-v;
@if $sidebar-position == "left" {
left: $toggler-position-h;
} @else {
right: $toggler-position-h;
}
user-select: none;
@if $use-font-awesome {
@extend %fa-icon;
color: mix($top-menu-link, $top-menu-bg, 33%);
font-size: 14px;
line-height: 1;
&::before {
content: $fa-var-caret-square-o-down;
margin-right: 0;
}
}
#loggedas {
margin-left: 1em;
float: right;
&:hover,
&:focus,
&:active {
color: mix($top-menu-link-hover, $top-menu-bg, 50%);
}
} @else {
@extend %image-arrow-down-white;
width: 15px;
height: 15px;
border-radius: $border-radius-base;
background-repeat: no-repeat;
background-position: center center;
&:hover,
&:focus,
&:active {
background-color: lighten($top-menu-bg, 15%);
}
}
&.expanded {
@if $use-font-awesome {
&::before {
content: $fa-var-caret-square-o-up;
}
} @else {
@extend %image-arrow-up-white;
}
}
@media screen and (min-width: $top-menu-collapse-breakpoint) {
display: none;
}
}
}
ul {
margin: 0;
padding: 0;
}
li {
display: inline;
margin: 0 .5em 0 0;
padding: 0;
list-style-type: none;
white-space: nowrap;
}
a {
color: $top-menu-link;
font-weight: $font-weight-bold;
&:hover {
color: $top-menu-link-hover;
text-decoration: none;
}
}
#loggedas {
margin-left: 1em;
float: right;
}
}
#account {
float: right;
float: right;
> ul > li {
margin-right: 0;
margin-left: .5em;
}
> ul > li {
margin-right: 0;
margin-left: .5em;
}
}
@@ -136,220 +130,288 @@
// --------------------------------------------------
#header {
position: relative;
background-color: $header-bg;
color: $header-text;
@extend %clearfix;
@extend %clearfix;
position: relative;
background-color: $header-bg;
color: $header-text;
> h1 {
padding: $header-padding-vertical $header-padding-horizontal;
> h1 {
padding: $header-padding-vertical $header-padding-horizontal;
@if $use-logo {
padding-left: $logo-image-width + $logo-position-horizontal + $logo-space;
background-image: url("../images/logo/logo.png");
background-repeat: no-repeat;
background-position: $logo-position-horizontal $logo-position-vertical;
@if $use-logo {
padding-left: $logo-image-width + $logo-position-horizontal + $logo-space;
background-image: url("../images/logo/logo.png");
background-repeat: no-repeat;
background-position: $logo-position-horizontal $logo-position-vertical;
@if $use-retina-logo {
@include img-retina("../images/logo/logo@2x.png", $logo-image-width, $logo-image-height);
}
}
> .root {
color: $header-root;
font-weight: 500;
}
> .ancestor {
font-weight: 500;
}
@if $use-retina-logo {
@include img-retina("../images/logo/logo@2x.png", $logo-image-width, $logo-image-height);
}
}
a {
color: $header-link;
.root {
color: $header-root;
font-weight: 500;
}
.ancestor {
font-weight: 500;
}
.root,
.ancestor {
display: inline-block;
}
.current-project {
display: inline-block;
}
}
a {
color: $header-link;
}
}
#quick-search {
margin-top: floor(($header-title-line-height + $header-padding-vertical * 2 - $input-height-base) / 2) - 1px;
margin-right: $header-padding-horizontal;
float: right;
color: $header-text;
margin-top: floor(($header-title-line-height + $header-padding-vertical * 2 - $input-height-base) / 2) - 1px;
margin-right: $header-padding-horizontal;
float: right;
color: $header-text;
label {
font-weight: 500;
form {
display: inline-block;
}
input {
width: $quick-search-width;
}
> form > input,
> select {
border-color: $quick-search-border;
&:focus {
border-color: $quick-search-border-focus;
}
}
option {
background-color: $input-bg;
color: $input-color;
&[disabled] {
color: $gray-lighter;
}
}
}
#project-jump {
display: inline-block;
&.expanded {
.drdn-trigger {
z-index: 1003;
height: auto;
padding-bottom: $header-padding-horizontal / 2;
border-color: $quick-search-dropdown-bg;
background-color: $quick-search-dropdown-bg;
}
}
.drdn {
&-trigger {
min-width: $quick-search-width;
border-color: $quick-search-border;
}
form {
display: inline;
}
&-content {
min-width: $quick-search-box-width;
background: $quick-search-dropdown-bg;
input,
select {
margin-left: 5px;
border-color: darken($header-bg, 15%);
background: darken($header-bg, 10%);
color: $header-root;
@include transition(color ease-in-out .1s, background-color ease-in-out .1s, border-color ease-in-out .1s);
> .quick-search {
padding: $header-padding-horizontal / 2;
&:focus {
border-color: darken($header-bg, 35%);
background-color: $input-bg;
color: $input-color;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, .3);
> input {
width: 100%;
}
}
}
option {
background-color: $input-bg;
color: $input-color;
&[disabled] {
color: $gray-lighter;
}
&-items {
border-top: 1px solid $quick-search-dropdown-border;
}
}
input {
width: 200px;
a {
color: $main-menu-link;
&:hover,
&:focus {
outline: 0 none;
background-color: $component-active-bg;
color: $component-active-color;
text-decoration: none;
}
}
.all-projects a {
font-weight: $font-weight-bold;
}
}
#main-menu {
background-color: $main-menu-bg;
box-shadow: inset 0 -1px $main-menu-border;
$tabs-height: $main-menu-padding-vertical * 2 + $line-height-computed;
@if $main-menu-collapse {
$toggler-position-v: $main-menu-padding-vertical + 3px;
$toggler-position-h: 1px;
clear: both;
background-color: $main-menu-bg;
box-shadow: inset 0 -1px $main-menu-border;
color: $text-color;
position: relative;
max-height: $line-height-computed + $main-menu-padding-vertical * 2;
overflow: hidden;
&.tabs {
margin-bottom: 0;
overflow: inherit;
&.expanded {
max-height: none;
}
.main-menu-toggler {
display: block;
position: absolute;
top: $toggler-position-v;
@if $sidebar-position == "left" {
left: $toggler-position-h;
} @else {
right: $toggler-position-h;
}
@include user-select(none);
@if $use-font-awesome {
font-size: 14px;
&:before {
content: $fa-var-caret-square-o-down;
}
} @else {
@extend %image-arrow-down;
}
@if $use-font-awesome {
@extend %fa-icon;
color: mix($main-menu-link, $main-menu-bg, 33%);
line-height: 1;
&:before {
margin-right: 0;
}
&:hover,
&:focus,
&:active {
color: mix($main-menu-link, $main-menu-bg, 50%);
}
} @else {
width: 15px;
height: 15px;
border-radius: $border-radius-base;
background-repeat: no-repeat;
background-position: center center;
&:hover,
&:focus,
&:active {
background-color: darken($main-menu-bg, 15%);
}
}
&.expanded {
@if $use-font-awesome {
&:before {
content: $fa-var-caret-square-o-up;
}
} @else {
@extend %image-arrow-up;
}
}
@media screen and (min-width: $main-menu-collapse-breakpoint) {
display: none;
}
}
} @else {
@media screen and (max-width: $screen-sm-max) {
font-size: $font-size-small-px;
> ul {
height: $tabs-height;
> li {
> a {
height: $tabs-height;
border: 0 none;
border-radius: 0;
background: transparent;
}
}
}
}
ul {
margin: 0;
padding: 0 ($padding-side - $main-menu-padding-horizontal);
color: $main-menu-link;
list-style: none;
@extend %clearfix;
> ul {
@extend %clearfix;
margin: 0;
padding: 0 ($padding-side - $main-menu-padding-horizontal);
list-style: none;
color: $main-menu-link;
> li {
margin-right: .5em;
float: left;
> li {
position: relative;
margin-right: .5em;
float: left;
> a {
display: block;
white-space: nowrap;
@include transition(box-shadow .2s);
@if $main-menu-collapse {
padding: $main-menu-padding-vertical $main-menu-padding-horizontal;
} @else {
padding: $main-menu-padding-vertical 0;
@media screen and (min-width: $screen-md-min) {
padding-right: $main-menu-padding-horizontal;
padding-left: $main-menu-padding-horizontal;
}
}
@media screen and (min-width: $screen-lg-min) {
padding-right: $main-menu-padding-horizontal * 2;
padding-left: $main-menu-padding-horizontal * 2;
}
&:hover,
&:focus {
outline: 0 none;
text-decoration: none;
box-shadow: inset 0 (-$main-menu-shadow-width) 0 $main-menu-shadow-hover;
}
&.selected {
padding-bottom: $main-menu-padding-vertical - $main-menu-shadow-width;
border-bottom: 3px solid $main-menu-shadow-active;
color: $main-menu-link-active;
font-weight: $font-weight-bold;
box-shadow: none;
}
}
&:hover {
> .new-object {
z-index: 100;
border-bottom: 1px solid $main-menu-dropdown-bg;
}
> .menu-children {
display: block;
}
}
> a {
display: block;
padding: $main-menu-padding-vertical $main-menu-padding-horizontal;
transition: box-shadow .15s;
color: $main-menu-link;
line-height: $line-height-computed;
white-space: nowrap;
@media screen and (min-width: $screen-lg-min) {
padding-right: $main-menu-padding-horizontal * 2;
padding-left: $main-menu-padding-horizontal * 2;
}
&:hover,
&:focus {
outline: 0 none;
box-shadow: inset 0 (-$main-menu-shadow-width) 0 $main-menu-shadow-hover;
text-decoration: none;
}
&.selected {
padding-bottom: $main-menu-padding-vertical - $main-menu-shadow-width;
border-bottom: 3px solid $main-menu-shadow-active;
box-shadow: none;
color: $main-menu-link-active;
font-weight: $font-weight-bold;
}
&.new-object {
position: relative;
min-width: 1.6em;
padding-bottom: $main-menu-padding-vertical - 1px;
border: 1px solid $main-menu-border;
border-width: 0 1px;
background-color: $main-menu-dropdown-bg;
color: $icon-success-color;
font-size: 2em;
font-weight: bold;
text-align: center;
&:hover,
&:focus {
box-shadow: none;
}
}
}
}
}
a {
color: $main-menu-link;
}
.menu-children {
@include nice-shadow(2);
display: none;
position: absolute;
z-index: 1001;
min-width: 130px;
margin: 0 1px;
padding: 0;
overflow: hidden;
list-style: none;
border-radius: 0 0 $border-radius-base $border-radius-base;
background: $main-menu-dropdown-bg;
&.visible {
display: block;
}
a {
color: $main-menu-link;
display: block;
padding: $tab-padding-vertical ($tab-padding-horizontal * 2);
border-top: 1px solid $main-menu-border;
color: $main-menu-link;
&:hover,
&:focus {
outline: 0 none;
background-color: $component-active-bg;
color: $component-active-color;
text-decoration: none;
}
}
> li:first-child > a {
border: 0 none;
}
}
.tabs-buttons {
display: none !important; // scss-lint:disable ImportantRule
padding-left: 0;
background-color: $main-menu-bg;
> button {
box-sizing: border-box;
height: $tabs-height;
background-color: $main-menu-bg;
}
}
ul + .tabs-buttons {
display: block !important; // scss-lint:disable ImportantRule
}
}

View File

@@ -1,306 +1,308 @@
.wiki.wiki-page {
margin-bottom: $line-height-computed;
font-size: $wiki-font-size;
margin-bottom: $line-height-computed;
font-size: $wiki-font-size;
@if $wiki-page-more-vertical-space {
/**
* Anchors will make headers more separated,
* and it will look better when you open page with hash in URL
*/
a[name]:empty {
display: block;
overflow: hidden;
}
/**
* Add some space between list items
*/
ul,
ol {
li {
margin-top: .25em;
}
ul,
ol {
margin-top: .25em;
margin-bottom: .25em;
li {
margin-top: .125em;
}
}
@if $wiki-page-more-vertical-space {
// Add some space between list items
ul,
ol {
li {
margin-top: .25em;
}
ul,
ol {
margin-top: .25em;
margin-bottom: .25em;
li {
margin-top: .125em;
}
}
}
}
}
.controller-wiki .wiki > .preview {
font-size: $wiki-font-size;
font-size: $wiki-font-size;
}
div.wiki {
color: $wiki-text;
line-height: $wiki-line-height;
color: $wiki-text;
line-height: $wiki-line-height;
//scss-lint:disable SingleLinePerSelector
h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
margin-top: 1em;
margin-bottom: $wiki-font-size;
font-weight: $headings-font-weight;
line-height: $headings-line-height;
//scss-lint:disable SingleLinePerSelector
h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
margin-top: 1em;
margin-bottom: $wiki-font-size;
font-weight: $headings-font-weight;
line-height: $headings-line-height;
}
h1, .h1 {
padding-bottom: .3em;
border-bottom: 1px solid $gray-lighter;
font-size: $font-size-h1;
line-height: 1.2;
}
h2, .h2 {
padding-bottom: .3em;
border-bottom: 1px solid $gray-lighter;
font-size: $font-size-h2;
line-height: 1.225;
}
h3, .h3 {
font-size: $font-size-h3;
line-height: 1.43;
}
h4, .h4 {
font-size: $font-size-h4;
}
h5, .h5 {
font-size: $font-size-h5;
}
h6, .h6 {
color: $gray;
font-size: $font-size-h6;
}
.text-normal {
font-weight: normal;
}
> a:first-child {
+ h1,
+ h2,
+ h3,
+ h4,
+ h5,
+ h6 {
margin-top: 0;
}
}
h1, .h1 { font-size: $font-size-h1; line-height: 1.2; }
h2, .h2 { font-size: $font-size-h2; line-height: 1.225; }
h3, .h3 { font-size: $font-size-h3; line-height: 1.43; }
h4, .h4 { font-size: $font-size-h4; }
h5, .h5 { font-size: $font-size-h5; }
h6, .h6 { font-size: $font-size-h6; }
h1, .h1,
h2, .h2 {
padding-bottom: .3em;
border-bottom: 1px solid $gray-lighter;
}
h6, .h6 {
color: $gray;
}
.text-normal {
> a:target {
+ h2,
+ h3,
+ h4,
+ h5,
+ h6 {
&::before {
content: "#";
display: inline-block;
width: .7em;
margin-left: -.7em;
color: $headings-anchor-color-active;
font-weight: normal;
}
}
}
>:last-child {
margin-bottom: 0;
}
blockquote {
>:first-child {
margin-top: 0;
}
> a:first-child {
+ h1,
+ h2,
+ h3,
+ h4,
+ h5,
+ h6 {
margin-top: 0;
}
}
> a:target {
+ h2,
+ h3,
+ h4,
+ h5,
+ h6 {
&:before {
display: inline-block;
width: .7em;
margin-left: -.7em;
color: $headings-anchor-color-active;
font-weight: normal;
content: "#";
}
}
}
> *:last-child {
margin-bottom: 0;
}
blockquote {
>:first-child {
margin-top: 0;
}
>:last-child {
margin-bottom: 0;
}
}
.contextual {
a {
opacity: .4;
&:hover {
opacity: 1;
}
}
>:last-child {
margin-bottom: 0;
}
}
.contextual {
a {
// scss-lint:disable DuplicateProperty
word-break: break-all;
word-break: break-word;
}
opacity: .5;
p,
ul,
ol {
margin-bottom: 1em;
&:hover {
opacity: 1;
}
}
}
a {
word-break: break-all;
word-break: break-word;
}
p,
ul,
ol {
margin-bottom: 1em;
}
ul,
ol {
padding-left: 1.5em;
ul,
ol {
padding-left: 1.5em;
ul,
ol {
margin-bottom: 0;
}
margin-bottom: 0;
}
}
li > p {
margin-top: ($line-height-computed / 2);
}
li > p {
margin-top: ($line-height-computed / 2);
}
table {
// scss-lint:disable DuplicateProperty
display: block;
width: 100%;
margin-bottom: $line-height-computed;
overflow: auto;
word-break: normal;
word-break: keep-all;
}
table {
display: block;
width: 100%;
margin-bottom: $line-height-computed;
overflow: auto;
word-break: normal;
word-break: keep-all;
}
tr:nth-child(2n) {
background-color: $table-bg-accent;
}
tr:nth-child(2n) {
background-color: $table-bg-accent;
}
td,
th {
padding: $table-cell-padding;
border: 1px solid $table-border-color;
}
.noborder {
border: 0 none;
td,
th {
padding: $table-cell-padding;
border: 1px solid $table-border-color;
border: 0 none;
}
}
.noborder {
border: 0 none;
a.new {
color: $brand-danger;
}
td,
th {
border: 0 none;
}
}
code {
padding: .2em .33em;
border-radius: $border-radius-base;
background-color: rgba(#000, .04);
font-size: $font-size-small;
}
a.new {
color: $brand-danger;
}
pre {
width: auto;
margin-bottom: 1.15em;
padding: 4px 8px;
overflow-x: auto;
overflow-y: hidden;
border: 1px solid #e7e7e7;
border-radius: $border-radius-base;
border-color: rgba(#000, .068);
background-color: rgba(#000, .03);
font-size: $font-size-small;
code {
padding: .2em .33em;
border-radius: $border-radius-base;
background-color: rgba(#000, .04);
font-size: $font-size-small;
padding: 0;
border-radius: 0;
background-color: transparent;
font-size: 1em;
}
}
img {
max-width: 100%;
vertical-align: middle;
}
.toc {
margin-bottom: $line-height-computed;
margin-left: 0;
padding: 0;
list-style-type: none;
&.right,
&.left {
max-width: 45%;
padding: 8px;
border: 1px solid $highlight-border;
border-radius: $border-radius-base;
background-color: $highlight-bg;
box-shadow: $panel-shadow;
font-size: $font-size-small;
a {
color: $highlight-text;
font-weight: normal;
text-decoration: none;
&:hover {
color: darken($highlight-text, 10%);
text-decoration: underline;
}
}
}
pre {
width: auto;
margin-bottom: 1.15em;
padding: 4px 8px;
border: 1px solid #e7e7e7;
border-radius: $border-radius-base;
border-color: rgba(#000, .068);
background-color: rgba(#000, .03);
overflow-x: auto;
overflow-y: hidden;
font-size: $font-size-small;
code {
padding: 0;
border-radius: 0;
background-color: transparent;
font-size: 1em;
}
&.right {
margin-right: 0;
margin-left: $line-height-computed;
float: right;
}
img {
max-width: 100%;
vertical-align: middle;
&.left {
margin-right: $line-height-computed;
margin-left: 0;
float: left;
}
.toc {
margin-bottom: $line-height-computed;
margin-left: 0;
padding: 0;
list-style-type: none;
ul {
margin: 0;
padding: 0;
font-size: $font-size-small;
&.right,
&.left {
max-width: 45%;
padding: 8px;
border: 1px solid $highlight-border;
border-radius: $border-radius-base;
background-color: $highlight-bg;
font-size: $font-size-small;
box-shadow: $panel-shadow;
ul {
font-size: 1em;
}
}
a {
color: $highlight-text;
font-weight: normal;
text-decoration: none;
li {
// scss-lint:disable SelectorDepth
margin: 0;
&:hover {
color: darken($highlight-text, 10%);
text-decoration: underline;
}
}
}
&.right {
margin-right: 0;
margin-left: $line-height-computed;
float: right;
}
&.left {
margin-right: $line-height-computed;
margin-left: 0;
float: left;
}
ul {
margin: 0;
padding: 0;
font-size: $font-size-small;
ul {
font-size: 1em;
}
}
li {
margin-left: 1.5em;
list-style-type: disc;
li {
// scss-lint:disable SelectorDepth
margin: 0;
list-style-type: circle;
li {
list-style-type: disc;
margin-left: 1.5em;
li {
list-style-type: circle;
li {
list-style-type: square;
}
}
}
li {
list-style-type: square;
}
}
}
}
}
.toc-active-prev + .toc {
padding-left: $padding-large-horizontal;
border-left: 4px solid $toc-active-border;
.toc-active-prev + .toc {
padding-left: $padding-large-horizontal;
border-left: 4px solid $toc-active-border;
a {
color: $toc-active-link;
a {
color: $toc-active-link;
&:focus,
&:hover {
color: $toc-active-link-hover;
}
}
&:focus,
&:hover {
color: $toc-active-link-hover;
}
}
}
}
h1,
@@ -309,72 +311,80 @@ h3,
h4,
h5,
h6 {
.wiki-anchor {
display: none;
position: relative;
top: -(1em - $font-size-small);
margin-left: 5px;
color: $headings-anchor-color !important; // scss-lint:disable ImportantRule
font-size: $font-size-small;
text-decoration: none !important; // scss-lint:disable ImportantRule
}
&:hover {
.wiki-anchor {
// scss-lint:disable ImportantRule
display: none;
position: relative;
top: -(1em - $font-size-small);
margin-left: 5px;
color: $headings-anchor-color !important;
font-size: $font-size-small;
text-decoration: none !important;
display: inline;
}
}
&:hover {
.wiki-anchor {
display: inline;
}
}
img {
display: inline-block;
max-width: 100%;
vertical-align: middle;
}
img {
display: inline-block;
max-width: 100%;
vertical-align: middle;
}
}
p.footnote {
margin-bottom: 5px;
margin-bottom: 5px;
&:before {
display: block;
width: 300px;
margin-top: $line-height-computed;
padding-top: $line-height-computed / 2;
border-top: 1px solid $gray-lighter;
content: "";
}
&::before {
content: "";
display: block;
width: 300px;
margin-top: $line-height-computed;
padding-top: $line-height-computed / 2;
border-top: 1px solid $gray-lighter;
}
+ p.footnote:before {
display: none;
}
+ p.footnote::before {
display: none;
}
}
.preview {
margin-top: $line-height-computed;
padding: $padding-wiki;
background-color: #fffbe5;
background-image: url("../images/draft.png");
background-position: center center;
margin-top: $line-height-computed;
padding: $padding-wiki;
background-color: #fffbe5;
background-image: url("../images/draft.png");
background-position: center center;
html[lang="pl"] & {
background-image: url("../images/draft-pl.png");
}
html[lang="pl"] & {
background-image: url("../images/draft-pl.png");
}
}
#wiki_add_attachment {
padding-top: $line-height-computed;
border-top: 1px solid $gray-lighter;
> p {
margin-bottom: 0;
float: left;
}
> form {
padding-top: $line-height-computed;
border-top: 1px solid $gray-lighter;
clear: left;
}
> p {
margin-bottom: 0;
float: left;
}
.collapsible & {
padding-top: 0;
border-top: 0;
#add_attachment_form {
padding-top: $line-height-computed;
clear: left;
> form {
padding-top: 0;
}
}
}
@@ -382,76 +392,80 @@ p.footnote {
// Custom classes for Bootstrap-like features
// --------------------------------------------------
/**
* Pager
* see: http://getbootstrap.com/components/#pagination-pager
*/
// Pager
// see: http://getbootstrap.com/components/#pagination-pager
.wiki-pager {
> a {
display: inline-block;
padding: $padding-base-vertical $padding-base-horizontal;
border: 1px solid $btn-default-border;
border-radius: ceil($font-size-base + ($padding-base-vertical + 1px) * 2) / 2;
background-color: $body-bg;
line-height: 1;
white-space: nowrap;
> a {
display: inline-block;
padding: $padding-base-vertical $padding-base-horizontal;
border: 1px solid $btn-default-border;
border-radius: ceil($font-size-base + ($padding-base-vertical + 1px) * 2) / 2;
background-color: $body-bg;
line-height: 1;
white-space: nowrap;
&:hover,
&:focus,
&:active {
background-color: $btn-default-bg;
text-decoration: none;
}
&:hover,
&:focus,
&:active {
background-color: $btn-default-bg;
text-decoration: none;
}
}
&.wiki-pager--aligned {
overflow: hidden;
> a:first-child {
float: left;
}
&.wiki-pager--aligned {
overflow: hidden;
> a:first-child {
float: left;
}
> a:last-child {
float: right;
}
> a:last-child {
float: right;
}
}
}
/**
* Typographic helper classes
*/
//== Typographic helper classes
//
// Lead body copy
// see: http://getbootstrap.com/css/#lead-body-copy
.lead {
margin-bottom: $line-height-computed;
font-size: floor(($font-size-base * 1.15));
font-weight: 300;
line-height: 1.4;
@media (min-width: $screen-sm-min) {
font-size: ($font-size-base * 1.5);
}
.lead {
margin-bottom: $line-height-computed;
font-size: floor(($font-size-base * 1.15));
font-weight: 300;
line-height: 1.4;
@media (min-width: $screen-sm-min) {
font-size: ($font-size-base * 1.5);
}
}
// Alignment
// see: http://getbootstrap.com/css/#type-alignment
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-justify { text-align: justify; }
.text-nowrap { white-space: nowrap; }
// Transformation
// see: http://getbootstrap.com/css/#type-transformation
.text-lowercase { text-transform: lowercase; }
.text-uppercase { text-transform: uppercase; }
.text-capitalize { text-transform: capitalize; }
/**
* Other helper classes
* see: http://getbootstrap.com/css/#helper-classes
*/
// Other helper classes
// see: http://getbootstrap.com/css/#helper-classes
.text-muted { color: $gray-light; }
.text-primary { color: $brand-primary; }
@@ -467,11 +481,11 @@ p.footnote {
.bg-danger { background-color: $state-danger; }
p {
&.bg-primary,
&.bg-success,
&.bg-info,
&.bg-warning,
&.bg-danger {
padding: $panel-body-padding;
}
&.bg-primary,
&.bg-success,
&.bg-info,
&.bg-warning,
&.bg-danger {
padding: $panel-body-padding;
}
}

View File

@@ -1,116 +1,119 @@
@if $enable-sidebar-toggler {
$toggler-position-v: 1px;
$toggler-position-h: 1px;
$toggler-position-v: 1px;
$toggler-position-h: 1px;
#main {
position: relative;
#main {
position: relative;
}
#sidebar {
@if $fixed-layout {
will-change: margin, opacity;
transition: margin .5s, opacity .5s;
opacity: 1;
} @else {
will-change: margin;
transition: margin .5s;
}
#sidebar {
@if $fixed-layout {
opacity: 1;
will-change: margin, opacity;
@include transition(margin .5s, opacity .5s);
} @else {
will-change: margin;
@include transition(margin .5s);
}
&.sidebar-hiding {
@if $fixed-layout {
opacity: 0;
}
@if $sidebar-position == "left" {
margin-left: -$sidebar-width;
} @else {
margin-right: -$sidebar-width;
}
}
&.sidebar-hidden {
display: none;
}
&.sidebar-hiding {
@if $fixed-layout {
opacity: 0;
}
@if $sidebar-position == "left" {
margin-left: -$sidebar-width;
} @else {
margin-right: -$sidebar-width;
}
}
.sidebar-toggler {
@include user-select(none);
&.sidebar-hidden {
display: none;
}
}
display: block;
position: absolute;
top: $toggler-position-v;
.sidebar-toggler {
display: block;
position: absolute;
top: $toggler-position-v;
user-select: none;
@media print {
display: none;
}
@if $use-font-awesome {
@extend %fa-icon;
color: $gray-light;
line-height: 1;
&::before {
margin-right: 0;
}
&:hover,
&:focus,
&:active {
color: $gray;
}
} @else {
width: 15px;
height: 15px;
border-radius: $border-radius-base;
background-repeat: no-repeat;
background-position: center center;
&:hover,
&:focus,
&:active {
background-color: $gray-lighter;
}
}
@if $sidebar-position == "left" {
left: $toggler-position-h;
@if $use-font-awesome {
&::before {
content: $fa-var-caret-square-o-left;
}
} @else {
@extend %image-arrow-left;
}
} @else {
right: $toggler-position-h;
@if $use-font-awesome {
&::before {
content: $fa-var-caret-square-o-right;
}
} @else {
@extend %image-arrow-right;
}
}
&.sidebar-hidden {
@if $sidebar-position == "left" {
@if $use-font-awesome {
@extend %fa-icon;
color: $gray-light;
line-height: 1;
&:before {
margin-right: 0;
}
&:hover,
&:focus,
&:active {
color: $gray;
}
&::before {
content: $fa-var-caret-square-o-right;
}
} @else {
width: 15px;
height: 15px;
border-radius: $border-radius-base;
background-repeat: no-repeat;
background-position: center center;
&:hover,
&:focus,
&:active {
background-color: $gray-lighter;
}
@extend %image-arrow-right;
}
@if $sidebar-position == "left" {
left: $toggler-position-h;
@if $use-font-awesome {
&:before {
content: $fa-var-caret-square-o-left;
}
} @else {
@extend %image-arrow-left;
}
} @else {
@if $use-font-awesome {
&::before {
content: $fa-var-caret-square-o-left;
}
} @else {
right: $toggler-position-h;
@if $use-font-awesome {
&:before {
content: $fa-var-caret-square-o-right;
}
} @else {
@extend %image-arrow-right;
}
}
&.sidebar-hidden {
@if $sidebar-position == "left" {
@if $use-font-awesome {
&:before {
content: $fa-var-caret-square-o-right;
}
} @else {
@extend %image-arrow-right;
}
} @else {
@if $use-font-awesome {
&:before {
content: $fa-var-caret-square-o-left;
}
} @else {
@extend %image-arrow-left;
}
}
@extend %image-arrow-left;
}
}
}
}
} @else {
.sidebar-toggler {
display: none;
}
.sidebar-toggler {
display: none;
}
}

View File

@@ -1,4 +1,4 @@
/*!
/**
* Font Awesome 4.2.0 by @davegandy - http://fontawesome.io - @fontawesome
* License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
*/

View File

@@ -1,26 +1,10 @@
// Mixins
// scss-lint:disable VendorPrefix
// --------------------------
@mixin fa-icon() {
display: inline-block;
font: normal normal normal 14px/1 FontAwesome; // shortening font declaration
font-size: inherit; // can't have font-size inherit on line above, so need to override
text-rendering: auto; // optimizelegibility throws things off #1094
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
@mixin fa-icon-rotate($degrees, $rotation) {
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation});
-webkit-transform: rotate($degrees);
-ms-transform: rotate($degrees);
transform: rotate($degrees);
}
@mixin fa-icon-flip($horiz, $vert, $rotation) {
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation});
-webkit-transform: scale($horiz, $vert);
-ms-transform: scale($horiz, $vert);
transform: scale($horiz, $vert);
display: inline-block;
font: normal normal normal 14px/1 FontAwesome; // shortening font declaration
text-rendering: auto; // optimizelegibility throws things off #1094
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

View File

@@ -2,12 +2,12 @@
* -------------------------- */
@font-face {
font-family: "FontAwesome";
src: url("#{$fa-font-path}/fontawesome-webfont.eot?v=#{$fa-version}");
src: url("#{$fa-font-path}/fontawesome-webfont.eot?#iefix&v=#{$fa-version}") format("embedded-opentype"),
url("#{$fa-font-path}/fontawesome-webfont.woff?v=#{$fa-version}") format("woff"),
url("#{$fa-font-path}/fontawesome-webfont.ttf?v=#{$fa-version}") format("truetype"),
url("#{$fa-font-path}/fontawesome-webfont.svg?v=#{$fa-version}#fontawesomeregular") format("svg");
font-weight: normal;
font-style: normal;
font-family: "FontAwesome";
src: url("#{$fa-font-path}/fontawesome-webfont.eot?v=#{$fa-version}");
src: url("#{$fa-font-path}/fontawesome-webfont.eot?#iefix&v=#{$fa-version}") format("embedded-opentype"),
url("#{$fa-font-path}/fontawesome-webfont.woff?v=#{$fa-version}") format("woff"),
url("#{$fa-font-path}/fontawesome-webfont.ttf?v=#{$fa-version}") format("truetype"),
url("#{$fa-font-path}/fontawesome-webfont.svg?v=#{$fa-version}#fontawesomeregular") format("svg");
font-weight: normal;
font-style: normal;
}

View File

@@ -1,58 +1,58 @@
// Button sizes
@mixin button-size($padding-vertical, $padding-horizontal, $font-size, $line-height, $border-radius) {
padding: $padding-vertical $padding-horizontal;
font-size: $font-size;
line-height: $line-height;
border-radius: $border-radius;
padding: $padding-vertical $padding-horizontal;
font-size: $font-size;
line-height: $line-height;
border-radius: $border-radius;
}
@mixin button-variant($color, $bg, $border) {
$correction: 1;
@if hue($bg) > 120 and hue($bg) < 160 or lightness($bg) > 90 {
$correction: .5;
}
$normal-shadow: darken($border, 12% * $correction);
$focus-bg: darken($bg, 12% * $correction);
$focus-border: darken($border, 12% * $correction);
$focus-shadow: darken($focus-border, 12% * $correction);
$active-bg: darken($bg, 12% * $correction);
$active-border: darken($border, 15% * $correction);
$active-shadow: inset 0 3px 4px -2px $active-border;
$correction: 1;
@if hue($bg) > 120 and hue($bg) < 160 or lightness($bg) > 90 {
$correction: .5;
}
$normal-shadow: darken($border, 12% * $correction);
$focus-bg: darken($bg, 12% * $correction);
$focus-border: darken($border, 12% * $correction);
$focus-shadow: darken($focus-border, 12% * $correction);
$active-bg: darken($bg, 12% * $correction);
$active-border: darken($border, 15% * $correction);
$active-shadow: inset 0 3px 4px -2px $active-border;
@if lightness($bg) > 98 {
$focus-bg: darken($bg, 5%);
$focus-border: darken($border, 5%);
$normal-shadow: none;
$focus-shadow: none;
}
@if lightness($bg) > 98 {
$focus-bg: darken($bg, 5%);
$focus-border: darken($border, 5%);
$normal-shadow: none;
$focus-shadow: none;
}
background-color: $bg;
background-color: $bg;
color: $color;
@if $normal-shadow == "none" {
border-color: $border;
box-shadow: none;
} @else {
border-color: $border $border $normal-shadow;
box-shadow: 0 1px 0 $normal-shadow;
}
&:hover,
&:focus {
background-color: $focus-bg;
color: $color;
@if $normal-shadow == "none" {
border-color: $border;
box-shadow: none;
@if $focus-shadow == "none" {
border-color: $focus-border;
box-shadow: none;
} @else {
border-color: $border $border $normal-shadow;
box-shadow: 0 1px 0 $normal-shadow;
border-color: $focus-border $focus-border $focus-shadow;
box-shadow: 0 1px 0 $focus-shadow;
}
}
&:hover,
&:focus {
background-color: $focus-bg;
color: $color;
@if $focus-shadow == "none" {
border-color: $focus-border;
box-shadow: none;
} @else {
border-color: $focus-border $focus-border $focus-shadow;
box-shadow: 0 1px 0 $focus-shadow;
}
}
&:active {
border-color: $active-border;
background-color: $active-bg;
box-shadow: $active-shadow;
@include translate(0, 1px);
}
&:active {
transform: translate(0, 1px);
border-color: $active-border;
background-color: $active-bg;
box-shadow: $active-shadow;
}
}

View File

@@ -1,7 +1,7 @@
// Center-align a block level element
@mixin center-block() {
display: block;
margin-left: auto;
margin-right: auto;
display: block;
margin-left: auto;
margin-right: auto;
}

View File

@@ -1,34 +1,15 @@
// Clearfix
//
// For modern browsers
// 1. The use of `table` rather than `block` is only necessary if using
// `:before` to contain the top-margins of child elements.
// 2. The space content is one way to avoid an Opera bug when the
// contenteditable attribute is included anywhere else in the document.
// Otherwise it causes space to appear at the top and bottom of elements
// that are clearfixed.
//
// Source: http://nicolasgallagher.com/micro-clearfix-hack/
// Source: http://cssmojo.com/the-very-latest-clearfix-reloaded/
@mixin clearfix() {
&:before,
&:after {
display: table; // 1
content: " "; // 2
}
&:after {
clear: both;
}
&::after {
content: "";
display: block;
clear: both;
}
}
// Lighter (for output CSS) cleafix with placeholder
%clearfix {
&:after {
display: table;
clear: both;
content: "";
}
@include clearfix;
}

View File

@@ -1,43 +1,75 @@
// Form control focus state
//
@mixin form-control-focus($color: $input-border-focus) {
&:focus {
border-color: $color;
outline: 0;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075), 0 0 5px rgba($color, .5);
}
&:focus {
border-color: rgba($input-border-focus, $input-border-focus-alpha);
outline: 0;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075), 0 0 0 2px rgba($input-border-focus, $input-shadow-focus-alpha);
}
}
// Placeholder text
//
@mixin placeholder($color: $input-color-placeholder) {
&::placeholder {
opacity: 1; // See https://github.com/twbs/bootstrap/pull/11526
color: $color;
}
}
// Form control sizing
//
@mixin input-size($parent, $input-height, $padding-vertical, $padding-horizontal, $font-size, $line-height, $border-radius) {
#{$parent} {
height: $input-height;
padding: $padding-vertical $padding-horizontal;
border-radius: $border-radius;
font-size: $font-size;
line-height: $line-height;
}
#{$parent} {
height: $input-height;
padding: $padding-vertical $padding-horizontal;
border-radius: $border-radius;
font-size: $font-size;
line-height: $line-height;
}
select#{$parent} {
height: $input-height;
line-height: $input-height;
}
select#{$parent} {
height: $input-height;
line-height: $input-height;
}
textarea#{$parent},
select[multiple]#{$parent} {
height: auto;
}
textarea#{$parent},
select[multiple]#{$parent} {
height: auto;
}
}
@mixin checkbox() {
padding-left: 20px;
@include user-select(none);
@extend %clearfix;
@mixin check() {
@extend %clearfix;
position: relative;
padding-left: $check-input-gutter;
text-align: left;
font-weight: $font-weight-normal;
input[type="checkbox"] {
margin-left: -20px;
float: left;
}
input[type="checkbox"],
input[type="radio"] {
position: absolute;
width: auto;
margin-top: $check-input-margin-vertical;
margin-left: -$check-input-gutter;
}
}
@mixin check-inline() {
@include check;
display: inline-block;
margin-right: $check-input-margin-horizontal;
}
@mixin check-list() {
@include check;
display: block;
width: auto;
margin: $btn-padding-vertical 0;
float: none;
@media screen and (min-width: $screen-sm-min) {
margin: 0;
}
}

View File

@@ -1,62 +0,0 @@
// Gradients
// scss-lint:disable VendorPrefix
// Horizontal gradient, from left to right
//
// Creates two color stops, start and end, by specifying a color and position for each color stop.
// Color stops are not available in IE9 and below.
@mixin gradient-horizontal($start-color: #555, $end-color: #333, $start-percent: 0%, $end-percent: 100%) {
background-image: -webkit-linear-gradient(left, $start-color $start-percent, $end-color $end-percent); // Safari 5.1-6, Chrome 10+
background-image: -o-linear-gradient(left, $start-color $start-percent, $end-color $end-percent); // Opera 12
background-image: linear-gradient(to right, $start-color $start-percent, $end-color $end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=1); // IE9 and down
}
// Vertical gradient, from top to bottom
//
// Creates two color stops, start and end, by specifying a color and position for each color stop.
// Color stops are not available in IE9 and below.
@mixin gradient-vertical($start-color: #555, $end-color: #333, $start-percent: 0%, $end-percent: 100%) {
background-image: -webkit-linear-gradient(top, $start-color $start-percent, $end-color $end-percent); // Safari 5.1-6, Chrome 10+
background-image: -o-linear-gradient(top, $start-color $start-percent, $end-color $end-percent); // Opera 12
background-image: linear-gradient(to bottom, $start-color $start-percent, $end-color $end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=0); // IE9 and down
}
@mixin gradient-directional($start-color: #555, $end-color: #333, $deg: 45deg) {
background-repeat: repeat-x;
background-image: -webkit-linear-gradient($deg, $start-color, $end-color); // Safari 5.1-6, Chrome 10+
background-image: -o-linear-gradient($deg, $start-color, $end-color); // Opera 12
background-image: linear-gradient($deg, $start-color, $end-color); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
}
@mixin gradient-horizontal-three-colors($start-color: #00b3ee, $mid-color: #7a43b6, $color-stop: 50%, $end-color: #c3325f) {
background-image: -webkit-linear-gradient(left, $start-color, $mid-color $color-stop, $end-color);
background-image: -o-linear-gradient(left, $start-color, $mid-color $color-stop, $end-color);
background-image: linear-gradient(to right, $start-color, $mid-color $color-stop, $end-color);
background-repeat: no-repeat;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=1); // IE9 and down, gets no color-stop at all for proper fallback
}
@mixin gradient-vertical-three-colors($start-color: #00b3ee, $mid-color: #7a43b6, $color-stop: 50%, $end-color: #c3325f) {
background-image: -webkit-linear-gradient($start-color, $mid-color $color-stop, $end-color);
background-image: -o-linear-gradient($start-color, $mid-color $color-stop, $end-color);
background-image: linear-gradient($start-color, $mid-color $color-stop, $end-color);
background-repeat: no-repeat;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=0); // IE9 and down, gets no color-stop at all for proper fallback
}
@mixin gradient-radial($inner-color: #555, $outer-color: #333) {
background-image: -webkit-radial-gradient(circle, $inner-color, $outer-color);
background-image: radial-gradient(circle, $inner-color, $outer-color);
background-repeat: no-repeat;
}
@mixin gradient-striped($color: rgba(255, 255, 255, .15), $angle: 45deg) {
background-image: -webkit-linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
background-image: -o-linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
background-image: linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
}

View File

@@ -2,14 +2,14 @@
//
@mixin img-retina($file-2x, $width-1x, $height-1x) {
@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (min--moz-device-pixel-ratio: 2),
only screen and (-o-min-device-pixel-ratio: 2/1),
only screen and (min-device-pixel-ratio: 2),
only screen and (min-resolution: 192dpi),
only screen and (min-resolution: 2dppx) {
background-image: url("#{$file-2x}");
background-size: $width-1x $height-1x;
}
@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (min--moz-device-pixel-ratio: 2),
only screen and (-o-min-device-pixel-ratio: 2/1),
only screen and (min-device-pixel-ratio: 2),
only screen and (min-resolution: 192dpi),
only screen and (min-resolution: 2dppx) {
background-image: url("#{$file-2x}");
background-size: $width-1x $height-1x;
}
}

View File

@@ -1,182 +1,196 @@
// Priority highlight
@mixin priority($parent, $background, $color, $link) {
@if lightness($background) < 85% {
$background: lighten($background, 6%);
@if lightness($background) < 85% {
$background: lighten($background, 6%);
}
$border-color: darken(desaturate($background, 30%), 13.5%);
table.list:not(.odd-even) tbody tr#{$parent} {
@if $table-list-color-odd-rows {
&:nth-child(odd) {
background: darken($background, $table-accent-factor * 100%);
}
}
$border-color: darken(desaturate($background, 30%), 13.5%);
@if $table-list-color-even-rows {
&:nth-child(even) {
background: darken($background, $table-accent-factor * 100%);
}
}
}
tr#{$parent} {
tr#{$parent} {
background: $background;
@if ".priority-default" == $parent {
color: $color;
} @else {
color: darken($color, 10%);
}
@if $table-list-color-odd-rows {
&.odd {
background: darken($background, $table-accent-factor * 100%);
}
}
@if $table-list-color-even-rows {
&.even {
background: darken($background, $table-accent-factor * 100%);
}
}
td {
border-color: $border-color;
}
a {
color: $link;
&:hover {
color: darken($link, 10%);
}
}
}
@if $table-list-highlight-rows {
table.list > tbody > tr#{$parent}:hover {
background: darken($background, $table-hover-factor * 100%);
}
@if $table-list-color-odd-rows {
&.odd {
background: darken($background, ($table-accent-factor + $table-hover-factor) * 100%);
}
}
@if $table-list-color-even-rows {
&.even {
background: darken($background, ($table-accent-factor + $table-hover-factor) * 100%);
}
}
}
@if $colored-issue {
.issue.details#{$parent} {
color: $color;
@if ".priority-default" == $parent {
$border-color: $issue-border;
background: $issue-bg;
} @else {
background: $background;
}
&,
hr {
border-color: $border-color;
}
a {
color: $link;
&:hover {
color: darken($link, 10%);
}
}
.next-prev-links {
color: mix($color, $gray-light, 25%);
}
> .description > .wiki {
border-top-color: $border-color;
}
.wiki {
a {
color: $link-color;
text-decoration: none;
&:hover,
&:focus {
color: $link-hover-color;
text-decoration: $link-hover-decoration;
}
&.new {
color: $brand-danger;
}
}
}
> .attachments {
border-top-color: lighten($border-color, 5%);
@if ".priority-default" == $parent {
color: $color;
background-color: lighten($issue-bg, 1.5%);
} @else {
color: darken($color, 10%);
background-color: lighten($background, 5%);
}
@if $table-list-color-odd-rows {
&.odd {
background: darken($background, $table-accent-factor * 100%);
}
span.author {
color: mix($color, $gray, 25%);
}
}
@if $table-list-color-even-rows {
&.even {
background: darken($background, $table-accent-factor * 100%);
}
}
td {
border-color: $border-color;
}
a {
color: $link;
&:hover {
color: darken($link, 10%);
}
}
}
@if $table-list-highlight-rows {
table.list > tbody > tr#{$parent}:hover {
background: darken($background, $table-hover-factor * 100%);
}
@if $table-list-color-odd-rows {
&.odd {
background: darken($background, ($table-accent-factor + $table-hover-factor) * 100%);
}
}
@if $table-list-color-even-rows {
&.even {
background: darken($background, ($table-accent-factor + $table-hover-factor) * 100%);
}
}
}
@if $colored-issue {
.issue.details#{$parent} {
color: $color;
@if ".priority-default" == $parent {
$border-color: $issue-border;
background: $issue-bg;
} @else {
background: $background;
}
&,
hr {
border-color: $border-color;
}
a {
color: $link;
&:hover {
color: darken($link, 10%);
}
}
.next-prev-links {
color: mix($color, $gray-light, 25%);
}
> .description > .wiki {
border-top-color: $border-color;
}
.wiki {
a {
color: $link-color;
text-decoration: none;
&:hover,
&:focus {
color: $link-hover-color;
text-decoration: $link-hover-decoration;
}
&.new {
color: $brand-danger;
}
}
}
> .attachments {
border-top-color: lighten($border-color, 5%);
@if ".priority-default" == $parent {
background-color: lighten($issue-bg, 1.5%);
} @else {
background-color: lighten($background, 5%);
}
span.author {
color: mix($color, $gray, 25%);
}
}
.list td {
border-bottom-color: $border-color;
}
}
.list td {
border-bottom-color: $border-color;
}
}
}
}
// Tracker highlight
@mixin tracker($parent, $background, $color) {
tr#{$parent} .id > a,
a#{$parent},
.relations > span > a#{$parent},
.parent > a#{$parent} {
background-color: $background;
tr#{$parent} .id > a,
a#{$parent},
.relations > span > a#{$parent},
.parent > a#{$parent} {
background-color: $background;
color: $color;
&:hover {
@if hue($background) > 15deg and hue($background) < 40deg {
background-color: darken(adjust-hue($background, -8deg), 8%);
} @else {
background-color: darken($background, 10%);
}
color: $color;
}
}
a#{$parent} {
&.closed {
color: mix($color, $background, 75%);
&::after {
border-top-color: rgba($color, .95);
}
&:hover::after {
border-top-color: rgba($color, .25);
}
}
}
tr#{$parent} .id > a {
&::before {
color: mix($color, $background, 50%);
}
}
@if $colored-issue {
.issue.details a#{$parent},
.issue.details .wiki a#{$parent} {
&,
&:hover {
color: $color;
&:hover {
@if hue($background) > 15deg and hue($background) < 40deg {
background-color: darken(adjust-hue($background, -8deg), 8%);
} @else {
background-color: darken($background, 10%);
}
color: $color;
}
}
a#{$parent} {
&.closed {
color: mix($color, $background, 75%);
&:after {
border-top-color: rgba($color, .95);
}
&:hover:after {
border-top-color: rgba($color, .25);
}
}
}
tr#{$parent} .id > a {
&:before {
color: mix($color, $background, 50%);
}
}
@if $colored-issue {
.issue.details a#{$parent},
.issue.details .wiki a#{$parent} {
&,
&:hover {
color: $color;
}
}
}
}
}
}

View File

@@ -1,10 +1,10 @@
// Link variant
@mixin link-variant($default-color, $hover-color: darken($default-color, 10%)) {
color: $default-color;
color: $default-color;
&:focus,
&:hover {
color: $hover-color;
}
&:focus,
&:hover {
color: $hover-color;
}
}

View File

@@ -1,8 +0,0 @@
// Opacity
@mixin opacity($opacity) {
opacity: $opacity;
// IE8 filter
$opacity-ie: ($opacity * 100);
filter: #{alpha(opacity=$opacity-ie)};
}

View File

@@ -1,23 +1,19 @@
// Some really nice looking shadows
@mixin nice-shadow($depth: 1) {
$shadow: none;
@if ($depth == 1) {
// $shadow: 0 3px 1px -2px rgba(#000, .14), 0 2px 2px 0 rgba(#000, .098), 0 1px 5px 0 rgba(#000, .082);
$shadow: 0 1px 3px rgba(#000, .12), 0 1px 2px rgba(#000, .24);
} @elseif ($depth == 2) {
// $shadow: 0 2px 4px -1px rgba(#000, .14), 0 4px 5px 0 rgba(#000, .098), 0 1px 10px 0 rgba(#000, .082)
$shadow: 0 3px 6px rgba(#000, .16), 0 3px 6px rgba(#000, .23);
} @elseif ($depth == 3) {
// $shadow: 0 3px 5px -1px rgba(#000, .14), 0 6px 10px 0 rgba(#000, .098), 0 1px 18px 0 rgba(#000, .082)
$shadow: 0 10px 18px rgba(#000, .19), 0 6px 8px rgba(#000, .23);
} @elseif ($depth == 4) {
// $shadow: 0 5px 5px -3px rgba(#000, .14), 0 8px 10px 1px rgba(#000, .098), 0 3px 14px 2px rgba(#000, .082)
$shadow: 0 14px 28px rgba(#000, .25), 0 10px 10px rgba(#000, .22);
} @elseif ($depth == 5) {
// $shadow: 0 8px 10px -5px rgba(#000, .14), 0 16px 24px 2px rgba(#000, .098), 0 6px 30px 5px rgba(#000, .082)
$shadow: 0 19px 38px rgba(#000, .30), 0 15px 12px rgba(#000, .22);
}
$shadow: none;
box-shadow: $shadow;
@if ($depth == 1) {
$shadow: 0 1px 3px rgba(#000, .12), 0 1px 2px rgba(#000, .24);
} @elseif ($depth == 2) {
$shadow: 0 3px 6px rgba(#000, .16), 0 3px 6px rgba(#000, .23);
} @elseif ($depth == 3) {
$shadow: 0 10px 18px rgba(#000, .19), 0 6px 8px rgba(#000, .23);
} @elseif ($depth == 4) {
$shadow: 0 14px 28px rgba(#000, .25), 0 10px 10px rgba(#000, .22);
} @elseif ($depth == 5) {
$shadow: 0 19px 38px rgba(#000, .3), 0 15px 12px rgba(#000, .22);
}
box-shadow: $shadow;
}

View File

@@ -2,7 +2,7 @@
// Requires inline-block or block for proper styling
@mixin text-overflow() {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

View File

@@ -1,236 +0,0 @@
// Vendor Prefixes
// scss-lint:disable VendorPrefix NameFormat
//
// All vendor mixins are deprecated as of v3.2.0 due to the introduction of
// Autoprefixer in our Gruntfile. They will be removed in v4.
// - Animations
// - Backface visibility
// - Box shadow
// - Box sizing
// - Content columns
// - Hyphens
// - Placeholder text
// - Transformations
// - Transitions
// - User Select
// Animations
@mixin animation($animation) {
-webkit-animation: $animation;
-o-animation: $animation;
animation: $animation;
}
@mixin animation-name($name) {
-webkit-animation-name: $name;
animation-name: $name;
}
@mixin animation-duration($duration) {
-webkit-animation-duration: $duration;
animation-duration: $duration;
}
@mixin animation-timing-function($timing-function) {
-webkit-animation-timing-function: $timing-function;
animation-timing-function: $timing-function;
}
@mixin animation-delay($delay) {
-webkit-animation-delay: $delay;
animation-delay: $delay;
}
@mixin animation-iteration-count($iteration-count) {
-webkit-animation-iteration-count: $iteration-count;
animation-iteration-count: $iteration-count;
}
@mixin animation-direction($direction) {
-webkit-animation-direction: $direction;
animation-direction: $direction;
}
@mixin animation-fill-mode($fill-mode) {
-webkit-animation-fill-mode: $fill-mode;
animation-fill-mode: $fill-mode;
}
// Backface visibility
// Prevent browsers from flickering when using CSS 3D transforms.
// Default value is `visible`, but can be changed to `hidden`
@mixin backface-visibility($visibility) {
-webkit-backface-visibility: $visibility;
-moz-backface-visibility: $visibility;
backface-visibility: $visibility;
}
// Box sizing
@mixin box-sizing($boxmodel) {
-webkit-box-sizing: $boxmodel;
-moz-box-sizing: $boxmodel;
box-sizing: $boxmodel;
}
// CSS3 Content Columns
@mixin content-columns($column-count, $column-gap: $grid-gutter-width) {
-webkit-column-count: $column-count;
-moz-column-count: $column-count;
column-count: $column-count;
-webkit-column-gap: $column-gap;
-moz-column-gap: $column-gap;
column-gap: $column-gap;
}
// Optional hyphenation
@mixin hyphens($mode: auto) {
word-wrap: break-word;
-webkit-hyphens: $mode;
-moz-hyphens: $mode;
-ms-hyphens: $mode; // IE10+
-o-hyphens: $mode;
hyphens: $mode;
}
// Placeholder text
@mixin placeholder($color: $input-color-placeholder) {
// Firefox
&::-moz-placeholder {
color: $color;
opacity: 1; // See https://github.com/twbs/bootstrap/pull/11526
}
&:-ms-input-placeholder { color: $color; } // Internet Explorer 10+
&::-webkit-input-placeholder { color: $color; } // Safari and Chrome
}
// Transformations
@mixin scale($ratio...) {
-webkit-transform: scale($ratio);
-ms-transform: scale($ratio); // IE9 only
-o-transform: scale($ratio);
transform: scale($ratio);
}
@mixin scaleX($ratio) {
-webkit-transform: scaleX($ratio);
-ms-transform: scaleX($ratio); // IE9 only
-o-transform: scaleX($ratio);
transform: scaleX($ratio);
}
@mixin scaleY($ratio) {
-webkit-transform: scaleY($ratio);
-ms-transform: scaleY($ratio); // IE9 only
-o-transform: scaleY($ratio);
transform: scaleY($ratio);
}
@mixin skew($x, $y) {
-webkit-transform: skewX($x) skewY($y);
-ms-transform: skewX($x) skewY($y); // See https://github.com/twbs/bootstrap/issues/4885; IE9+
-o-transform: skewX($x) skewY($y);
transform: skewX($x) skewY($y);
}
@mixin translate($x, $y) {
-webkit-transform: translate($x, $y);
-ms-transform: translate($x, $y); // IE9 only
-o-transform: translate($x, $y);
transform: translate($x, $y);
}
@mixin translate3d($x, $y, $z) {
-webkit-transform: translate3d($x, $y, $z);
transform: translate3d($x, $y, $z);
}
@mixin rotate($degrees) {
-webkit-transform: rotate($degrees);
-ms-transform: rotate($degrees); // IE9 only
-o-transform: rotate($degrees);
transform: rotate($degrees);
}
@mixin rotateX($degrees) {
-webkit-transform: rotateX($degrees);
-ms-transform: rotateX($degrees); // IE9 only
-o-transform: rotateX($degrees);
transform: rotateX($degrees);
}
@mixin rotateY($degrees) {
-webkit-transform: rotateY($degrees);
-ms-transform: rotateY($degrees); // IE9 only
-o-transform: rotateY($degrees);
transform: rotateY($degrees);
}
@mixin perspective($perspective) {
-webkit-perspective: $perspective;
-moz-perspective: $perspective;
perspective: $perspective;
}
@mixin perspective-origin($perspective) {
-webkit-perspective-origin: $perspective;
-moz-perspective-origin: $perspective;
perspective-origin: $perspective;
}
@mixin transform-origin($origin) {
-webkit-transform-origin: $origin;
-moz-transform-origin: $origin;
-ms-transform-origin: $origin; // IE9 only
transform-origin: $origin;
}
// Transitions
@mixin transition($transition...) {
-webkit-transition: $transition;
-o-transition: $transition;
transition: $transition;
}
@mixin transition-property($transition-property...) {
-webkit-transition-property: $transition-property;
transition-property: $transition-property;
}
@mixin transition-delay($transition-delay) {
-webkit-transition-delay: $transition-delay;
transition-delay: $transition-delay;
}
@mixin transition-duration($transition-duration...) {
-webkit-transition-duration: $transition-duration;
transition-duration: $transition-duration;
}
@mixin transition-timing-function($timing-function) {
-webkit-transition-timing-function: $timing-function;
transition-timing-function: $timing-function;
}
@mixin transition-transform($transition...) {
-webkit-transition: -webkit-transform $transition;
-moz-transition: -moz-transform $transition;
-o-transition: -o-transform $transition;
transition: transform $transition;
}
// User select
// For selecting text on the page
@mixin user-select($select) {
-webkit-user-select: $select;
-moz-user-select: $select;
-ms-user-select: $select; // IE10+
user-select: $select;
}

View File

@@ -1,60 +1,59 @@
@import "common";
html {
overflow-y: scroll;
height: 100%;
height: 100%;
overflow-y: scroll;
}
body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
background-color: mix($gray-lighter, $header-bg, 70%);
color: $text-color;
font-family: $font-family-base;
font-size: $font-size-base;
font-weight: $font-weight-normal;
line-height: $line-height-base;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
background-color: mix($gray-lighter, $header-bg, 70%);
color: $text-color;
font-family: $font-family-base;
font-size: $font-size-base;
font-weight: $font-weight-normal;
line-height: $line-height-base;
}
a {
color: $link-color;
text-decoration: none;
color: $link-color;
text-decoration: none;
&:hover,
&:focus {
color: $link-hover-color;
text-decoration: $link-hover-decoration;
}
&:hover,
&:focus {
color: $link-hover-color;
text-decoration: $link-hover-decoration;
}
}
.issue.closed {
color: $link-color-issue-closed;
text-decoration: $link-closed-decoration;
color: $link-color-issue-closed;
text-decoration: $link-closed-decoration;
}
.project.closed {
color: $link-color-project-closed;
color: $link-color-project-closed;
}
.user.locked {
color: $link-color-user-locked;
color: $link-color-user-locked;
}
/**
* Form elements
*/
//== Form elements
//
button,
input,
select,
textarea {
font-family: inherit;
font-size: $font-size-base;
line-height: $line-height-base;
@include box-sizing(border-box);
box-sizing: border-box;
font-family: inherit;
font-size: $font-size-base;
line-height: $line-height-base;
}
select,
@@ -64,265 +63,258 @@ input[type="text"],
input.name,
input.editor,
#col_width input {
height: $input-height-base;
padding: $input-padding-vertical $input-padding-horizontal;
border: 1px solid $input-border;
border-radius: $input-border-radius;
background-color: $input-bg;
color: $input-color;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075);
@include transition(border-color ease-in-out .1s, box-shadow ease-in-out .1s);
@include form-control-focus();
@include placeholder();
@include form-control-focus;
@include placeholder;
height: $input-height-base;
padding: $input-padding-vertical $input-padding-horizontal;
transition: border-color ease-in-out .1s, box-shadow ease-in-out .1s;
border: 1px solid $input-border;
border-radius: $input-border-radius;
background-color: $input-bg;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075);
color: $input-color;
}
textarea {
resize: vertical;
height: auto;
height: auto;
resize: vertical;
}
select:-moz-focusring {
color: transparent;
text-shadow: 0 0 0 #000;
color: transparent;
text-shadow: 0 0 0 #000;
}
button.ui-multiselect {
height: $input-height-base;
padding: $input-padding-vertical $input-padding-horizontal;
border: 1px solid $input-border;
background: $input-bg;
box-sizing: border-box;
height: $input-height-base;
padding: $input-padding-vertical $input-padding-horizontal;
overflow: hidden;
transition: border-color ease-in-out .1s, box-shadow ease-in-out .1s;
border: 1px solid $input-border;
background: $input-bg;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075);
color: $input-color;
white-space: nowrap;
cursor: default;
&:hover,
&:focus {
color: $input-color;
white-space: nowrap;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075);
cursor: default;
overflow: hidden;
@include transition(border-color ease-in-out .1s, box-shadow ease-in-out .1s);
@include box-sizing(border-box);
}
&:hover,
&:focus {
color: $input-color;
}
&:active {
transform: translate(0, 0);
}
&:active {
@include translate(0, 0);
}
&.ui-state-active {
border-color: $input-border-focus;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075), 0 0 5px rgba($input-border-focus, .5);
}
&.ui-state-active {
border-color: $input-border-focus;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075), 0 0 5px rgba($input-border-focus, .5);
}
.ui-icon {
margin-top: 1px;
}
.ui-icon {
margin-top: 1px;
}
}
/**
* Top toolbar
*/
//== Top toolbar
//
#toolbar {
display: block;
@include clearfix;
display: block;
position: relative;
z-index: 1000;
padding: 10px $padding-side;
overflow: hidden;
background-color: $main-menu-bg;
box-shadow: $panel-shadow;
.breadcrumbs {
margin-right: 10px;
float: left;
select {
margin-right: 5px;
vertical-align: middle;
}
.home {
font-weight: $font-weight-bold;
}
.separator {
position: relative;
top: -1px;
padding: 0 .2em;
font-weight: $font-weight-bold;
}
}
.userselect {
position: relative;
padding: 10px $padding-side;
background-color: $main-menu-bg;
box-shadow: $panel-shadow;
overflow: hidden;
z-index: 1000;
@include clearfix;
float: left;
.breadcrumbs {
margin-right: 10px;
float: left;
select {
margin-right: 5px;
vertical-align: middle;
}
.home {
font-weight: $font-weight-bold;
}
.separator {
position: relative;
top: -1px;
padding: 0 .2em;
font-weight: $font-weight-bold;
}
ul {
padding-left: 0;
}
.userselect {
position: relative;
float: left;
ul {
padding-left: 0;
}
br {
display: none;
}
br {
display: none;
}
}
.links {
float: right;
.links {
float: right;
a {
padding-left: 5px;
cursor: pointer;
@include user-select(none);
}
a {
padding-left: 5px;
cursor: pointer;
user-select: none;
}
}
input[type="search"],
input[type="text"],
select,
.ui-widget {
font-family: inherit;
font-size: inherit;
}
@media screen and (max-width: $screen-md-max) {
font-size: $font-size-small;
input[type="search"],
input[type="text"],
select,
.ui-widget {
font-family: inherit;
font-size: inherit;
$input-padding-vertical-small: 3px;
$input-padding-horizontal-small: 5px;
height: ($line-height-computed + ($input-padding-vertical-small * 2) + 2);
padding: $input-padding-vertical-small $input-padding-horizontal-small;
}
@media screen and (max-width: $screen-md-max) {
font-size: $font-size-small;
input[type="search"],
input[type="text"],
select,
.ui-widget {
$input-padding-vertical-small: 3px;
$input-padding-horizontal-small: 5px;
height: ($line-height-computed + ($input-padding-vertical-small * 2) + 2);
padding: $input-padding-vertical-small $input-padding-horizontal-small;
}
#project_quick_jump_box {
width: 128px;
}
#project_quick_jump_box {
width: 128px;
}
}
}
#refresh {
.loading & {
background-image: url("images/bouncer.gif");
background-repeat: no-repeat;
background-position: -6px 1px;
}
.loading & {
background-image: url("images/bouncer.gif");
background-repeat: no-repeat;
background-position: -6px 1px;
}
}
/**
* Other elements
*/
//== Other elements
//
.clearfix {
@include clearfix;
@include clearfix;
}
#content {
margin: 0;
padding: 0;
overflow: visible;
margin: 0;
padding: 0;
overflow: visible;
}
#helpers,
.meta,
.editors {
display: none;
display: none;
}
/**
* .editor is the classname for field editors of sprint,
* story, task, impediment. These field editors get created
* at runtime whenever any of the above models are edited.
*/
// .editor is the classname for field editors of sprint,
// story, task, impediment. These field editors get created
// at runtime whenever any of the above models are edited.
.ui-dialog .editor {
display: block;
display: block;
}
ul.ui-sortable {
min-height: 20px;
min-height: 20px;
}
/**
* Story tooltip
*/
//== Story tooltip
//
.ui-tooltip {
.ui-tooltip-content {
hr {
margin-top: $line-height-computed / 2;
margin-bottom: $line-height-computed / 2;
border: 0;
border-top: 1px solid $hr-border;
}
.wiki-anchor {
display: none;
}
.ui-tooltip-content {
hr {
margin-top: $line-height-computed / 2;
margin-bottom: $line-height-computed / 2;
border: 0;
border-top: 1px solid $hr-border;
}
.issue-description {
max-height: 10em;
margin-top: 12px;
text-overflow: ellipsis;
overflow: hidden;
.wiki-anchor {
display: none;
}
}
.issue-description {
max-height: 10em;
margin-top: 12px;
overflow: hidden;
text-overflow: ellipsis;
}
.issue-field {
margin: 2px 0 0;
padding-left: 160px;
overflow: hidden;
&:first-child {
margin-top: 0;
}
.issue-field {
margin: 2px 0 0;
padding-left: 160px;
overflow: hidden;
&:first-child {
margin-top: 0;
}
> label {
margin-left: -160px;
padding-right: 5px;
float: left;
font-weight: $font-weight-bold;
}
> label {
margin-left: -160px;
padding-right: 5px;
float: left;
font-weight: $font-weight-bold;
}
}
}
.tooltip_text {
display: none;
display: none;
}
/**
* drag-drop effect: disabled dropzones are greyed out
*/
//== drag-drop effect: disabled dropzones are greyed out
//
.rb-sortable-disabled,
.ui-sortable-disabled {
background-color: $gray-lighter;
opacity: .5;
opacity: .5;
background-color: $gray-lighter;
}
.w-rb-header-collapsed {
height: 27px; // 14px * .86 * 1.42857 + 2 * 5px
overflow: hidden;
height: 27px; // 14px * .86 * 1.42857 + 2 * 5px
overflow: hidden;
}
/**
* Fix jQuery-UI datepicker
*/
//== Fix jQuery-UI datepicker
//
body {
.ui-widget {
&,
input,
select,
textarea,
button {
font-family: inherit;
font-size: inherit;
}
.ui-widget {
&,
input,
select,
textarea,
button {
font-family: inherit;
font-size: inherit;
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,119 +1,117 @@
// scss-lint:disable ImportantRule
@import "../common";
.ui-multiselect {
padding: 2px 0 2px 4px;
text-align: left;
padding: 2px 0 2px 4px;
text-align: left;
span.ui-icon {
float: right;
}
span.ui-icon {
float: right;
}
}
.ui-multiselect-single .ui-multiselect-checkboxes {
input {
position: absolute !important;
top: auto !important;
left: -9999px;
}
input {
position: absolute !important; // scss-lint:disable ImportantRule
top: auto !important; // scss-lint:disable ImportantRule
left: -9999px;
}
label {
padding: 5px !important;
}
label {
padding: 5px !important; // scss-lint:disable ImportantRule
}
}
.ui-multiselect-header {
margin-bottom: 3px;
padding: 3px;
margin-bottom: 3px;
padding: 3px;
ul {
font-size: $font-size-list;
ul {
font-size: $font-size-list;
li {
padding: 0 10px 0 0;
float: left;
}
li {
padding: 0 10px 0 0;
float: left;
}
}
a {
text-decoration: none;
a {
text-decoration: none;
&:hover {
text-decoration: underline;
}
&:hover {
text-decoration: underline;
}
}
span.ui-icon {
float: left;
}
span.ui-icon {
float: left;
}
li.ui-multiselect-close {
padding-right: 0;
float: right;
text-align: right;
}
li.ui-multiselect-close {
padding-right: 0;
float: right;
text-align: right;
}
}
.ui-multiselect-menu {
display: none;
position: absolute;
padding: 3px;
text-align: left;
z-index: 10000;
@include nice-shadow(2);
@include nice-shadow(2);
display: none;
position: absolute;
z-index: 10000;
padding: 3px;
text-align: left;
}
.ui-multiselect-checkboxes {
position: relative;
padding-right: 2px;
overflow-y: scroll;
position: relative;
padding-right: 2px;
overflow-y: scroll;
input[type="checkbox"] {
top: 0;
margin: 3px 0 0 -20px;
float: left;
input[type="checkbox"] {
top: 0;
margin: 3px 0 0 -20px;
float: left;
&:focus {
outline: none;
}
&:focus {
outline: none;
}
}
label {
label {
display: block;
padding: 3px 1px;
padding-left: 20px + 6px;
border: 1px solid transparent;
cursor: default;
user-select: none;
input {
position: relative;
top: 1px;
}
}
li {
clear: both;
font-size: $font-size-list;
&.ui-multiselect-optgroup-label {
margin-bottom: 2px;
border-bottom: 1px solid $panel-border;
font-weight: $font-weight-bold;
text-align: center;
a {
display: block;
padding: 3px 1px;
padding-left: 20px + 6px;
border: 1px solid transparent;
cursor: default;
@include user-select(none);
input {
position: relative;
top: 1px;
}
}
li {
clear: both;
font-size: $font-size-list;
&.ui-multiselect-optgroup-label {
margin-bottom: 2px;
border-bottom: 1px solid $panel-border;
font-weight: $font-weight-bold;
text-align: center;
a {
display: block;
margin: 1px 0;
padding: 3px;
text-decoration: none;
}
}
margin: 1px 0;
padding: 3px;
text-decoration: none;
}
}
}
}
/* remove label borders in IE6 because IE6 does not support transparency */
// Remove label borders in IE6 because IE6 does not support transparency
* html .ui-multiselect-checkboxes label {
border: 0 none;
border: 0 none;
}

View File

@@ -1,37 +1,37 @@
@import "../common";
.qtip {
position: absolute;
top: -31000px;
left: -31000px;
width: auto;
max-width: 500px;
outline: none;
position: absolute;
top: -31000px;
left: -31000px;
width: auto;
max-width: 500px;
outline: none;
}
.ui-tooltip-content {
position: relative;
padding: 10px;
border: 1px solid $tooltip-border;
background-color: $tooltip-bg;
color: $tooltip-text;
font-size: $font-size-list;
text-align: left;
word-wrap: break-word;
@include nice-shadow(2);
overflow: hidden;
@include nice-shadow(2);
position: relative;
padding: 10px;
overflow: hidden;
border: 1px solid $tooltip-border;
background-color: $tooltip-bg;
color: $tooltip-text;
font-size: $font-size-list;
text-align: left;
word-wrap: break-word;
}
.ui-tooltip-tip {
border-color: $tooltip-border;
background-color: $tooltip-bg;
border-color: $tooltip-border;
background-color: $tooltip-bg;
}
.ui-tooltip-tip {
position: absolute;
margin: 0 auto;
border: 0 none;
background: transparent;
overflow: hidden;
z-index: 10;
position: absolute;
z-index: 10;
margin: 0 auto;
overflow: hidden;
border: 0 none;
background: transparent;
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,63 +1,63 @@
@import "common";
table {
th,
td {
padding: $table-condensed-cell-padding $table-cell-padding;
}
th,
td {
padding: $table-condensed-cell-padding $table-cell-padding;
}
}
.ui-widget {
margin-bottom: $line-height-computed;
margin-bottom: $line-height-computed;
}
.score {
display: inline-block;
width: 1.5em;
font-size: large;
text-align: center;
display: inline-block;
width: 1.5em;
font-size: large;
text-align: center;
}
.score_0 {
background-color: #f00;
background-color: #f00;
}
.score_1 {
background-color: #ff5300;
background-color: #ff5300;
}
.score_2 {
background-color: #ff8100;
background-color: #ff8100;
}
.score_3 {
background-color: #ffa100;
background-color: #ffa100;
}
.score_4 {
background-color: #fb0;
background-color: #fb0;
}
.score_5 {
background-color: #ffd300;
background-color: #ffd300;
}
.score_6 {
background-color: #ffec00;
background-color: #ffec00;
}
.score_7 {
background-color: #e9fb00;
background-color: #e9fb00;
}
.score_8 {
background-color: #b1f100;
background-color: #b1f100;
}
.score_9 {
background-color: #74e600;
background-color: #74e600;
}
.score_10 {
background-color: #0c0;
background-color: #0c0;
}

View File

@@ -7,451 +7,461 @@ $issue-padding: 5px;
$swimlane-width: $issue-width + 2 * ($issue-margin + $issue-padding + 1px);
#content {
overflow: visible;
overflow: visible;
}
#taskboard {
position: relative;
margin-bottom: $padding-side;
position: relative;
margin-bottom: $padding-side;
table {
margin-right: $padding-side;
margin-left: $padding-side;
border-collapse: separate;
}
table {
margin-right: $padding-side;
margin-left: $padding-side;
border-collapse: separate;
}
.issue .subject {
white-space: normal;
}
.issue .subject {
white-space: normal;
}
}
#impediments {
padding-top: 30px;
padding-top: 30px;
}
#assigned_to_id_options {
display: none;
display: none;
}
#col_width {
margin-left: 5px;
margin-left: 5px;
input {
width: 40px;
text-align: right;
}
input {
width: 40px;
text-align: right;
}
}
/**
* swimlane class is used by:
* - #board_header
* - .board
*
* Also use by the Column Width preference to determine the unit width of the
* swimlanes. See RB.Taskboard.initialize()
*/
//== Swimlane
//
// Swimlane class is used by:
// - #board_header
// - .board
// Also use by the Column Width preference to determine the unit width of the
// swimlanes. See RB.Taskboard.initialize()
//
.swimlane {
width: $swimlane-width;
min-width: $swimlane-width;
padding: 5px;
width: $swimlane-width;
min-width: $swimlane-width;
padding: 5px;
}
/* status labels */
//== Status labels
//
#board_header {
position: absolute;
margin-right: 10px;
margin-bottom: 0;
border: 1px solid darken($header-bg, 5%);
position: absolute;
z-index: 200;
margin-right: 10px;
margin-bottom: 0;
border: 1px solid darken($header-bg, 5%);
background-color: $header-bg;
td {
height: 20px;
border-right: 1px dotted mix($header-bg, $header-text, 70%);
background-color: $header-bg;
z-index: 200;
color: $header-text;
font-weight: $font-weight-bold;
text-align: center;
vertical-align: middle;
td {
height: 20px;
border-right: 1px dotted mix($header-bg, $header-text, 70%);
background-color: $header-bg;
color: $header-text;
font-weight: $font-weight-bold;
text-align: center;
vertical-align: middle;
&:last-child {
border-right: 0 none;
}
&:last-child {
border-right: 0 none;
}
}
}
.board {
border: 1px solid $gray;
border-top: 0 none;
background-color: $body-bg;
color: $text-color;
border: 1px solid $gray;
border-top: 0 none;
background-color: $body-bg;
color: $text-color;
td {
border-right: 1px dotted $table-border-color;
border-bottom: 1px dotted $table-border-color;
vertical-align: top;
td {
border-right: 1px dotted $table-border-color;
border-bottom: 1px dotted $table-border-color;
vertical-align: top;
&:last-child {
border-right: 0 none;
}
&:last-child {
border-right: 0 none;
}
}
tr:last-child td {
border-bottom: 0 none;
}
.add_new {
display: inline-block;
vertical-align: middle;
&:hover {
background-color: #ffc;
cursor: pointer;
}
tr:last-child td {
border-bottom: 0 none;
}
.add_new {
display: inline-block;
vertical-align: middle;
&:hover {
background-color: #ffc;
cursor: pointer;
}
}
}
#board_header,
.board {
td:first-child {
width: (($issue-width + $issue-margin + $issue-padding) * 2);
min-width: (($issue-width + $issue-margin + $issue-padding) * 2);
padding: $issue-padding;
}
td:first-child {
width: (($issue-width + $issue-margin + $issue-padding) * 2);
min-width: (($issue-width + $issue-margin + $issue-padding) * 2);
padding: $issue-padding;
}
}
.story,
.label_sprint_impediments {
display: block;
position: relative;
width: $issue-width * 2;
min-height: $issue-height;
margin: $issue-margin;
padding: $issue-padding;
float: left;
border: 0 none;
border-radius: $border-radius-large;
background-color: $highlight-bg;
font-size: $font-size-small-px;
}
.story {
color: $gray-darker;
.id {
margin-bottom: 5px;
padding: 0 3px;
overflow: hidden;
border-radius: $border-radius-base;
opacity: .8;
background-color: $body-bg;
font-size: .9em;
line-height: 16px;
a,
.remaininghours {
margin-left: 4px;
float: right;
font-weight: normal;
}
a {
color: $gray-darkest;
font-size: $font-size-small-px;
font-weight: $font-weight-bold;
}
.assignee {
font-size: 9px;
}
}
.subject {
height: $issue-height * .6;
padding: 2px;
overflow: hidden;
line-height: 1.3;
}
&.closed .subject {
text-decoration: line-through;
}
.project {
text-align: left;
}
.id .v {
display: none;
}
.story_points.editable {
position: absolute;
right: -$issue-padding;
bottom: -$issue-padding;
width: 36px;
height: 36px;
border: 2px solid $body-bg;
border-radius: 50%;
background-color: $brand-warning;
color: $brand-text;
font-weight: $font-weight-bold;
line-height: 36px;
text-align: center;
&:empty {
display: none;
}
}
}
//== Item styles used by .task and .impediment
//
#taskboard {
.issue,
.placeholder {
display: block;
position: relative;
width: $issue-width * 2;
min-height: $issue-height;
width: $issue-width;
height: $issue-height;
margin: $issue-margin;
padding: $issue-padding;
float: left;
border: 0 none;
border-radius: $border-radius-large;
background-color: $highlight-bg;
font-size: $font-size-small-px;
}
.story {
background-color: $gray-lighter;
color: $gray-darker;
font-size: 10px;
line-height: 1.3;
cursor: move;
}
.id {
margin-bottom: 5px;
padding: 0 3px;
border-radius: $border-radius-base;
background-color: $body-bg;
font-size: .9em;
line-height: 16px;
opacity: .8;
overflow: hidden;
a,
.remaininghours {
margin-left: 4px;
float: right;
font-weight: normal;
}
a {
color: $gray-darkest;
font-size: $font-size-small-px;
font-weight: $font-weight-bold;
}
.assignee {
font-size: 9px;
}
}
.subject {
height: $issue-height * .6;
padding: 2px;
line-height: 1.3;
overflow: hidden;
}
&.closed .subject {
text-decoration: line-through;
}
.project {
text-align: left;
}
.id .v {
display: none;
}
.story_points.editable {
position: absolute;
right: -$issue-padding;
bottom: -$issue-padding;
width: 36px;
height: 36px;
border: 2px solid $body-bg;
border-radius: 50%;
background-color: $brand-warning;
color: $brand-text;
font-weight: $font-weight-bold;
line-height: 36px;
text-align: center;
&:empty {
display: none;
}
}
}
/* item styles used by .task and .impediment */
#taskboard {
.issue,
.placeholder {
display: block;
position: relative;
width: $issue-width;
height: $issue-height;
margin: $issue-margin;
padding: $issue-padding;
float: left;
border: 0 none;
border-radius: $border-radius-large;
background-color: $gray-lighter;
color: $gray-darker;
font-size: 10px;
line-height: 1.3;
cursor: move;
}
.placeholder {
width: 83px;
height: 78px;
border: 1px dashed $highlight-border;
background-color: $highlight-bg;
}
.placeholder {
width: 83px;
height: 78px;
border: 1px dashed $highlight-border;
background-color: $highlight-bg;
}
}
.issue {
.id {
margin-bottom: 5px;
padding: 0 3px;
border-radius: $border-radius-base;
background-color: $body-bg;
font-size: $font-size-small-px;
font-weight: $font-weight-bold;
line-height: 16px;
text-align: right;
opacity: .8;
overflow: hidden;
.id {
margin-bottom: 5px;
padding: 0 3px;
overflow: hidden;
border-radius: $border-radius-base;
opacity: .8;
background-color: $body-bg;
font-size: $font-size-small-px;
font-weight: $font-weight-bold;
line-height: 16px;
text-align: right;
.v {
display: none;
}
a {
color: $gray-darkest;
}
.v {
display: none;
}
.editable:hover {
background-color: transparent;
a {
color: $gray-darkest;
}
}
.editable:hover {
background-color: transparent;
}
.subject.editable {
height: $issue-height * .5;
padding: 2px;
overflow: hidden;
}
&.closed .subject.editable {
text-decoration: line-through;
}
.assigned_to_id {
&.editable {
width: 81px;
height: 10px;
margin-top: 2px;
padding: 2px;
padding-top: 0;
overflow: hidden;
font-size: 9px;
white-space: nowrap;
}
.subject.editable {
height: $issue-height * .5;
padding: 2px;
overflow: hidden;
.v {
display: none;
}
}
.priority_id {
&.editable {
position: absolute;
right: -5px;
bottom: 10px;
height: 13px;
padding-right: 5px;
padding-left: 5px;
border: 2px solid #fff;
border-radius: 15px;
background-color: #00e;
color: #fff;
font-size: 9px;
}
&.closed .subject.editable {
text-decoration: line-through;
.v {
display: none;
}
}
.assigned_to_id {
&.editable {
width: 81px;
height: 10px;
margin-top: 2px;
padding: 2px;
padding-top: 0;
font-size: 9px;
white-space: nowrap;
overflow: hidden;
}
.remaining_hours.editable {
position: absolute;
right: -5px;
bottom: -5px;
height: 13px;
padding-right: 5px;
padding-left: 5px;
border: 2px solid #fff;
border-radius: 15px;
background-color: #e00;
color: #fff;
font-size: 9px;
}
.v {
display: none;
}
}
.blocks,
.remaining_hours.editable:empty {
display: none;
}
.priority_id {
&.editable {
position: absolute;
right: -5px;
bottom: 10px;
height: 13px;
padding-right: 5px;
padding-left: 5px;
border: 2px solid #fff;
border-radius: 15px;
background-color: #00e;
color: #fff;
font-size: 9px;
}
.indicator {
display: none;
position: absolute;
top: 38px;
left: 36px;
width: 16px;
height: 16px;
padding: 2px;
border: 2px solid #000;
border-radius: 12px;
background-color: #fff;
background-repeat: no-repeat;
background-position: center;
}
.v {
display: none;
}
}
&.saving .indicator {
display: block;
background-image: url("images/indicator.gif");
}
.remaining_hours.editable {
position: absolute;
right: -5px;
bottom: -5px;
height: 13px;
padding-right: 5px;
padding-left: 5px;
border: 2px solid #fff;
border-radius: 15px;
background-color: #e00;
color: #fff;
font-size: 9px;
}
&.error .indicator {
display: block;
border-color: #c00;
background-image: url("images/warning.png");
background-position: 2px 0;
}
.blocks,
.remaining_hours.editable:empty {
display: none;
}
.indicator {
display: none;
position: absolute;
top: 38px;
left: 36px;
width: 16px;
height: 16px;
padding: 2px;
border: 2px solid #000;
border-radius: 12px;
background-color: #fff;
background-repeat: no-repeat;
background-position: center;
}
&.saving .indicator {
display: block;
background-image: url("images/indicator.gif");
}
&.error .indicator {
display: block;
border-color: #c00;
background-image: url("images/warning.png");
background-position: 2px 0;
}
.editors {
display: none;
}
.editors {
display: none;
}
}
/* dialog */
//== Dialog
//
.rb_editor_dialog.ui-dialog {
.ui-dialog-titlebar-close {
display: none;
}
.ui-dialog-titlebar-close {
display: none;
}
.ui-widget-header {
background: none;
background-color: #fff;
opacity: .5;
}
.ui-widget-header {
opacity: .5;
background: none;
background-color: #fff;
}
.ui-dialog-title {
margin-right: 0;
float: right;
}
.ui-dialog-title {
margin-right: 0;
float: right;
}
&.ui-widget-content {
border: 0 none;
background: none;
@include nice-shadow(5);
}
&.ui-widget-content {
@include nice-shadow(5);
border: 0 none;
background: none;
}
.ui-dialog-buttonpane.ui-widget-content {
border: 0 none;
background: none;
background-color: none;
}
.ui-dialog-buttonpane.ui-widget-content {
border: 0 none;
background: none;
background-color: none;
}
}
/* item editor */
//== Item editor
//
.rb_editor {
label {
display: block;
width: 100%;
font-size: 11px;
text-transform: capitalize;
}
label {
display: block;
width: 100%;
font-size: 11px;
text-transform: capitalize;
}
.editor {
width: 100%;
margin-bottom: 10px;
font-size: 11px;
}
.editor {
width: 100%;
margin-bottom: 10px;
font-size: 11px;
}
.subject {
width: 272px;
height: 65px;
}
.subject {
width: 272px;
height: 65px;
}
.description {
width: 272px;
height: 80px;
}
.description {
width: 272px;
height: 80px;
}
.remaining_hours,
.time_entry_hours,
.time_entry_user_id,
.time_entry_spent_on,
.blocks {
width: 268px;
}
.remaining_hours,
.time_entry_hours,
.time_entry_user_id,
.time_entry_spent_on,
.blocks {
width: 268px;
}
.time_entry_comments {
width: 268px;
height: 30px;
}
.time_entry_comments {
width: 268px;
height: 30px;
}
}
/* others */
//== Others
//
#impediment_template,
#task_template {
display: none;
display: none;
}
#preloader {
position: absolute;
left: -500px;
position: absolute;
left: -500px;
}
#spinner {
background-image: url("images/indicator.gif");
background-image: url("images/indicator.gif");
}
#warning {
background-image: url("images/warning.png");
background-image: url("images/warning.png");
}
#ui-datepicker-div {
display: none;
display: none;
}

File diff suppressed because one or more lines are too long