summaryrefslogtreecommitdiff
path: root/res/client/css/partials/info-card.scss
blob: 8220daf4dbfb8c194e53c4ed87ce2279cf28b53a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/*
    This file is part of rhizi, a collaborative knowledge graph editor.
    Copyright (C) 2014-2015  Dor Garbash, Amir Sagie and Alon Levy

    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 <http://www.gnu.org/licenses/>.
*/

@import '../modules/mixins'; // For box-shadow and box-sizing

.info-container {
    margin-top: 85px;
    margin-bottom: 20px;
    position: absolute;
    max-height: 300px;  
    background-color: white;
    border-top: 6px solid $dark-grey;
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.55);
    overflow-y: auto;
    padding: 12px 10px;
    right: $graph-margin-right;
    width: 300px;
    @include rz-box-sizing-border;
}

.info-container textarea {
    font-size: $h4-size;
    font-family: sans-serif;
    max-width: 280px;
}

// card elements styles

.info-card-attr {
    font-size: $h4-size;
    font-family: $bold-font-family;
    text-transform: capitalize;
    margin-bottom: 5px;
}

.info-card-attr-val {
    font-size: $h4-size;
    width: 100%;
}

.info-container__row {
    margin-top: 10px;
    margin-bottom: 10px;
}

.info-card-url input {
    font-size: $h4-size;
    margin-left: 24px;
}

.info-card-url:before { //url icon before the url line
    background: url(../img/url-icon.png);
    background-position: center;
    background-repeat: no-repeat;
    content: "";
    min-width: 14px;
    min-height: 14px;
    position: absolute;
}

.select-dropdown {
    border: none;
    font-family: $base-font-family;
    background-color: white;
    font-size: $h3-size;
    color: $dark-grey;
    width: 100%;
    padding: 0;
}

.select-dropdown:focus {
    outline: none;
}

.select-dropdown option {
    font-size: $h3-size;
    color: $dark-grey;
    border: 1px solid $dark-grey;
}

.subtitle {
    font-style:italic;
    color: #bbb;
    font-size: 12px;
    float:right;
}

// ----------------------------------------------------------------------------
// Domain Specific
//    - change card top border color by node type
//
// FIXME: refactor to domain specific file / automate
//
.info-container.type-person                    { border-top-color: $blue;     }
.info-container.type-club                      { border-top-color: $magenta;  }
.info-container.type-skill                     { border-top-color: $yellow;   }
.info-container.type-internship                { border-top-color: $orange;   }
.info-container.type-interest                  { border-top-color: $purple;   }
.info-container.type-empty                     { border-top-color: $mid-grey; }
.info-container.type-third-internship-proposal { border-top-color: $cyan;     }
.info-container.type-project                   { border-top-color: $green;    }