mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-02-23 04:49:40 +01:00
Implemented logic to don't generate everytime a new version and instead use the template modification timestamp
This commit is contained in:
parent
043a33acd9
commit
c11bcfa10f
@ -1,8 +1,3 @@
|
|||||||
- name: Get the current Unix timestamp as version
|
|
||||||
set_fact:
|
|
||||||
global_css_version: "{{ ansible_date_time.epoch }}"
|
|
||||||
when: run_once_nginx_global_css is not defined
|
|
||||||
|
|
||||||
- name: Ensure {{nginx.directories.global}} directory exists
|
- name: Ensure {{nginx.directories.global}} directory exists
|
||||||
file:
|
file:
|
||||||
path: "{{nginx.directories.global}}"
|
path: "{{nginx.directories.global}}"
|
||||||
@ -21,8 +16,18 @@
|
|||||||
mode: '0644'
|
mode: '0644'
|
||||||
when: run_once_nginx_global_css is not defined
|
when: run_once_nginx_global_css is not defined
|
||||||
|
|
||||||
- name: run the global css tasks once
|
- name: Get stat for global.css destination file
|
||||||
set_fact:
|
stat:
|
||||||
run_once_nginx_global_css: true
|
path: "{{ global_css_destination }}"
|
||||||
|
register: global_css_stat
|
||||||
when: run_once_nginx_global_css is not defined
|
when: run_once_nginx_global_css is not defined
|
||||||
|
|
||||||
|
- name: Set global_css_version to file modification time
|
||||||
|
set_fact:
|
||||||
|
global_css_version: "{{ global_css_stat.stat.mtime }}"
|
||||||
|
when: run_once_nginx_global_css is not defined
|
||||||
|
|
||||||
|
- name: Mark global css tasks as run once
|
||||||
|
set_fact:
|
||||||
|
run_once_nginx_global_css: true
|
||||||
|
when: run_once_nginx_global_css is not defined
|
@ -30,6 +30,11 @@
|
|||||||
--bs-btn-color: var(--button-text-color);
|
--bs-btn-color: var(--button-text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Peertube Overrides */
|
||||||
|
:root {
|
||||||
|
--mainColor: var(--primary-color);
|
||||||
|
}
|
||||||
|
|
||||||
/* Global Defaults (Colors Only) */
|
/* Global Defaults (Colors Only) */
|
||||||
body {
|
body {
|
||||||
background-color: var(--background-color) !important;
|
background-color: var(--background-color) !important;
|
||||||
@ -100,6 +105,9 @@ input:focus, textarea:focus, select:focus {
|
|||||||
color: var(--background-dark-color) !important;
|
color: var(--background-dark-color) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.card-body{
|
||||||
|
color: var(--background-dark-color) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Tables (Borders and Header Colors) */
|
/* Tables (Borders and Header Colors) */
|
||||||
@ -161,4 +169,13 @@ h1, h2 {
|
|||||||
/* Ensure the button itself uses the light text color. Occured in Mastodon */
|
/* Ensure the button itself uses the light text color. Occured in Mastodon */
|
||||||
button.icon-button {
|
button.icon-button {
|
||||||
color: var(--button-text-color) !important;
|
color: var(--button-text-color) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Peertube specific configuration */
|
||||||
|
.peertube-container button{
|
||||||
|
background-color: transparent !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.peertube-container .title-col{
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user