This repository was archived by the owner on Sep 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +41
-24
lines changed Expand file tree Collapse file tree 3 files changed +41
-24
lines changed Original file line number Diff line number Diff line change @@ -47,21 +47,53 @@ header {
47
47
margin : 0 ;
48
48
flex-grow : 1 ;
49
49
white-space : nowrap;
50
+ height : 2em ;
51
+ position : relative;
50
52
}
51
53
52
54
.logo {
55
+ position : relative;
53
56
display : inline-block;
54
- text-decoration : none;
55
- color : inherit;
56
- background : url( ../ images/logo.svg ) no-repeat 0 0 ;
57
- background-size : 2em ;
58
- line-height : 2em ;
59
- padding-left : 2.5em ;
57
+ width : 2em ;
58
+ height : 2em ;
59
+ margin-right : 7em ;
60
+ background : url( ../ images/wordmark.svg );
61
+ background-size : cover;
62
+ }
63
+
64
+ .logo > span {
65
+ color : transparent;
66
+ }
67
+
68
+ .logo : after {
69
+ content : ' ' ;
70
+ position : absolute;
71
+ top : 0 ;
72
+ left : 2em ;
73
+ width : 7em ;
74
+ height : 2em ;
75
+ background : url( ../ images/wordmark.svg ) -2em 0 ;
76
+ background-size : cover;
60
77
}
61
78
62
79
.logo : hover {
63
80
text-decoration : none;
64
- color : # 2a4b8d ;
81
+ }
82
+
83
+ .logo : hover : after {
84
+ /* #2a4b8d */
85
+ filter : invert ( 24% ) sepia ( 13% ) saturate ( 5585% ) hue-rotate ( 195deg ) brightness ( 98% ) contrast ( 87% );
86
+ }
87
+
88
+ @media ( max-width : 720px ) {
89
+ /* Hide text part of logo on mobile */
90
+ .logo {
91
+ margin-right : 1em ;
92
+ }
93
+
94
+ .logo : after {
95
+ display : none;
96
+ }
65
97
}
66
98
67
99
.sourceAndUser {
Original file line number Diff line number Diff line change 22
22
<body>
23
23
<header>
24
24
<div class="headerInner">
25
- <h1><a class="logo" href=" ' . $ basePath . '/.">Patch demo</a></h1>
25
+ <h1><a class="logo" href=" ' . $ basePath . '/."><span> Patch demo</span> </a></h1>
26
26
<div class="sourceAndUser"> ' ;
27
27
if ( $ user ) {
28
28
echo "<div class='user'>Logged in as <b> {$ user ->username }</b> [<a href='?logout'>Log out</a>]</div> " ;
You can’t perform that action at this time.
0 commit comments