Skip to content

Commit 6f77a2e

Browse files
committed
add styles and icons for note,tip,info and warning macros
1 parent 6077149 commit 6f77a2e

File tree

5 files changed

+82
-7
lines changed

5 files changed

+82
-7
lines changed

media/css/confluence.css

Lines changed: 82 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ h1, h2, h3 {
3737
}
3838

3939
blockquote {
40-
margin: 0 7px 0 5px;
41-
padding: 0 16px 0 10px;
40+
padding: 1px 2px;
4241
border-left: 5px solid;
4342
}
4443

@@ -83,28 +82,104 @@ pre > code {
8382
line-height: 1.5em;
8483
}
8584

86-
87-
.panel {
85+
.panel, .tip, .info, .note, .warning {
8886
display: inline-block;
8987
width: 90%;
9088
color: black;
9189
margin: 0px;
9290
background-color: lightslategrey;
93-
border-width: 1px;
94-
91+
border-width: 2px;
92+
vertical-align: middle;
9593
}
9694

9795
.panel-title {
9896
font-weight: bold;
9997
padding: 5px 3px;
100-
border-bottom: none;
98+
border-style: solid;
99+
/* border-bottom: none; */
101100
}
102101

103102
.panel-body {
104103
background-color: lightgrey;
105104
padding: 3px;
105+
border-style: solid;
106+
border-top: none;
107+
}
108+
109+
.info, .info-title, .info-body {
110+
border-color: #aab8c6;
111+
border-style: solid;
112+
background-color: #fcfcfc;
113+
}
114+
115+
.tip, .tip-title, .tip-body {
116+
border-color: #91c89c;
117+
border-style: solid;
118+
background-color: #f3f9f4;
106119
}
107120

121+
.note, .note-title, .note-body {
122+
border-color: #ffeaae;
123+
border-style: solid;
124+
background-color: #fffdf6;
125+
}
126+
127+
.warning, .warning-title, .warning-body {
128+
border-color: #d04437;
129+
border-style: solid;
130+
background-color: #fff8f7;
131+
}
132+
133+
.info-title, .tip-title, .note-title, .warning-title,
134+
.info-title-iconless, .tip-title-iconless, .note-title-iconless, .warning-title-iconless {
135+
font-weight: bold;
136+
padding: 2px;
137+
margin: 0px;
138+
padding-left: 30px;
139+
padding-bottom: 0px;
140+
width: 80%;
141+
border-top-left-radius: 15px;
142+
border-top-right-radius: 15px;
143+
border-bottom: none;
144+
}
145+
146+
.info-body, .tip-body, .note-body, .warning-body {
147+
padding: 2px;
148+
margin: 0px;
149+
padding-left: 35px;
150+
padding-top: 0px;
151+
width: calc(80% - 5px);
152+
border-bottom-left-radius: 15px;
153+
border-bottom-right-radius: 15px;
154+
border-top: none;
155+
}
156+
157+
.info-title:before, .tip-title:before, .note-title:before, .warning-title:before,
158+
.info-title-iconless:before, .tip-title-iconless:before, .note-title-iconless:before, .warning-title-iconless:before {
159+
margin-left: -16px;
160+
margin-right: 5px;
161+
vertical-align: middle;
162+
}
163+
164+
.info-title:before, .info-title-iconless:before {
165+
content: url('./../icons/macro-info.png');
166+
}
167+
168+
.tip-title:before, .tip-title-iconless:before {
169+
content: url('./../icons/macro-tip.png');
170+
}
171+
172+
.note-title:before, .note-title-iconless:before {
173+
content: url('./../icons/macro-note.png');
174+
}
175+
176+
.warning-title:before, .warning-title-iconless:before {
177+
content: url('./../icons/macro-warning.png');
178+
}
179+
180+
.info-title-iconless:before, .tip-title-iconless:before,.note-title-iconless:before, .warning-title-iconless:before {
181+
opacity: 0.0;
182+
}
108183

109184
pre > code > p {
110185
margin: .5em 0;

media/icons/macro-info.png

626 Bytes
Loading

media/icons/macro-note.png

542 Bytes
Loading

media/icons/macro-tip.png

649 Bytes
Loading

media/icons/macro-warning.png

582 Bytes
Loading

0 commit comments

Comments
 (0)