diff --git a/assets/global.css b/assets/global.css index b8cecde..b6241f8 100644 --- a/assets/global.css +++ b/assets/global.css @@ -10,12 +10,6 @@ .mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label, .mdc-list-item--activated .mdc-list-item__text, .mdc-drawer .mdc-list-item--activated .mdc-list-item__graphic { color: var(--mdc-theme-primary); } -.mdc-fab { - background-color: var(--mdc-theme-secondary); -} -.material-icons:hover { - text-decoration: none; -} /* hide unwanted overflow from mdc-text-field :before & :after */ .mdc-text-field-container { @@ -65,8 +59,22 @@ body { margin: 20px; } -/* for cookie notice */ +/* ensure that buttons' colours don't change on hover and background colour changes are animated */ +.mdc-button:hover, .mdc-fab:hover, .material-icons:hover, .mdc-button:focus, .mdc-fab:focus, .material-icons:focus { + text-decoration: none; + transition: background-color 0.75s; +} +.mdc-button:hover { + color: var(--mdc-theme-primary); +} +.mdc-fab:hover { + color: #fff; +} +.mdc-fab::before, .mdc-top-app-bar__action-item::before, .mdc-top-app-bar__navigation-icon::before { + transition-duration: 0.15s; +} +/* for cookie notice */ #cookies { display: none; width: 100%; diff --git a/computer-science-blog/css/main.css b/computer-science-blog/css/main.css index 4b4c7e4..6868a58 100644 --- a/computer-science-blog/css/main.css +++ b/computer-science-blog/css/main.css @@ -1,11 +1,11 @@ /* Reading School 2018, CSS*/ .carousel-inner { - height: 500px; + height: 250px; } .carousel-inner .item { height: 100%; } -.carousel-inner iframe { +.carousel-inner div { width: 100%; border: none; height: 100%; @@ -22,6 +22,13 @@ .presentation-button-right { float: right; } +/* ensure content below buttons doesn't cover them */ +.presentation-buttons-container { + width: 100%; + min-height: 32px; +} + +/* add side margins depending on screen size */ #main-content { text-align: left; margin: 20px 15%; diff --git a/computer-science-blog/index.html b/computer-science-blog/index.html index 8bb4d32..4944dbd 100644 --- a/computer-science-blog/index.html +++ b/computer-science-blog/index.html @@ -75,30 +75,31 @@

The current date is: unknown

HTTP Introduction

+
+
- -
- +