Skip to content

Commit 1d48f87

Browse files
committed
Updated CSS for social icons
1 parent 3413354 commit 1d48f87

File tree

4 files changed

+28
-7
lines changed

4 files changed

+28
-7
lines changed

littlelink/css/animations.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
–––––––––––––––––––––––––––––––––––––––––––––––––– */
5353
/* (Also apply to icon) */
5454

55-
.button-hover, .credit-hover{
55+
.button-hover, .credit-hover, .social-hover{
5656
display:inline-block;
5757
-webkit-transform:perspective(1px) translateZ(0);
5858
transform:perspective(1px) translateZ(0);
@@ -62,9 +62,9 @@
6262
-webkit-transition-property:transform;
6363
transition-property:transform
6464
}
65-
.button-hover:active,.credit-hover:active,
66-
.button-hover:focus,.credit-hover:focus,
67-
.button-hover:hover,.credit-hover:hover{
65+
.button-hover:active,.credit-hover:active, .social-hover:active,
66+
.button-hover:focus,.credit-hover:focus, .social-hover:focus,
67+
.button-hover:hover,.credit-hover:hover, .social-hover:hover{
6868
-webkit-transform:scale(1.1);
6969
transform:scale(1.1)
7070
}

littlelink/css/brands.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
––––––––––––––––––––––––––––––––––––––––––––––––––
2424
2525
- Rounded user avatars
26+
- Social icons
2627
- Buttons
2728
- Brand Styles
2829
@@ -37,6 +38,16 @@
3738
border-radius: 50%;
3839
}
3940

41+
/* Social icon
42+
–––––––––––––––––––––––––––––––––––––––––––––––––– */
43+
44+
.social-icon {
45+
font-size: 32px;
46+
padding: 10px;
47+
}
48+
.social-icon-div {
49+
padding-bottom: 30px;
50+
}
4051

4152
/* Buttons
4253
–––––––––––––––––––––––––––––––––––––––––––––––––– */

littlelink/css/skeleton-auto.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,13 @@ a:hover {
138138
padding: 0 10px;
139139
}
140140

141+
@media (prefers-color-scheme: dark) {
142+
.social-icon{color:#fff;}
143+
}
144+
@media (prefers-color-scheme: light) {
145+
.social-icon{color:#222;}
146+
}
147+
141148
/* Code
142149
–––––––––––––––––––––––––––––––––––––––––––––––––– */
143150
code {

resources/views/littlelink.blade.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,16 @@ function themeAsset($path){
115115
<link rel="stylesheet" href="{{ asset('littlelink/css/brands.css') }}">
116116
@if ($color_scheme_override == 'dark')
117117
<link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-dark.css') }}">
118+
<style>.social-icon{color:#fff;}</style>
118119
@elseif ($color_scheme_override == 'light')
119120
<link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-light.css') }}">
121+
<style>.social-icon{color:#222;}</style>
120122
@elseif (config('advanced-config.theme') == 'dark')
121123
<link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-dark.css') }}">
124+
<style>.social-icon{color:#fff;}</style>
122125
@elseif (config('advanced-config.theme') == 'light')
123126
<link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-light.css') }}">
127+
<style>.social-icon{color:#222;}</style>
124128
@else
125129
<link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-auto.css') }}">
126130
@endif
@@ -261,11 +265,10 @@ function get_operating_system() {
261265
<p style="width:50%;min-width:300px;" class="fadein">@if(env('ALLOW_USER_HTML') === true){!! $info->littlelink_description !!}@else{{ $info->littlelink_description }}@endif</p>
262266

263267
<!-- Icons -->
264-
<style>.social-icon{font-size:32px;padding:10px;padding-bottom:30px;color:#fff;}</style>
265268
@php $icons = DB::table('links')->where('user_id', 1)->where('button_id', 94)->get(); @endphp
266-
<div class="row fadein">
269+
<div class="row fadein social-icon-div">
267270
@foreach($icons as $icon)
268-
<a href="{{$icon->link}}"><i class="social-icon fa-brands fa-{{$icon->title}}"></i></a>
271+
<a class="social-hover social-link" href="{{$icon->link}}"><i class="social-icon fa-brands fa-{{$icon->title}}"></i></a>
269272
@endforeach
270273
</div>
271274

0 commit comments

Comments
 (0)