diff --git a/exmo/COPYING b/exmo/COPYING index 0cd800bf..097a2556 100644 --- a/exmo/COPYING +++ b/exmo/COPYING @@ -345,6 +345,34 @@ along with this program. If not, see . -- +exmo/scores/static/js/jquery.autosize.js + +Autosize 1.15.2 - jQuery plugin for textareas + +The MIT License (MIT) + +Copyright (c) 2012 Jack Moore - jacklmoore.com + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +-- + exmo/exmo2010/static/exmo2010/ckeditor/ Copyright (C) 2003 - 2013 CKSource - Frederico Knabben diff --git a/exmo/static/exmo2010/css/score.css b/exmo/scores/static/css/score.css similarity index 85% rename from exmo/static/exmo2010/css/score.css rename to exmo/scores/static/css/score.css index 93cf08f1..2b3371ae 100644 --- a/exmo/static/exmo2010/css/score.css +++ b/exmo/scores/static/css/score.css @@ -19,52 +19,12 @@ # */ -/* Parameter */ - -.table-parameter -{ - margin-bottom: 20px; - border-spacing: 0; - border-collapse: separate; - *border-collapse: collapse; - border: #fff 1px solid; +form.score { + float: left; + display: block; width: 100%; } -.table-parameter th -{ - padding: 8px 12px; - background-image: none; - background-color: transparent; - border-bottom: #fff 1px solid; - border-left: #bbb 1px solid; - color: #333; -} - -.table-parameter td -{ - padding: 8px 12px; - border-left: #bbb 1px solid; - border-top: #bbb 1px solid; - border-bottom: #fff 1px solid; -} - -.table-parameter td:first-child -{ - border-left: #fff 1px solid; -} - -.table-parameter .value -{ - width: 80px; - text-align: center; -} - -.table-parameter .criteria -{ - width: 20%; -} - .heading-comments-parameter { margin-top: 34px; @@ -282,3 +242,57 @@ form.score { { background-color: #FFFFD6; } + +.button-bar { + padding-left: 15px; +} + +.non-relevant-button { + float: right; +} + +.non-relevant-button input { + background-color: #ffd8dd; + background-image: none; +} + +.reset-button { + border: 1px solid #fff; + border-bottom: 1px dotted; + padding: 0; +} + +.reset-button input { + cursor: pointer; + color: #005C9C; + background-color: transparent; + border: none; + margin: 0; + padding: 0; +} + +.reset-button input:hover { + color: #005580; +} + +h1 { + margin-bottom: 7px; +} + +.recomendation-container { + padding-right: 7px; +} + +#id_score-comment { + width: 100%; + resize: none; +} + +.recomendation { + color: #333; + font-size: 13px; +} + +#non_editable_table { + margin-top: 20px; +} diff --git a/exmo/static/exmo2010/css/score_list-parameter-colours.css b/exmo/scores/static/css/score_list-parameter-colours.css similarity index 100% rename from exmo/static/exmo2010/css/score_list-parameter-colours.css rename to exmo/scores/static/css/score_list-parameter-colours.css diff --git a/exmo/static/exmo2010/css/score_messages.css b/exmo/scores/static/css/score_messages.css similarity index 100% rename from exmo/static/exmo2010/css/score_messages.css rename to exmo/scores/static/css/score_messages.css diff --git a/exmo/scores/static/css/tables.css b/exmo/scores/static/css/tables.css new file mode 100644 index 00000000..a0140526 --- /dev/null +++ b/exmo/scores/static/css/tables.css @@ -0,0 +1,103 @@ +/* +# This file is part of EXMO2010 software. +# Copyright 2010, 2011, 2013 Al Nikolov +# Copyright 2010, 2011 non-profit partnership Institute of Information Freedom Development +# Copyright 2012, 2013 Foundation "Institute for Information Freedom Development" +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +*/ + +/* Non-editable table, Partially editable table and Editable table */ + +.score-table { + margin-bottom: 20px; + border-spacing: 0; + border-collapse: separate; + *border-collapse: collapse; + border: #fff 1px solid; + width: 100%; +} + +.score-table label { + color: #333; +} + +.score-table th { + padding: 8px 12px; + background: none, transparent; + border-bottom: #fff 1px solid; + border-left: #bbb 1px solid; + color: #333; +} + +.score-table td { + padding: 8px 12px; + height: 22px; + border-left: #bbb 1px solid; + border-top: #bbb 1px solid; + border-bottom: #fff 1px solid; +} + +.score-table td:first-child { + border-left: #fff 1px solid; +} + +.criteria { + width: 165px; +} + +.score-table textarea { + height: 1.2em; + resize: none; + width: 99%; + margin: 0; + color: #333; +} + +/* Non-editable table and Partially editable table */ + +.non-editable .value, .partially-editable .value { + width: 80px; + text-align: center; +} + +/* Editable table */ + +.editable .value { + width: 170px; + padding: 0 14px; + white-space: nowrap; +} + +.editable .value ul { + list-style: none; + margin: 0; + padding: 7px 0; + position: relative; + top: 7px; + display: inline; + white-space:nowrap; +} + +.editable .value ul li { + list-style: none; + display: inline; + padding-left: 20px; + padding-top: 4px; +} + +.editable .value ul li:first-child { + padding-left: 0; +} diff --git a/exmo/static/exmo2010/js/jquery.autosize.js b/exmo/scores/static/js/jquery.autosize.js similarity index 96% rename from exmo/static/exmo2010/js/jquery.autosize.js rename to exmo/scores/static/js/jquery.autosize.js index 705d79de..7e318235 100644 --- a/exmo/static/exmo2010/js/jquery.autosize.js +++ b/exmo/scores/static/js/jquery.autosize.js @@ -1,181 +1,181 @@ -// Autosize 1.15.2 - jQuery plugin for textareas -// (c) 2012 Jack Moore - jacklmoore.com -// license: www.opensource.org/licenses/mit-license.php - -(function ($) { - var - defaults = { - className: 'autosizejs', - append: "", - callback: false - }, - hidden = 'hidden', - borderBox = 'border-box', - lineHeight = 'lineHeight', - - // border:0 is unnecessary, but avoids a bug in FireFox on OSX (http://www.jacklmoore.com/autosize#comment-851) - copy = '